Re: [PATCH net] rtnetlink: always put ILFA_LINK for links with a link-netnsid

2019-05-13 Thread Sabrina Dubroca
2019-05-13, 15:17:33 +0200, Nicolas Dichtel wrote: > Le 13/05/2019 à 15:01, Sabrina Dubroca a écrit : > > Currently, nla_put_iflink() doesn't put the IFLA_LINK attribute when > > iflink == ifindex. > > > > In some cases, a device can be created in a different netns with the > > same ifindex as its

Re: [PATCH net] rtnetlink: always put ILFA_LINK for links with a link-netnsid

2019-05-13 Thread Nicolas Dichtel
Le 13/05/2019 à 15:01, Sabrina Dubroca a écrit : > Currently, nla_put_iflink() doesn't put the IFLA_LINK attribute when > iflink == ifindex. > > In some cases, a device can be created in a different netns with the > same ifindex as its parent. That device will not dump its IFLA_LINK > attribute, w

[PATCH net] rtnetlink: always put ILFA_LINK for links with a link-netnsid

2019-05-13 Thread Sabrina Dubroca
Currently, nla_put_iflink() doesn't put the IFLA_LINK attribute when iflink == ifindex. In some cases, a device can be created in a different netns with the same ifindex as its parent. That device will not dump its IFLA_LINK attribute, which can confuse some userspace software that expects it. For