Home
last modified time | relevance | path

Searched refs:s_ns (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond_options.sh24 ip -n ${s_ns} link set eth0 type bond_slave prio 10
28 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10"
39 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6}
43 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}"
46 ip -n ${s_ns} link del bond1
55 local new_active_slave=$(cmd_jq "ip -n ${s_ns} -d -j link show bond0" \
64 active_slave=$(cmd_jq "ip -n ${s_ns} -d -j link show bond0" ".[].linkinfo.info_data.active_slave")
78 ip -n ${s_ns} link set bond0 type bond active_slave eth1
81 ip -n ${s_ns} link set eth0 type bond_slave prio 0
82 ip -n ${s_ns} link set eth1 type bond_slave prio 10
[all …]
H A Dbond_topo_2d1c.sh33 s_ns="s-$(mktemp -u XXXXXX)"
62 ip netns add ${s_ns}
63 ip -n ${s_ns} link add bond0 type bond mode active-backup miimon 100
66 ip -n ${s_ns} link add eth${i} type veth peer name s${i} netns ${g_ns}
67 ip -n "${s_ns}" link set "eth${i}" addr "${mac[$i]}"
71 ip -n ${s_ns} link set eth${i} master bond0
76 ip -n ${s_ns} link set bond0 up
77 ip -n ${s_ns} addr add ${s_ip4}/24 dev bond0
78 ip -n ${s_ns} addr add ${s_ip6}/24 dev bond0 nodad
86 local link_num=$(ip -n ${s_ns} -br link show | grep -c "^eth")
[all …]
H A Dbond_passive_lacp.sh36 setup_ns c_ns s_ns
39 ip -n "${c_ns}" link add eth0 type veth peer name eth0 netns "${s_ns}"
40 ip -n "${c_ns}" link add eth1 type veth peer name eth1 netns "${s_ns}"
45 tc -n "${s_ns}" qdisc add dev eth1 clsact
46 tc -n "${s_ns}" filter add dev eth1 egress handle 101 protocol 0x8809 matchall action pass
48 ip -n "${s_ns}" link add bond0 type bond mode 802.3ad lacp_active on lacp_rate fast
49 ip -n "${s_ns}" link set eth0 master bond0
50 ip -n "${s_ns}" link set eth1 master bond0
70 ip -n "${s_ns}" link set bond0 up
78 slowwait 2 check_port_state "${s_ns}" "eth0" "active" || RET=1
[all …]
H A Dbond_topo_3d1c.sh39 ip -n ${s_ns} link add eth${i} type veth peer name s${i} netns ${g_ns}
40 ip -n "${s_ns}" link set "eth${i}" addr "${mac[$i]}"
43 ip -n ${s_ns} link set eth${i} master bond0