Home
last modified time | relevance | path

Searched refs:operstate (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/net/core/
Dlink_watch.c53 unsigned char operstate = default_operstate(dev); in rfc2863_policy() local
55 if (operstate == dev->operstate) in rfc2863_policy()
62 if (operstate == IF_OPER_UP) in rfc2863_policy()
63 operstate = IF_OPER_TESTING; in rfc2863_policy()
67 if (operstate == IF_OPER_UP) in rfc2863_policy()
68 operstate = IF_OPER_DORMANT; in rfc2863_policy()
75 dev->operstate = operstate; in rfc2863_policy()
Dnet-sysfs.c305 unsigned char operstate; in operstate_show() local
308 operstate = netdev->operstate; in operstate_show()
310 operstate = IF_OPER_DOWN; in operstate_show()
313 if (operstate >= ARRAY_SIZE(operstates)) in operstate_show()
316 return sprintf(buf, "%s\n", operstates[operstate]); in operstate_show()
318 static DEVICE_ATTR_RO(operstate);
Drtnetlink.c827 unsigned char operstate = dev->operstate; in set_operstate() local
831 if ((operstate == IF_OPER_DORMANT || in set_operstate()
832 operstate == IF_OPER_TESTING || in set_operstate()
833 operstate == IF_OPER_UNKNOWN) && in set_operstate()
835 operstate = IF_OPER_UP; in set_operstate()
839 if (operstate == IF_OPER_UP || in set_operstate()
840 operstate == IF_OPER_UNKNOWN) in set_operstate()
841 operstate = IF_OPER_TESTING; in set_operstate()
845 if (operstate == IF_OPER_UP || in set_operstate()
846 operstate == IF_OPER_UNKNOWN) in set_operstate()
[all …]
Ddev.c9776 if (rootdev->operstate == IF_OPER_DORMANT) in netif_stacked_transfer_operstate()
9781 if (rootdev->operstate == IF_OPER_TESTING) in netif_stacked_transfer_operstate()
/kernel/linux/linux-5.10/net/hsr/
Dhsr_device.c34 if (dev->operstate != transition) { in __hsr_set_operstate()
35 dev->operstate = transition; in __hsr_set_operstate()
81 if (hsr_dev->operstate == IF_OPER_UP && old_operstate != IF_OPER_UP) { in hsr_check_announce()
88 if (hsr_dev->operstate != IF_OPER_UP && old_operstate == IF_OPER_UP) in hsr_check_announce()
103 old_operstate = master->dev->operstate; in hsr_check_carrier_and_operstate()
/kernel/linux/linux-5.10/Documentation/networking/
Doperstates.rst169 - send RTM_SETLINK to set operstate to IF_OPER_UP if authentication
171 - see how operstate and IFF_RUNNING is echoed via netlink multicast
180 waiting for operstate to go IF_OPER_UP/IF_OPER_UNKNOWN before
/kernel/linux/linux-5.10/net/bridge/
Dbr_netlink.c383 u8 operstate = netif_running(dev) ? dev->operstate : IF_OPER_DOWN; in br_fill_ifinfo() local
412 nla_put_u8(skb, IFLA_OPERSTATE, operstate) || in br_fill_ifinfo()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-net244 What: /sys/class/net/<iface>/operstate
/kernel/linux/linux-5.10/include/linux/
Dnetdevice.h1969 unsigned char operstate; member
4137 return (dev->operstate == IF_OPER_UP || in netif_oper_up()
4138 dev->operstate == IF_OPER_UNKNOWN /* backward compat */); in netif_oper_up()
/kernel/linux/linux-5.10/drivers/net/
Dvrf.c1210 dev->operstate = IF_OPER_UP; in vrf_dev_init()
/kernel/linux/linux-5.10/net/ipv6/
Daddrconf.c5883 netif_running(dev) ? dev->operstate : IF_OPER_DOWN)) in inet6_fill_ifinfo()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0036_linux_drivers_staging.patch2728 + u8 operstate = netif_running(netdev) ?
2729 + netdev->operstate : IF_OPER_DOWN;
2742 + err = nla_put_u8(skb, IFLA_OPERSTATE, operstate);