Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/
H A Dvlan_bridge_binding.sh51 local operstate=$(ip -j link show $dev | jq -r .[].operstate)
52 if [[ $operstate == UP ]]; then
53 operstate=1
54 elif [[ $operstate == DOWN || $operstate == LOWERLAYERDOWN ]]; then
55 operstate=0
57 echo -n $operstate
58 [[ $operstate == $expect ]]
65 local operstate
67 operstate=$(busywait 1000 \
69 check_err $? "Got operstate of $operstate, expected $expect"
/linux/net/core/
H A Dlink_watch.c76 unsigned int operstate = default_operstate(dev); in rfc2863_policy() local
78 if (operstate == READ_ONCE(dev->operstate)) in rfc2863_policy()
83 if (operstate == IF_OPER_UP) in rfc2863_policy()
84 operstate = IF_OPER_TESTING; in rfc2863_policy()
88 if (operstate == IF_OPER_UP) in rfc2863_policy()
89 operstate = IF_OPER_DORMANT; in rfc2863_policy()
96 WRITE_ONCE(dev->operstate, operstate); in rfc2863_policy()
H A Drtnetlink.c1050 unsigned int old = READ_ONCE(dev->operstate); in netif_set_operstate()
1055 } while (!try_cmpxchg(&dev->operstate, &old, newstate)); in netif_set_operstate()
1063 unsigned char operstate = READ_ONCE(dev->operstate); in set_operstate() local
1067 if ((operstate == IF_OPER_DORMANT || in set_operstate()
1068 operstate == IF_OPER_TESTING || in set_operstate()
1069 operstate == IF_OPER_UNKNOWN) && in set_operstate()
1071 operstate = IF_OPER_UP; in set_operstate()
1076 operstate = IF_OPER_TESTING; in set_operstate()
1081 operstate = IF_OPER_DORMANT; in set_operstate()
1085 netif_set_operstate(dev, operstate); in set_operstate()
[all …]
H A Ddev.c11112 if (rootdev->operstate == IF_OPER_DORMANT) in netif_stacked_transfer_operstate()
11117 if (rootdev->operstate == IF_OPER_TESTING) in netif_stacked_transfer_operstate()
/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
/linux/Documentation/networking/net_cachelines/
H A Dnet_device.rst62 unsigned_char operstate
/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()
/linux/include/linux/
H A Dnetdevice.h2261 unsigned int operstate; member
4615 unsigned int operstate = READ_ONCE(dev->operstate); in netif_oper_up() local
4617 return operstate == IF_OPER_UP || in netif_oper_up()
4618 operstate == IF_OPER_UNKNOWN /* backward compat */; in netif_oper_up()
/linux/Documentation/ABI/testing/
H A Dsysfs-class-net244 What: /sys/class/net/<iface>/operstate
/linux/drivers/net/
H A Dvrf.c1143 dev->operstate = IF_OPER_UP; in vrf_dev_init()
/linux/net/ipv6/
H A Daddrconf.c6096 netif_running(dev) ? READ_ONCE(dev->operstate) : IF_OPER_DOWN)) in inet6_fill_ifinfo()