Home
last modified time | relevance | path

Searched refs:run_cmd (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.12.1/tools/testing/selftests/net/
Dfib_nexthops.sh109 run_cmd() function
331 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"
347 run_cmd "$IP nexthop add id $grpidstr group $grpstr"
353 run_cmd "$IP nexthop list"
370 run_cmd "$IP nexthop add id 100 via $ipstr dev veth1"
371 run_cmd "$IP nexthop add id 1000 group 100 type resilient buckets $buckets"
372 run_cmd "$IP nexthop bucket list"
456 run_cmd "$IP nexthop add id 61 via 2001:db8:91::2 fdb"
457 run_cmd "$IP nexthop add id 62 via 2001:db8:91::3 fdb"
458 run_cmd "$IP nexthop add id 102 group 61/62 fdb"
[all …]
Dtest_bridge_backup_port.sh92 run_cmd() function
254 run_cmd "tc -n $sw1 qdisc replace dev swp1 clsact"
255run_cmd "tc -n $sw1 filter replace dev swp1 egress pref 1 handle 101 proto ip flower src_mac $smac…
257 run_cmd "tc -n $sw1 qdisc replace dev vx0 clsact"
258run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto ip flower src_mac $smac …
260 run_cmd "bridge -n $sw1 fdb replace $dmac dev swp1 master static vlan 10"
265run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t …
271 run_cmd "ip -n $sw1 link set dev swp1 carrier off"
275run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t …
281 run_cmd "ip -n $sw1 link set dev swp1 carrier on"
[all …]
Dtest_vxlan_mdb.sh169 run_cmd() function
335 run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
337 run_cmd "bridge -n $ns1 -d -s mdb get dev vx0 $grp_key src_vni 10010"
340 run_cmd "bridge -n $ns1 mdb replace dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
342 run_cmd "bridge -n $ns1 -d -s mdb get dev vx0 $grp_key src_vni 10010"
345 run_cmd "bridge -n $ns1 mdb del dev vx0 port vx0 $grp_key dst $vtep_ip src_vni 10010"
347 run_cmd "bridge -n $ns1 -d -s mdb get dev vx0 $grp_key src_vni 10010"
350 run_cmd "bridge -n $ns1 mdb del dev vx0 port vx0 $grp_key dst $vtep_ip src_vni 10010"
354 run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
355 run_cmd "bridge -n $ns1 -d -s mdb get dev vx0 $grp_key src_vni 10010 | grep \"proto static\""
[all …]
Dtest_bridge_neigh_suppress.sh100 run_cmd() function
300 run_cmd "tc -n $sw1 qdisc replace dev vx0 clsact"
301run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto 0x0806 flower indev swp1…
305 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
312 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress on"
313 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress on\""
316 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
324 run_cmd "bridge -n $sw1 fdb replace $h2_mac dev vx0 master static vlan $vid"
327 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
334 run_cmd "ip -n $sw1 neigh replace $tip lladdr $h2_mac nud permanent dev br0.$vid"
[all …]
Dfcnal-test.sh222 run_cmd() function
242 run_cmd ${cmd}
308 run_cmd sysctl -q -w $*
592 run_cmd ping -c1 -w1 ${a}
596 run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a}
600 run_cmd ping -c1 -w1 -I ${NSA_LO_IP} ${a}
609 run_cmd ping -c 1 -w 1 -r ${a}
615 run_cmd ping -c 1 -w 1 -r ${a}
634 run_cmd ping -c1 -w1 ${a}
644 run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a}
[all …]
Drtnetlink.sh72 run_cmd() { function
133 run_cmd ip link add name "$devdummy" type dummy
134 run_cmd ip link set "$devdummy" up
139 run_cmd ip link del dev "$devdummy"
146 run_cmd ip netconf show dev "$dev"
148 run_cmd ip -$f netconf show dev "$dev"
165 run_cmd ip link add name "$devbr" type bridge
166 run_cmd ip link set dev "$devdummy" master "$devbr"
167 run_cmd ip link set "$devbr" up
168 run_cmd ip link add link "$devbr" name "$vlandev" type vlan id 1
[all …]
Dfib_tests.sh496 run_cmd "ip netns exec $ns2 ping -w1 -c1 192.0.2.1"
499 run_cmd "ip netns exec $ns2 ping -w1 -c1 127.0.0.1"
935 run_cmd() function
1004 run_cmd "$IP -6 ro flush ${pfx}"
1013 run_cmd "$IP -6 ro add ${pfx} ${nh}"
1099 run_cmd "$IP -6 ro add 2001:db8:104::/64 via 2001:db8:103::2"
1104 run_cmd "$IP -6 ro add 2001:db8:104::/64 dev veth3"
1109 run_cmd "$IP -6 ro add unreachable 2001:db8:104::/64"
1115 run_cmd "$IP -6 ro append 2001:db8:104::/64 via 2001:db8:103::2"
1125 run_cmd "$IP -6 ro add 2001:db8:104::/64 nexthop via 2001:db8:101::2 nexthop via 2001:db8:103::2"
[all …]
Dpmtu.sh366 run_cmd() { function
429 run_cmd ${ns_a} ip fou add port 5555 ipproto ${ipproto} || return $ksft_skip
430run_cmd ${ns_a} ip link add ${encap}_a type ${type} ${mode} local ${a_addr} remote ${b_addr} encap…
432 run_cmd ${ns_b} ip fou add port 5556 ipproto ${ipproto}
433run_cmd ${ns_b} ip link add ${encap}_b type ${type} ${mode} local ${b_addr} remote ${a_addr} encap…
436 run_cmd ${ns_a} ip addr add ${tunnel4_a_addr}/${tunnel4_mask} dev ${encap}_a
437 run_cmd ${ns_b} ip addr add ${tunnel4_b_addr}/${tunnel4_mask} dev ${encap}_b
439 run_cmd ${ns_a} ip addr add ${tunnel6_a_addr}/${tunnel6_mask} dev ${encap}_a
440 run_cmd ${ns_b} ip addr add ${tunnel6_b_addr}/${tunnel6_mask} dev ${encap}_b
443 run_cmd ${ns_a} ip link set ${encap}_a up
[all …]
Dtest_vxlan_nolocalbypass.sh60 run_cmd() function
123 run_cmd "bridge -n $ns1 fdb add $dmac dev vx0 self static dst 192.0.2.1 port 4790"
125 run_cmd "tc -n $ns1 qdisc add dev vx1 clsact"
126run_cmd "tc -n $ns1 filter add dev vx1 ingress pref 1 handle 101 proto all flower src_mac $smac ds…
128 run_cmd "tc -n $ns1 qdisc add dev lo clsact"
129run_cmd "tc -n $ns1 filter add dev lo ingress pref 1 handle 101 proto ip flower ip_proto udp dst_p…
131run_cmd "ip -n $ns1 -d -j link show dev vx0 | jq -e '.[][\"linkinfo\"][\"info_data\"][\"localbypas…
134 run_cmd "ip netns exec $ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
139 run_cmd "ip -n $ns1 link set dev vx0 type vxlan nolocalbypass"
141run_cmd "ip -n $ns1 -d -j link show dev vx0 | jq -e '.[][\"linkinfo\"][\"info_data\"][\"localbypas…
[all …]
Dicmp_redirect.sh95 run_cmd() function
275 run_cmd ip -netns $h2 li set eth0 mtu ${mtu}
276 run_cmd ip -netns $r2 li set eth2 mtu ${mtu}
288 run_cmd ip -netns $h1 ro get ${H1_VRF_ARG} ${H2_N2_IP}
289 run_cmd ip -netns $h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6}
331 run_cmd ip netns exec $h1 ping -q -M want -i 0.5 -c 10 -w 2 -s ${sz} ${H1_PING_ARG} ${H2_N2_IP}
332run_cmd ip netns exec $h1 ${ping6} -q -M want -i 0.5 -c 10 -w 2 -s ${sz} ${H1_PING_ARG} ${H2_N2_IP…
338 run_cmd ip -netns $r1 nexthop replace id 1 via ${R2_N1_IP} dev eth0
339 run_cmd ip -netns $r1 nexthop replace id 2 via ${R2_LLADDR} dev eth0
344 run_cmd ip -netns $r1 nexthop flush
[all …]
Dl2tp.sh46 run_cmd() function
228 run_cmd $host_1 ip xfrm policy add \
232 run_cmd $host_1 ip xfrm policy add \
236 run_cmd $host_2 ip xfrm policy add \
240 run_cmd $host_2 ip xfrm policy add \
267 run_cmd $host_1 ip -6 xfrm policy add \
271 run_cmd $host_1 ip -6 xfrm policy add \
275 run_cmd $host_2 ip -6 xfrm policy add \
279 run_cmd $host_2 ip -6 xfrm policy add \
306 run_cmd $host_1 ip xfrm state flush
[all …]
Dtest_vxlan_vnifiltering.sh128 run_cmd() function
157 run_cmd "ip netns exec $vm_11 ping -c 1 -W 1 10.0.10.12"
160 run_cmd "ip netns exec $vm_21 ping -c 1 -W 1 10.0.10.22"
328run_cmd "ip -netns $testns link add vxlan100 type vxlan id 100 local $localip dev veth-testns dstp…
332run_cmd "ip -netns $testns link add vxlan-ext1 type vxlan vnifilter local $localip dev veth-testns…
335run_cmd "ip -netns $testns link add vxlan-ext1 type vxlan external vnifilter local $localip dev ve…
338 run_cmd "bridge -netns $testns vni add dev vxlan-ext1 vni 100"
341 run_cmd "bridge -netns $testns vni add dev vxlan-ext1 vni 200"
344run_cmd "ip -netns $testns link add vxlan-ext2 type vxlan external vnifilter local $localip dev ve…
347 run_cmd "bridge -netns $testns vni add dev vxlan-ext2 vni 200"
[all …]
Dfdb_flush.sh47 run_cmd() function
172 run_cmd "$BRIDGE fdb flush dev vx10"
194 run_cmd "$BRIDGE fdb flush dev vx10 vni $vni_2"
228 run_cmd "$BRIDGE fdb flush dev vx10 src_vni $src_vni_2"
251 run_cmd "$BRIDGE fdb flush dev vx10 port $port_2"
272 run_cmd "$BRIDGE fdb flush dev vx10 dst $dst_ip_2"
307 run_cmd "$BRIDGE fdb flush dev vx10 nhid $nhid_2"
319 run_cmd "$BRIDGE fdb flush dev vx10 nhid $nhid_1"
325 run_cmd "$BRIDGE fdb flush dev vx10 nhid $nhid_1"
348 run_cmd "$BRIDGE fdb flush dev vx10 $flush_by_state"
[all …]
Dfib_nexthop_multiprefix.sh48 run_cmd() function
156 run_cmd ip -netns h${hostid} li set eth0 mtu ${mtu}
157 run_cmd ip -netns ${r1} li set eth${hostid} mtu ${mtu}
174 run_cmd ip netns exec ${h0} ping -s ${ping_sz} -c5 -w5 ${dst}
203 run_cmd ip netns exec ${h0} ${ping6} -s ${ping_sz} -c5 -w5 ${dst}
243 run_cmd taskset -c ${c} ip netns exec ${h0} ping -c1 -w1 172.16.10${i}.1
246 run_cmd taskset -c ${c} ip netns exec ${h0} ${ping6} -c1 -w1 2001:db8:10${i}::1
Dfib_nexthop_nongw.sh43 run_cmd() function
110 run_cmd ip -netns $h1 route get 192.168.1.1
112 run_cmd ip netns exec $h1 ping -c1 192.168.1.1
Dvrf_route_leaking.sh122 run_cmd() function
544 run_cmd ip netns exec $r1 ip vrf exec blue ping -c1 -w1 ${H2_N2_IP}
556 run_cmd nettest -s -O "$h2" -l ${H2_N2_IP} -I eth0 -3 eth0 &
558 run_cmd nettest -N "$r1" -d blue -r ${H2_N2_IP}
570 run_cmd nettest -s -D -O "$h2" -l ${H2_N2_IP} -I eth0 -3 eth0 &
572 run_cmd nettest -D -N "$r1" -d blue -r ${H2_N2_IP}
584 run_cmd ip netns exec $r1 ip vrf exec blue ${ping6} -c1 -w1 ${H2_N2_IP6}
596 run_cmd nettest -s -6 -O "$h2" -l ${H2_N2_IP6} -I eth0 -3 eth0 &
598 run_cmd nettest -6 -N "$r1" -d blue -r ${H2_N2_IP6}
610 run_cmd nettest -s -6 -D -O "$h2" -l ${H2_N2_IP6} -I eth0 -3 eth0 &
[all …]
Dfib-onlink-tests.sh121 run_cmd() function
244 run_cmd ip ro add table "${table}" "${prefix}"/32 via "${gw}" "${dev}" onlink
260 run_cmd ip ro add table "${table}" "${prefix}"/32 \
342 run_cmd ip -6 ro add table "${table}" "${prefix}"/128 via "${gw}" "${dev}" onlink
356 run_cmd ip -6 ro add table "${table}" "${prefix}"/128 "${opts}" \
Dtraceroute.sh35 run_cmd() function
214 run_cmd $h1 "traceroute6 2000:103::4 | grep -q 2000:102::2"
279 run_cmd $h1 "traceroute 1.0.2.4 | grep -q 1.0.1.1"
/linux-6.12.1/tools/bootconfig/scripts/
Dbconf2ftrace.sh41 run_cmd() { # command function
80 run_cmd "echo '$val' >> $2"
87 run_cmd "echo '$line' >> $2"
171 run_cmd "echo '`print_one_histogram ${1}`' >> ${2}"
192 run_cmd "echo 1 > ${eventdir}"
199 run_cmd "echo 'p:kprobes/$3 $line' >> $TRACEFS/kprobe_events"
203 run_cmd "echo '`compose_synth $3 ${branch}.fields`' >> $TRACEFS/synthetic_events"
213 run_cmd "echo 1 > ${eventdir}/enable"
226 run_cmd "echo 1 > $TRACEFS/instances/$2/events/enable"
228 run_cmd "echo 1 > $TRACEFS/events/enable"
[all …]
/linux-6.12.1/scripts/
Dcoccicheck175 run_cmd() { function
247 run_cmd $SPATCH -D patch \
249 run_cmd $SPATCH -D report \
251 run_cmd $SPATCH -D context \
253 run_cmd $SPATCH -D org \
256 run_cmd $SPATCH -D report \
258 run_cmd $SPATCH -D context \
261 run_cmd $SPATCH -D $MODE $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
Dsharedbuffer_configuration.py121 def run_cmd(cmd, json=False): function
129 return run_cmd(cmd, json=True)
176 run_cmd("devlink sb pool set {} sb {} pool {} size {} thtype {}".format(dlname, self["sb"],
238run_cmd("devlink sb tc bind set {} sb {} tc {} type {} pool {} th {}".format(self["dlportname"],
312 run_cmd("devlink sb port pool set {} sb {} pool {} th {}".format(self["dlportname"],
/linux-6.12.1/tools/testing/kunit/
Drun_checks.py46 f = executor.submit(run_cmd, argv)
76 def run_cmd(argv: Sequence[str]) -> None: function
/linux-6.12.1/arch/powerpc/boot/
Dwrapper76 run_cmd() { function
565 run_cmd dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
569 run_cmd dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
/linux-6.12.1/kernel/
Dreboot.c829 static int run_cmd(const char *cmd) in run_cmd() function
853 ret = run_cmd(reboot_cmd); in __orderly_reboot()
868 ret = run_cmd(poweroff_cmd); in __orderly_poweroff()
/linux-6.12.1/tools/perf/tests/
Dattr.py271 def run_cmd(self, tempdir): member in Test
367 self.run_cmd(tempdir);

12