Revert "dev: set iflink to 0 for virtual interfaces"
This reverts commit e1622baf54
.
The side effect of this commit is to add a '@NONE' after each virtual
interface name with a 'ip link'. It may break existing scripts.
Reported-by: Olivier Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Tested-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
d339727c2b
Коммит
95ec655bc4
|
@ -677,10 +677,6 @@ int dev_get_iflink(const struct net_device *dev)
|
|||
if (dev->netdev_ops && dev->netdev_ops->ndo_get_iflink)
|
||||
return dev->netdev_ops->ndo_get_iflink(dev);
|
||||
|
||||
/* If dev->rtnl_link_ops is set, it's a virtual interface. */
|
||||
if (dev->rtnl_link_ops)
|
||||
return 0;
|
||||
|
||||
return dev->ifindex;
|
||||
}
|
||||
EXPORT_SYMBOL(dev_get_iflink);
|
||||
|
|
Загрузка…
Ссылка в новой задаче