Home
last modified time | relevance | path

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

/openbmc/linux/net/core/
H A Dlink_watch.c68 unsigned char operstate = default_operstate(dev); in rfc2863_policy() local
70 if (operstate == READ_ONCE(dev->operstate)) in rfc2863_policy()
77 if (operstate == IF_OPER_UP) in rfc2863_policy()
78 operstate = IF_OPER_TESTING; in rfc2863_policy()
82 if (operstate == IF_OPER_UP) in rfc2863_policy()
83 operstate = IF_OPER_DORMANT; in rfc2863_policy()
90 WRITE_ONCE(dev->operstate, operstate); in rfc2863_policy()
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.c861 unsigned char operstate = dev->operstate; in set_operstate() local
865 if ((operstate == IF_OPER_DORMANT || in set_operstate()
866 operstate == IF_OPER_TESTING || in set_operstate()
867 operstate == IF_OPER_UNKNOWN) && in set_operstate()
869 operstate = IF_OPER_UP; in set_operstate()
874 operstate = IF_OPER_TESTING; in set_operstate()
879 operstate = IF_OPER_DORMANT; in set_operstate()
883 if (READ_ONCE(dev->operstate) != operstate) { in set_operstate()
885 WRITE_ONCE(dev->operstate, operstate); in set_operstate()
4876 u8 operstate = netif_running(dev) ? dev->operstate : IF_OPER_DOWN; in ndo_dflt_bridge_getlink() local
[all …]
H A Ddev.c9942 if (rootdev->operstate == IF_OPER_DORMANT) in netif_stacked_transfer_operstate()
9947 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/Documentation/netlink/specs/
H A Drt_link.yaml778 name: operstate
1270 - operstate
1327 - 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
4278 return (dev->operstate == IF_OPER_UP || in netif_oper_up()
4279 dev->operstate == IF_OPER_UNKNOWN /* backward compat */); in netif_oper_up()
/openbmc/linux/drivers/net/
H A Dvrf.c1183 dev->operstate = IF_OPER_UP; in vrf_dev_init()
/openbmc/linux/net/ipv6/
H A Daddrconf.c6015 netif_running(dev) ? READ_ONCE(dev->operstate) : IF_OPER_DOWN)) in inet6_fill_ifinfo()