If a vxlan is created with state 'up', the RTM_NEWLINK message shows the state as down, and there no other netlink messages are sent. As a result, processes listening to netlink are never notified that the vxlan link is up. eg. # ip link add test up type vxlan id 8 group 224.224.224.224 dev eth0 Output of ip monitor link # 4: test: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN group default link/ether ee:cd:97:1a:cf:91 brd ff:ff:ff:ff:ff:ff Output of ip link show (expected from netlink message) # 4: test: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether ee:cd:97:1a:cf:91 brd ff:ff:ff:ff:ff:ff This is a regression introduced by the following patch series. https://patchwork.ozlabs.org/patch/947181/
Created attachment 278465 [details] patch to fix notification on newlink with IFF_UP Can you please try the attached patch ?. thank you.
Your patch works. Thanks.