]> 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)
commit9a1e9446d307dc125123f0b8a9f584207d470201
tree4a019a2a3e79c4fc9706b91cbb55d2cd053065d4
parent3f782593971bb72cf0e7f607a535aa0c257423aa
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