Skip to content

Commit 95ec655

Browse files
NicolasDichteldavem330
authored andcommitted
Revert "dev: set iflink to 0 for virtual interfaces"
This reverts commit e1622ba. 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 <[email protected]> Signed-off-by: Nicolas Dichtel <[email protected]> Tested-by: Oliver Hartkopp <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d339727 commit 95ec655

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/core/dev.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,10 +677,6 @@ int dev_get_iflink(const struct net_device *dev)
677677
if (dev->netdev_ops && dev->netdev_ops->ndo_get_iflink)
678678
return dev->netdev_ops->ndo_get_iflink(dev);
679679

680-
/* If dev->rtnl_link_ops is set, it's a virtual interface. */
681-
if (dev->rtnl_link_ops)
682-
return 0;
683-
684680
return dev->ifindex;
685681
}
686682
EXPORT_SYMBOL(dev_get_iflink);

0 commit comments

Comments
 (0)