Lines Matching refs:sw1

152 	setup_ns h1 h2 sw1 sw2
153 for ns in $h1 $h2 $sw1 $sw2; do
157 ip -n $h1 link add name eth0 type veth peer name swp1 netns $sw1
158 ip -n $sw1 link add name veth0 type veth peer name veth0 netns $sw2
246 local ns=$sw1
283 cleanup_ns $h1 $h2 $sw1 $sw2
300 run_cmd "tc -n $sw1 qdisc replace dev vx0 clsact"
301 …run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto 0x0806 flower indev swp1…
307 tc_check_packets $sw1 "dev vx0 egress" 101 1
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\""
318 tc_check_packets $sw1 "dev vx0 egress" 101 2
324 run_cmd "bridge -n $sw1 fdb replace $h2_mac dev vx0 master static vlan $vid"
329 tc_check_packets $sw1 "dev vx0 egress" 101 3
334 run_cmd "ip -n $sw1 neigh replace $tip lladdr $h2_mac nud permanent dev br0.$vid"
339 tc_check_packets $sw1 "dev vx0 egress" 101 3
349 tc_check_packets $sw1 "dev vx0 egress" 101 3
357 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress off"
358 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress off\""
363 tc_check_packets $sw1 "dev vx0 egress" 101 4
373 tc_check_packets $sw1 "dev vx0 egress" 101 5
403 run_cmd "tc -n $sw1 qdisc replace dev vx0 clsact"
404 …run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto ipv6 flower indev swp1 i…
410 tc_check_packets $sw1 "dev vx0 egress" 101 1
415 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress on"
416 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress on\""
421 tc_check_packets $sw1 "dev vx0 egress" 101 2
427 run_cmd "bridge -n $sw1 fdb replace $h2_mac dev vx0 master static vlan $vid"
432 tc_check_packets $sw1 "dev vx0 egress" 101 3
437 run_cmd "ip -n $sw1 neigh replace $daddr lladdr $h2_mac nud permanent dev br0.$vid"
442 tc_check_packets $sw1 "dev vx0 egress" 101 3
452 tc_check_packets $sw1 "dev vx0 egress" 101 3
460 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress off"
461 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress off\""
466 tc_check_packets $sw1 "dev vx0 egress" 101 4
476 tc_check_packets $sw1 "dev vx0 egress" 101 5
512 run_cmd "tc -n $sw1 qdisc replace dev vx0 clsact"
513 …run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto 0x0806 flower indev swp1…
514 …run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 102 proto 0x0806 flower indev swp1…
518 run_cmd "bridge -n $sw1 fdb replace $h2_mac1 dev vx0 master static vlan $vid1"
519 run_cmd "bridge -n $sw1 fdb replace $h2_mac2 dev vx0 master static vlan $vid2"
520 run_cmd "ip -n $sw1 neigh replace $tip1 lladdr $h2_mac1 nud permanent dev br0.$vid1"
521 run_cmd "ip -n $sw1 neigh replace $tip2 lladdr $h2_mac2 nud permanent dev br0.$vid2"
525 run_cmd "bridge -n $sw1 link set dev vx0 neigh_vlan_suppress on"
526 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_vlan_suppress on\""
534 tc_check_packets $sw1 "dev vx0 egress" 101 1
536 tc_check_packets $sw1 "dev vx0 egress" 102 1
541 run_cmd "bridge -n $sw1 vlan set vid $vid1 dev vx0 neigh_suppress on"
542 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid1 | grep \"neigh_suppress on\""
544 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid2 | grep \"neigh_suppress off\""
552 tc_check_packets $sw1 "dev vx0 egress" 101 1
554 tc_check_packets $sw1 "dev vx0 egress" 102 2
559 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress on"
560 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress on\""
568 tc_check_packets $sw1 "dev vx0 egress" 101 1
570 tc_check_packets $sw1 "dev vx0 egress" 102 3
575 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress off"
576 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress off\""
584 tc_check_packets $sw1 "dev vx0 egress" 101 1
586 tc_check_packets $sw1 "dev vx0 egress" 102 4
591 run_cmd "bridge -n $sw1 vlan set vid $vid1 dev vx0 neigh_suppress off"
592 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid1 | grep \"neigh_suppress off\""
600 tc_check_packets $sw1 "dev vx0 egress" 101 2
602 tc_check_packets $sw1 "dev vx0 egress" 102 5
608 run_cmd "bridge -n $sw1 link set dev vx0 neigh_vlan_suppress off"
609 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_vlan_suppress off\""
612 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress on"
613 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress on\""
621 tc_check_packets $sw1 "dev vx0 egress" 101 2
623 tc_check_packets $sw1 "dev vx0 egress" 102 5
643 run_cmd "tc -n $sw1 qdisc replace dev vx0 clsact"
644 …run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto ipv6 flower indev swp1 i…
645 …run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 102 proto ipv6 flower indev swp1 i…
649 run_cmd "bridge -n $sw1 fdb replace $h2_mac1 dev vx0 master static vlan $vid1"
650 run_cmd "bridge -n $sw1 fdb replace $h2_mac2 dev vx0 master static vlan $vid2"
651 run_cmd "ip -n $sw1 neigh replace $daddr1 lladdr $h2_mac1 nud permanent dev br0.$vid1"
652 run_cmd "ip -n $sw1 neigh replace $daddr2 lladdr $h2_mac2 nud permanent dev br0.$vid2"
656 run_cmd "bridge -n $sw1 link set dev vx0 neigh_vlan_suppress on"
657 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_vlan_suppress on\""
665 tc_check_packets $sw1 "dev vx0 egress" 101 1
667 tc_check_packets $sw1 "dev vx0 egress" 102 1
672 run_cmd "bridge -n $sw1 vlan set vid $vid1 dev vx0 neigh_suppress on"
673 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid1 | grep \"neigh_suppress on\""
675 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid2 | grep \"neigh_suppress off\""
683 tc_check_packets $sw1 "dev vx0 egress" 101 1
685 tc_check_packets $sw1 "dev vx0 egress" 102 2
690 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress on"
691 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress on\""
699 tc_check_packets $sw1 "dev vx0 egress" 101 1
701 tc_check_packets $sw1 "dev vx0 egress" 102 3
706 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress off"
707 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress off\""
715 tc_check_packets $sw1 "dev vx0 egress" 101 1
717 tc_check_packets $sw1 "dev vx0 egress" 102 4
722 run_cmd "bridge -n $sw1 vlan set vid $vid1 dev vx0 neigh_suppress off"
723 run_cmd "bridge -n $sw1 -d vlan show dev vx0 vid $vid1 | grep \"neigh_suppress off\""
731 tc_check_packets $sw1 "dev vx0 egress" 101 2
733 tc_check_packets $sw1 "dev vx0 egress" 102 5
739 run_cmd "bridge -n $sw1 link set dev vx0 neigh_vlan_suppress off"
740 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_vlan_suppress off\""
743 run_cmd "bridge -n $sw1 link set dev vx0 neigh_suppress on"
744 run_cmd "bridge -n $sw1 -d link show dev vx0 | grep \"neigh_suppress on\""
752 tc_check_packets $sw1 "dev vx0 egress" 101 2
754 tc_check_packets $sw1 "dev vx0 egress" 102 5