Lines Matching +full:0 +full:x0800
12 VERBOSE=0
13 TRACING=0
34 [ $VERBOSE = 0 ] || echo $*
42 return 0
47 local start=0
53 return 0
68 NO_BIN=0
179 return 0
185 if [ $? -ne 0 ]; then
189 return 0
195 return 0
227 return 0
232 echo "$0 [OPTIONS] [TEST]..."
261 'in_port(1),eth(),eth_type(0x0806),arp()' 'psample(group=1)' &> /dev/null
273 min_key='in_port(1),eth(),eth_type(0x0800),ipv4()'
291 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1
293 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1
297 "in_port(1),eth(),eth_type(0x0800),ipv4()" \
307 "in_port(2),eth(),eth_type(0x0800),ipv4()" \
321 ovs_wait grep -qE "rate:4294967295,group:1,cookie:c0ffee data:[0-9a-f]{28}$" \
326 return 0
346 "${ns:0:1}0" "${ns:0:1}1" || return 1
359 'in_port(1),eth(),eth_type(0x0806),arp()' 'drop(10)' 2>/dev/null
370 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1
372 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1
376 "in_port(1),eth(),eth_type(0x0800),ipv4(src=172.31.110.10,proto=1),icmp()" '2'
378 "in_port(2),eth(),eth_type(0x0800),ipv4(src=172.31.110.20,proto=1),icmp()" 'drop'
381 ovs_drop_reason_count 0x${ovs_drop_subsys}0001 # OVS_DROP_FLOW_ACTION
389 "in_port(1),eth(),eth_type(0x0800),ipv4(src=172.31.110.10,proto=17),udp(dst=6000)" \
393 "in_port(1),eth(),eth_type(0x0800),ipv4(src=172.31.110.10,proto=17),udp(dst=7000)" \
394 'drop(0)'
398 ovs_drop_reason_count 0x${ovs_drop_subsys}0004 # OVS_DROP_EXPLICIT_ACTION_ERROR
406 ovs_drop_reason_count 0x${ovs_drop_subsys}0003 # OVS_DROP_EXPLICIT_ACTION
412 return 0
430 "${ns:0:1}0" "${ns:0:1}1" || return 1
436 …HW_CLIENT=`ip netns exec client ip link show dev c1 | grep -E 'link/ether [0-9a-f:]+' | awk '{prin…
442 …HW_SERVER=`ip netns exec server ip link show dev s1 | grep -E 'link/ether [0-9a-f:]+' | awk '{prin…
446 …"in_port(1),eth(),eth_type(0x0806),arp(sip=172.31.110.10,tip=172.31.110.20,sha=$HW_CLIENT,tha=ff:f…
448 "in_port(2),eth(),eth_type(0x0806),arp()" '1' || return 1
452 return 0
470 "${ns:0:1}0" "${ns:0:1}1" || return 1
480 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1
482 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1
484 'ct_state(-trk),eth(),eth_type(0x0800),ipv4()' \
485 'ct(commit),recirc(0x1)' || return 1
487 … 'recirc_id(0x1),ct_state(+trk+new),in_port(1),eth(),eth_type(0x0800),ipv4(src=172.31.110.10)' \
490 … 'recirc_id(0x1),ct_state(+trk+est),in_port(1),eth(),eth_type(0x0800),ipv4(src=172.31.110.10)' \
493 … 'recirc_id(0x1),ct_state(+trk+est),in_port(2),eth(),eth_type(0x0800),ipv4(dst=172.31.110.10)' \
496 'recirc_id(0x1),ct_state(+trk+inv),eth(),eth_type(0x0800),ipv4()' 'drop' || \
513 if [ $? == 0 ]; then
519 return 0
535 "${ns:0:1}0" "${ns:0:1}1" || return 1
546 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1
548 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1
550 'in_port(1),eth(),eth_type(0x0800),ipv4(src=172.31.110.10)' '2' || return 1
552 'in_port(2),eth(),eth_type(0x0800),ipv4(src=172.31.110.20)' '1' || return 1
558 return 0
575 "${ns:0:1}0" "${ns:0:1}1" || return 1
586 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1
588 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1
590 "ct_state(-trk),in_port(1),eth(),eth_type(0x0800),ipv4(dst=192.168.0.20)" \
591 "ct(commit,nat(dst=172.31.110.20)),recirc(0x1)"
593 "ct_state(-trk),in_port(2),eth(),eth_type(0x0800),ipv4()" \
594 "ct(commit,nat),recirc(0x2)"
597 "recirc_id(0x1),ct_state(+trk-inv),in_port(1),eth(),eth_type(0x0800),ipv4()" "2"
599 "recirc_id(0x2),ct_state(+trk-inv),in_port(2),eth(),eth_type(0x0800),ipv4()" "1"
615 if [ $? == 0 ]; then
621 return 0
637 "${ns:0:1}0" "${ns:0:1}1" || return 1
649 "in_port(1),eth(),eth_type(0x0806),arp()" "2" || return 1
651 "in_port(2),eth(),eth_type(0x0806),arp()" "1" || return 1
655 "ct_state(-trk),in_port(1),eth(),eth_type(0x0800),ipv4(dst=172.31.110.20)" \
656 "ct(commit,nat(src=192.168.0.20)),recirc(0x1)" || return 1
658 "recirc_id(0x1),ct_state(+trk-inv),in_port(1),eth(),eth_type(0x0800),ipv4()" \
664 "ct_state(-trk),in_port(2),eth(),eth_type(0x0800),ipv4()" \
665 "ct(commit,nat),recirc(0x2)" || return 1
667 …"recirc_id(0x2),ct_state(+rel+trk),in_port(2),eth(),eth_type(0x0800),ipv4(src=172.31.110.20,dst=17…
670 …"recirc_id(0x2),ct_state(+rel+trk),in_port(2),eth(),eth_type(0x0800),ipv4(dst=192.168.0.20,proto=1…
679 | grep "drop" | grep "packets:0" >/dev/null || return 1
682 return 0
694 PRE_TEST=$(dmesg | grep -E "RIP: [0-9a-fA-Fx]+:ovs_dp_cmd_new\+")
695 ovs_add_dp "test_netlink_checks" nv0 -V 0 || return 1
696 POST_TEST=$(dmesg | grep -E "RIP: [0-9a-fA-Fx]+:ovs_dp_cmd_new\+")
718 'in_port(1),eth(),eth_type(0x800),ipv4()' \
730 'in_port(1),eth(),eth_type(0x0806),arp()' 'drop(0),2' \
737 return 0
755 …grep -E "MISS upcall\[0/yes\]: .*arp\(sip=172.31.110.1,tip=172.31.110.20,op=1,sha=" $ovs_dir/left0…
756 return 0
785 if [ $ret -eq 0 ]; then
810 0)
811 [ $all_skipped = true ] && [ $exitcode=$ksft_skip ] && exitcode=0
827 exitcode=0
828 desc=0
865 run_this=0