Home
last modified time | relevance | path

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

/openbmc/linux/net/core/
H A Dlink_watch.c77 unsigned char operstate = default_operstate(dev); in rfc2863_policy()
79 if (operstate == READ_ONCE(dev->operstate)) in rfc2863_policy()
86 if (operstate == IF_OPER_UP) in rfc2863_policy()
87 operstate = IF_OPER_TESTING; in rfc2863_policy()
91 if (operstate == IF_OPER_UP) in rfc2863_policy()
92 operstate = IF_OPER_DORMANT; in rfc2863_policy()
99 WRITE_ONCE(dev->operstate, operstate);
73 unsigned char operstate = default_operstate(dev); rfc2863_policy() local
H A Dnet-sysfs.c308 unsigned char operstate; in operstate_show() local
310 operstate = READ_ONCE(netdev->operstate); in operstate_show()
312 operstate = IF_OPER_DOWN; in operstate_show()
314 if (operstate >= ARRAY_SIZE(operstates)) in operstate_show()
317 return sysfs_emit(buf, "%s\n", operstates[operstate]); in operstate_show()
319 static DEVICE_ATTR_RO(operstate);
H A Drtnetlink.c890 unsigned char operstate = dev->operstate; in set_operstate() local
894 if ((operstate == IF_OPER_DORMANT || in set_operstate()
895 operstate == IF_OPER_TESTING || in set_operstate()
896 operstate == IF_OPER_UNKNOWN) && in set_operstate()
898 operstate = IF_OPER_UP; in set_operstate()
903 operstate = IF_OPER_TESTING; in set_operstate()
908 operstate = IF_OPER_DORMANT; in set_operstate()
912 if (READ_ONCE(dev->operstate) != operstate) { in set_operstate()
914 WRITE_ONCE(dev->operstate, operstate); in set_operstate()
1837 netif_running(dev) ? dev->operstate : IF_OPER_DOWN) || in rtnl_fill_ifinfo()
[all …]
H A Ddev.c9952 if (rootdev->operstate == IF_OPER_DORMANT) in netif_stacked_transfer_operstate()
9957 if (rootdev->operstate == IF_OPER_TESTING) in netif_stacked_transfer_operstate()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/netcf/netcf/
H A D0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch26 xasprintf(&path, "/sys/class/net/%s/operstate", ifname);
31 /* missing operstate is *not* an error. It could be due to an
/openbmc/linux/Documentation/networking/
H A Doperstates.rst171 - send RTM_SETLINK to set operstate to IF_OPER_UP if authentication
173 - see how operstate and IFF_RUNNING is echoed via netlink multicast
182 waiting for operstate to go IF_OPER_UP/IF_OPER_UNKNOWN before
/openbmc/linux/net/hsr/
H A Dhsr_device.c34 if (READ_ONCE(dev->operstate) != transition) { in __hsr_set_operstate()
35 WRITE_ONCE(dev->operstate, transition); in __hsr_set_operstate()
/openbmc/linux/net/bridge/
H A Dbr_netlink.c458 u8 operstate = netif_running(dev) ? READ_ONCE(dev->operstate) : in br_fill_ifinfo() local
488 nla_put_u8(skb, IFLA_OPERSTATE, operstate) || in br_fill_ifinfo()
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-net244 What: /sys/class/net/<iface>/operstate
/openbmc/linux/include/linux/
H A Dnetdevice.h2164 unsigned char operstate; member
4290 return (dev->operstate == IF_OPER_UP || in netif_oper_up()
4291 dev->operstate == IF_OPER_UNKNOWN /* backward compat */); in netif_oper_up()
/openbmc/linux/drivers/net/
H A Dvrf.c1185 dev->operstate = IF_OPER_UP; in vrf_dev_init()
/openbmc/linux/net/ipv6/
H A Daddrconf.c6032 netif_running(dev) ? READ_ONCE(dev->operstate) : IF_OPER_DOWN)) in inet6_fill_ifinfo()