Searched refs:operstate (Results 1 – 12 of 12) sorted by relevance
77 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
308 unsigned char operstate; in operstate_show() local310 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);
890 unsigned char operstate = dev->operstate; in set_operstate() local894 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 …]
9952 if (rootdev->operstate == IF_OPER_DORMANT) in netif_stacked_transfer_operstate()9957 if (rootdev->operstate == IF_OPER_TESTING) in netif_stacked_transfer_operstate()
26 xasprintf(&path, "/sys/class/net/%s/operstate", ifname);31 /* missing operstate is *not* an error. It could be due to an
171 - send RTM_SETLINK to set operstate to IF_OPER_UP if authentication173 - see how operstate and IFF_RUNNING is echoed via netlink multicast182 waiting for operstate to go IF_OPER_UP/IF_OPER_UNKNOWN before
34 if (READ_ONCE(dev->operstate) != transition) { in __hsr_set_operstate()35 WRITE_ONCE(dev->operstate, transition); in __hsr_set_operstate()
458 u8 operstate = netif_running(dev) ? READ_ONCE(dev->operstate) : in br_fill_ifinfo() local488 nla_put_u8(skb, IFLA_OPERSTATE, operstate) || in br_fill_ifinfo()
244 What: /sys/class/net/<iface>/operstate
2164 unsigned char operstate; member4290 return (dev->operstate == IF_OPER_UP || in netif_oper_up()4291 dev->operstate == IF_OPER_UNKNOWN /* backward compat */); in netif_oper_up()
1185 dev->operstate = IF_OPER_UP; in vrf_dev_init()
6032 netif_running(dev) ? READ_ONCE(dev->operstate) : IF_OPER_DOWN)) in inet6_fill_ifinfo()