Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/net/
Dfib_nexthops.sh103 run_cmd() function
330 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"
346 run_cmd "$IP nexthop add id $grpidstr group $grpstr"
352 run_cmd "$IP nexthop list"
369 run_cmd "$IP nexthop add id 100 via $ipstr dev veth1"
370 run_cmd "$IP nexthop add id 1000 group 100 type resilient buckets $buckets"
371 run_cmd "$IP nexthop bucket list"
455 run_cmd "$IP nexthop add id 61 via 2001:db8:91::2 fdb"
456 run_cmd "$IP nexthop add id 62 via 2001:db8:91::3 fdb"
457 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
338 run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
340 run_cmd "bridge -n $ns1 -d -s mdb show dev vx0 | grep \"$grp_key\""
343 run_cmd "bridge -n $ns1 mdb replace dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
345 run_cmd "bridge -n $ns1 -d -s mdb show dev vx0 | grep \"$grp_key\""
348 run_cmd "bridge -n $ns1 mdb del dev vx0 port vx0 $grp_key dst $vtep_ip src_vni 10010"
350 run_cmd "bridge -n $ns1 -d -s mdb show dev vx0 | grep \"$grp_key\""
353 run_cmd "bridge -n $ns1 mdb del dev vx0 port vx0 $grp_key dst $vtep_ip src_vni 10010"
357 run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"
358 run_cmd "bridge -n $ns1 -d -s mdb show dev vx0 | grep \"$grp_key\" | grep \"proto static\""
[all …]
Dtest_bridge_neigh_suppress.sh101 run_cmd() function
315 run_cmd "tc -n sw1 qdisc replace dev vx0 clsact"
316run_cmd "tc -n sw1 filter replace dev vx0 egress pref 1 handle 101 proto 0x0806 flower indev swp1 …
320 run_cmd "ip netns exec h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
327 run_cmd "bridge -n sw1 link set dev vx0 neigh_suppress on"
328 run_cmd "bridge -n sw1 -d link show dev vx0 | grep \"neigh_suppress on\""
331 run_cmd "ip netns exec h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
339 run_cmd "bridge -n sw1 fdb replace $h2_mac dev vx0 master static vlan $vid"
342 run_cmd "ip netns exec h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip"
349 run_cmd "ip -n sw1 neigh replace $tip lladdr $h2_mac nud permanent dev br0.$vid"
[all …]
Dfcnal-test.sh218 run_cmd() function
238 run_cmd ${cmd}
304 run_cmd sysctl -q -w $*
582 run_cmd ping -c1 -w1 ${a}
586 run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a}
590 run_cmd ping -c1 -w1 -I ${NSA_LO_IP} ${a}
599 run_cmd ping -c 1 -w 1 -r ${a}
605 run_cmd ping -c 1 -w 1 -r ${a}
624 run_cmd ping -c1 -w1 ${a}
634 run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a}
[all …]
Dfib_tests.sh504 run_cmd "ip netns exec ns2 ping -w1 -c1 192.0.2.1"
507 run_cmd "ip netns exec ns2 ping -w1 -c1 127.0.0.1"
839 run_cmd() function
908 run_cmd "$IP -6 ro flush ${pfx}"
917 run_cmd "$IP -6 ro add ${pfx} ${nh}"
1005 run_cmd "$IP -6 ro add 2001:db8:104::/64 via 2001:db8:103::2"
1010 run_cmd "$IP -6 ro add 2001:db8:104::/64 dev veth3"
1015 run_cmd "$IP -6 ro add unreachable 2001:db8:104::/64"
1021 run_cmd "$IP -6 ro append 2001:db8:104::/64 via 2001:db8:103::2"
1031 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.sh61 run_cmd() function
125 run_cmd "bridge -n ns1 fdb add $dmac dev vx0 self static dst 192.0.2.1 port 4790"
127 run_cmd "tc -n ns1 qdisc add dev vx1 clsact"
128run_cmd "tc -n ns1 filter add dev vx1 ingress pref 1 handle 101 proto all flower src_mac $smac dst…
130 run_cmd "tc -n ns1 qdisc add dev lo clsact"
131run_cmd "tc -n ns1 filter add dev lo ingress pref 1 handle 101 proto ip flower ip_proto udp dst_po…
133run_cmd "ip -n ns1 -d -j link show dev vx0 | jq -e '.[][\"linkinfo\"][\"info_data\"][\"localbypass…
136 run_cmd "ip netns exec ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
141 run_cmd "ip -n ns1 link set dev vx0 type vxlan nolocalbypass"
143run_cmd "ip -n ns1 -d -j link show dev vx0 | jq -e '.[][\"linkinfo\"][\"info_data\"][\"localbypass…
[all …]
Dicmp_redirect.sh94 run_cmd() function
281 run_cmd ip -netns h2 li set eth0 mtu ${mtu}
282 run_cmd ip -netns r2 li set eth2 mtu ${mtu}
294 run_cmd ip -netns h1 ro get ${H1_VRF_ARG} ${H2_N2_IP}
295 run_cmd ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6}
337 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}
338 run_cmd ip netns exec h1 ${ping6} -q -M want -i 0.5 -c 10 -w 2 -s ${sz} ${H1_PING_ARG} ${H2_N2_IP6}
344 run_cmd ip -netns r1 nexthop replace id 1 via ${R2_N1_IP} dev eth0
345 run_cmd ip -netns r1 nexthop replace id 2 via ${R2_LLADDR} dev eth0
350 run_cmd ip -netns r1 nexthop flush
[all …]
Dl2tp.sh45 run_cmd() function
234 run_cmd host-1 ip xfrm policy add \
238 run_cmd host-1 ip xfrm policy add \
242 run_cmd host-2 ip xfrm policy add \
246 run_cmd host-2 ip xfrm policy add \
273 run_cmd host-1 ip -6 xfrm policy add \
277 run_cmd host-1 ip -6 xfrm policy add \
281 run_cmd host-2 ip -6 xfrm policy add \
285 run_cmd host-2 ip -6 xfrm policy add \
312 run_cmd host-1 ip xfrm state flush
[all …]
Dtest_vxlan_vnifiltering.sh130 run_cmd() function
159 run_cmd "ip netns exec vm-11 ping -c 1 -W 1 10.0.10.12"
162 run_cmd "ip netns exec vm-21 ping -c 1 -W 1 10.0.10.22"
334run_cmd "ip -netns testns link add vxlan100 type vxlan id 100 local $localip dev veth-testns dstpo…
338run_cmd "ip -netns testns link add vxlan-ext1 type vxlan vnifilter local $localip dev veth-testns …
341run_cmd "ip -netns testns link add vxlan-ext1 type vxlan external vnifilter local $localip dev vet…
344 run_cmd "bridge -netns testns vni add dev vxlan-ext1 vni 100"
347 run_cmd "bridge -netns testns vni add dev vxlan-ext1 vni 200"
350run_cmd "ip -netns testns link add vxlan-ext2 type vxlan external vnifilter local $localip dev vet…
353 run_cmd "bridge -netns testns vni add dev vxlan-ext2 vni 200"
[all …]
Dfib_nexthop_multiprefix.sh47 run_cmd() function
158 run_cmd ip -netns h${hostid} li set eth0 mtu ${mtu}
159 run_cmd ip -netns r1 li set eth${hostid} mtu ${mtu}
176 run_cmd ip netns exec h0 ping -s ${ping_sz} -c5 -w5 ${dst}
205 run_cmd ip netns exec h0 ${ping6} -s ${ping_sz} -c5 -w5 ${dst}
245 run_cmd taskset -c ${c} ip netns exec h0 ping -c1 -w1 172.16.10${i}.1
248 run_cmd taskset -c ${c} ip netns exec h0 ${ping6} -c1 -w1 2001:db8:10${i}::1
Dfib_nexthop_nongw.sh42 run_cmd() function
114 run_cmd ip -netns h1 route get 192.168.1.1
116 run_cmd ip netns exec h1 ping -c1 192.168.1.1
Dfib-onlink-tests.sh123 run_cmd() function
247 run_cmd ip ro add table "${table}" "${prefix}"/32 via "${gw}" "${dev}" onlink
263 run_cmd ip ro add table "${table}" "${prefix}"/32 \
345 run_cmd ip -6 ro add table "${table}" "${prefix}"/128 via "${gw}" "${dev}" onlink
359 run_cmd ip -6 ro add table "${table}" "${prefix}"/128 "${opts}" \
Dtraceroute.sh34 run_cmd() function
220 run_cmd host-1 "traceroute6 2000:103::4 | grep -q 2000:102::2"
289 run_cmd host-1 "traceroute 1.0.2.4 | grep -q 1.0.1.1"
Dvrf_route_leaking.sh121 run_cmd() function
/linux-6.6.21/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.6.21/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.6.21/tools/testing/kunit/
Drun_checks.py46 f = executor.submit(run_cmd, argv)
76 def run_cmd(argv: Sequence[str]) -> None: function
/linux-6.6.21/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.6.21/arch/powerpc/boot/
Dwrapper76 run_cmd() { function
585 run_cmd dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
589 run_cmd dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
/linux-6.6.21/kernel/
Dreboot.c813 static int run_cmd(const char *cmd) in run_cmd() function
837 ret = run_cmd(reboot_cmd); in __orderly_reboot()
852 ret = run_cmd(poweroff_cmd); in __orderly_poweroff()
/linux-6.6.21/tools/perf/tests/
Dattr.py271 def run_cmd(self, tempdir): member in Test
367 self.run_cmd(tempdir);
/linux-6.6.21/mm/
Dvmscan.c6071 static int run_cmd(char cmd, int memcg_id, int nid, unsigned long seq, in run_cmd() function
6176 err = run_cmd(cmd, memcg_id, nid, seq, &sc, swappiness, opt); in lru_gen_seq_write()