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

2019-05-14 Thread David Miller
From: Sabrina Dubroca Date: Tue, 14 May 2019 15:12:19 +0200 > 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 >

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

2019-05-14 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