]> git.baikalelectronics.ru Git - kernel.git/commit
dev: set iflink to 0 for virtual interfaces
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 2 Apr 2015 15:07:10 +0000 (17:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 18:05:01 +0000 (14:05 -0400)
commit73a140eb6eaeaefb086ac66603d9b26784e9b25f
tree4a019a2a3e79c4fc9706b91cbb55d2cd053065d4
parent538ae32f76523374414a94d17150ac373313447f
dev: set iflink to 0 for virtual interfaces

Virtual interfaces are supposed to set an iflink value != of their ifindex.
It was not the case for some of them, like vxlan, bond or bridge.
Let's set iflink to 0 when dev->rtnl_link_ops is set.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c