Lines Matching +full:local +full:- +full:mac +full:- +full:address
2 # SPDX-License-Identifier: GPL-2.0
92 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
99 log_test "vxlan device - valid configuration"
109 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
116 log_test "vxlan device with a vlan-aware bridge"
126 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
144 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 \
170 log_test "vxlan device with no local ip"
180 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
198 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 dev dummy1
206 log_test "vxlan device with local interface"
216 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 \
234 ttl 20 tos 20 local $LOCAL_IP_1 dstport 4789
251 ttl inherit tos inherit local $LOCAL_IP_1 dstport 4789
268 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
345 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
347 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
356 log_test "multiple vxlan devices - valid configuration"
367 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
369 ttl 40 tos inherit local $LOCAL_IP_1 dstport 4789
389 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
391 ttl 20 tos inherit local $LOCAL_IP_1 dstport 5789
411 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
413 ttl 20 tos inherit local $LOCAL_IP_2 dstport 4789
422 log_test "multiple vxlan devices with different local ip"
446 # and one local port
457 ip address add $LOCAL_IP_1/$PREFIX_LEN dev lo
460 $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
462 $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
470 ip address del $LOCAL_IP_1/$PREFIX_LEN dev lo
505 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
508 log_test "vxlan entry offload indication - initial state"
519 log_test "vxlan entry offload indication - after removal from bridge"
530 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
533 log_test "vxlan entry offload indication - after re-add to bridge"
541 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
544 log_test "vxlan entry offload indication - after removal from vxlan"
555 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
558 log_test "vxlan entry offload indication - after re-add to vxlan"
574 ip $IP_FLAG route show table local $LOCAL_IP_1
579 ip $IP_FLAG route show table local $LOCAL_IP_1
584 ip $IP_FLAG route show table local $LOCAL_IP_1
587 log_test "vxlan decap route - vxlan device down"
593 ip $IP_FLAG route show table local $LOCAL_IP_1
598 ip $IP_FLAG route show table local $LOCAL_IP_1
601 log_test "vxlan decap route - vxlan device up"
605 ip address delete $LOCAL_IP_1/$PREFIX_LEN dev lo
607 ip $IP_FLAG route show table local $LOCAL_IP_1
610 ip address add $LOCAL_IP_1/$PREFIX_LEN dev lo
612 ip $IP_FLAG route show table local $LOCAL_IP_1
615 log_test "vxlan decap route - add local route"
621 ip $IP_FLAG route show table local $LOCAL_IP_1
626 ip $IP_FLAG route show table local $LOCAL_IP_1
632 ip $IP_FLAG route show table local $LOCAL_IP_1
635 log_test "vxlan decap route - local ports enslavement"
641 ip $IP_FLAG route show table local $LOCAL_IP_1
646 ip $IP_FLAG route show table local $LOCAL_IP_1
649 log_test "vxlan decap route - bridge device deletion"
664 ip $IP_FLAG route show table local $LOCAL_IP_1
669 ip $IP_FLAG route show table local $LOCAL_IP_1
674 ip $IP_FLAG route show table local $LOCAL_IP_1
677 log_test "vxlan decap route - vxlan device deletion"
680 $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
682 $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
687 local mac=00:11:22:33:44:55
688 local zmac=00:00:00:00:00:00
690 busywait "$TIMEOUT" wait_for_offload grep_bridge_fdb $mac self \
693 busywait "$TIMEOUT" wait_for_offload grep_bridge_fdb $mac master \
704 local mac=00:11:22:33:44:55
705 local zmac=00:00:00:00:00:00
707 bridge fdb show dev vxlan0 | grep $mac | grep -q self
709 busywait "$TIMEOUT" not wait_for_offload grep_bridge_fdb $mac self \
713 bridge fdb show dev vxlan0 | grep $zmac | grep -q self
722 local mac=00:11:22:33:44:55
723 local zmac=00:00:00:00:00:00
725 bridge fdb show dev vxlan0 | grep $mac | grep -q master
727 busywait "$TIMEOUT" not wait_for_offload grep_bridge_fdb $mac master \
734 local vid=$1; shift
736 local mac=00:11:22:33:44:55
737 local zmac=00:00:00:00:00:00
742 bridge fdb add dev vxlan0 $mac self master static dst $LOCAL_IP_2
749 log_test "offload indication - attach vxlan first"
755 log_test "offload indication - set vxlan down"
761 log_test "offload indication - set vxlan up"
763 if [[ ! -z $vid ]]; then
768 log_test "offload indication - delete VLAN"
774 log_test "offload indication - add tagged VLAN"
780 log_test "offload indication - add pvid/untagged VLAN"
786 log_test "offload indication - detach port"
795 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
805 local zmac=00:00:00:00:00:00
823 log_test "offload indication - attach vxlan last"
832 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
847 log_info "offload indication - replay & cleanup"
860 $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
863 $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
873 log_test "vlan-aware - enslavement to vlan-aware bridge"
882 log_test "vlan-aware - two vnis mapped to the same vlan"
896 log_test "vlan-aware - failed enslavement to vlan-aware bridge"
902 # (i.e., different TTL) are enslaved to the same VLAN-aware bridge,
905 # Use the offload indication of the local route to ensure the VXLAN
907 ip address add $LOCAL_IP_1/$PREFIX_LEN dev lo
914 ip $IP_FLAG route show table local $LOCAL_IP_1
917 log_test "vlan-aware - failed enslavement to bridge due to conflict"
920 ip address del $LOCAL_IP_1/$PREFIX_LEN dev lo
929 # Create a simple setup with two VxLAN devices and a single VLAN-aware
941 ip address add $LOCAL_IP_1/$PREFIX_LEN dev lo
944 $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
946 $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
960 ip address del $LOCAL_IP_1/$PREFIX_LEN dev lo
974 log_info "vxlan entry offload indication - vlan-aware"
983 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan10
986 log_test "vxlan entry offload indication - initial state"
997 log_test "vxlan entry offload indication - after removal from bridge"
1008 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan10
1011 log_test "vxlan entry offload indication - after re-add to bridge"
1019 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan10
1022 log_test "vxlan entry offload indication - after removal from vxlan"
1033 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan10
1036 log_test "vxlan entry offload indication - after re-add to vxlan"
1046 ip $IP_FLAG route show table local $LOCAL_IP_1
1054 ip $IP_FLAG route show table local $LOCAL_IP_1
1062 ip $IP_FLAG route show table local $LOCAL_IP_1
1069 busywait "$TIMEOUT" wait_for_offload ip $IP_FLAG route show table local \
1073 log_test "vxlan decap route - vni map/unmap"
1083 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
1098 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
1108 local zmac=00:00:00:00:00:00
1118 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
1136 ip -6 address add 2001:db8:1::1/64 dev br10
1158 log_test "vxlan - l3 vni"
1172 log_info "offload indication - replay & cleanup - vlan aware"