Home
last modified time | relevance | path

Searched refs:iflink (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/net/batman-adv/
Dhard-interface.c154 int iflink; in batadv_is_on_batman_iface() local
161 iflink = dev_get_iflink(net_dev); in batadv_is_on_batman_iface()
162 if (iflink == 0) in batadv_is_on_batman_iface()
168 if (net == parent_net && iflink == net_dev->ifindex) in batadv_is_on_batman_iface()
172 parent_dev = __dev_get_by_index((struct net *)parent_net, iflink); in batadv_is_on_batman_iface()
222 int iflink; in batadv_get_real_netdevice() local
229 iflink = dev_get_iflink(netdev); in batadv_get_real_netdevice()
230 if (iflink == 0) { in batadv_get_real_netdevice()
243 if (net == real_net && netdev->ifindex == iflink) { in batadv_get_real_netdevice()
249 real_netdev = dev_get_by_index(real_net, iflink); in batadv_get_real_netdevice()
/linux-6.12.1/net/core/
Dlink_watch.c45 int iflink = dev_get_iflink(dev); in default_operstate() local
48 if (iflink == dev->ifindex) in default_operstate()
51 peer = __dev_get_by_index(dev_net(dev), iflink); in default_operstate()
Drtnetlink.c1647 int iflink = dev_get_iflink(dev); in nla_put_iflink() local
1649 if (force || READ_ONCE(dev->ifindex) != iflink) in nla_put_iflink()
1650 return nla_put_u32(skb, IFLA_LINK, iflink); in nla_put_iflink()
Dnet-sysfs.c126 static DEVICE_ATTR_RO(iflink);
/linux-6.12.1/drivers/net/can/
Dvxcan.c118 int iflink; in vxcan_get_iflink() local
122 iflink = peer ? READ_ONCE(peer->ifindex) : 0; in vxcan_get_iflink()
125 return iflink; in vxcan_get_iflink()
/linux-6.12.1/drivers/net/netdevsim/
Dnetdev.c321 int iflink; in nsim_get_iflink() local
327 iflink = peer ? READ_ONCE(peer->netdev->ifindex) : in nsim_get_iflink()
331 return iflink; in nsim_get_iflink()
/linux-6.12.1/drivers/net/
Dnetkit.c148 int iflink = 0; in netkit_get_iflink() local
153 iflink = READ_ONCE(peer->ifindex); in netkit_get_iflink()
155 return iflink; in netkit_get_iflink()
Dveth.c1445 int iflink; in veth_get_iflink() local
1449 iflink = peer ? READ_ONCE(peer->ifindex) : 0; in veth_get_iflink()
1452 return iflink; in veth_get_iflink()
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-class-net199 What: /sys/class/net/<iface>/iflink
207 Physical interfaces have the same 'ifindex' and 'iflink' values.
/linux-6.12.1/Documentation/networking/
Doperstates.rst139 ifindex != iflink.
/linux-6.12.1/net/ipv6/
Daddrconf.c6052 int ifindex, iflink; in inet6_fill_ifinfo() local
6068 iflink = dev_get_iflink(dev); in inet6_fill_ifinfo()
6073 (ifindex != iflink && in inet6_fill_ifinfo()
6074 nla_put_u32(skb, IFLA_LINK, iflink)) || in inet6_fill_ifinfo()