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)
commite1622baf54df8cc958bf29d71de5ad545ea7d93c
tree4a019a2a3e79c4fc9706b91cbb55d2cd053065d4
parent7a66bbc96ce9ad8261fa5f7f6ae65370eb6866ee
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
This page took 0.024417 seconds and 5 git commands to generate.