| /tools/testing/selftests/bpf/ |
| A D | test_tc_tunnel.sh | 128 echo "ip gre $mac" 129 $0 ipv4 gre $mac 100 131 echo "ip6 gre $mac" 134 echo "ip gre $mac gso" 135 $0 ipv4 gre $mac 2000 140 echo "ip udp $mac" 141 $0 ipv4 udp $mac 100 143 echo "ip6 udp $mac" 146 echo "ip udp $mac gso" 147 $0 ipv4 udp $mac 2000 [all …]
|
| /tools/testing/selftests/net/ |
| A D | test_neigh.sh | 75 local mac 77 mac=$(ip -n "$ns2" -j link show dev veth1 | jq -r '.[]["address"]') 82 run_cmd "ip -n $ns1 neigh add $ip_addr lladdr $mac nud stale dev veth0 extern_valid" 112 run_cmd "ip -n $ns1 neigh add $ip_addr lladdr $mac nud stale dev veth0" 116 run_cmd "ip -n $ns1 neigh replace $ip_addr lladdr $mac nud stale dev veth0" 127 run_cmd "ip -n $ns1 neigh add $ip_addr lladdr $mac nud stale dev veth0 extern_valid" 138 run_cmd "ip -n $ns1 neigh add $ip_addr lladdr $mac nud stale dev veth0 extern_valid" 149 run_cmd "ip -n $ns1 neigh add $ip_addr lladdr $mac nud stale dev veth0 extern_valid" 162 run_cmd "ip -n $ns1 neigh add $ip_addr lladdr $mac nud stale dev veth0 extern_valid" 249 run_cmd "ip -n $ns1 neigh add ${subnet}3 lladdr $mac nud stale dev veth0" [all …]
|
| A D | fdb_flush.sh | 129 for mac in $MAC_POOL_1 131 $BRIDGE fdb add $mac dev $dev $args 140 for mac in $MAC_POOL_2 142 $BRIDGE fdb add $mac dev $dev $args 564 mac=00:00:00:00:00:00 568 $BRIDGE fdb append $mac dev vx10 dst 192.0.2.1 vni $vni \ 570 $BRIDGE fdb append $mac dev vx10 dst 192.0.2.1 vni $vni \ 572 $BRIDGE fdb append $mac dev vx10 dst 192.0.2.2 vni $vni \
|
| /tools/testing/selftests/drivers/net/netdevsim/ |
| A D | macsec-offload.sh | 16 if ! ip link add link $NSIM_NETDEV $MACSEC_NETDEV type macsec offload mac 2>/dev/null; then 26 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}" type macsec port 4 offload mac 29 …dd link $NSIM_NETDEV "${MACSEC_NETDEV}2" type macsec address "aa:bb:cc:dd:ee:ff" port 5 offload mac 32 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}3" type macsec sci abbacdde01020304 offload mac 35 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}4" type macsec port 8 offload mac 2> /dev/null 62 ip link set "${MACSEC_NETDEV}2" type macsec offload mac 69 ip macsec offload "${MACSEC_NETDEV}2" mac 82 ip link add link $NSIM_NETDEV $MACSEC_NETDEV type macsec offload mac 88 ip link set $MACSEC_NETDEV type macsec offload mac 103 ip link set $MACSEC_NETDEV type macsec offload mac
|
| /tools/testing/selftests/net/forwarding/ |
| A D | bridge_fdb_learning_limit.sh | 27 mac() function 32 H1_DEFAULT_MAC=$(mac 42) 111 local mac=${1} 114 jq "map(select(.mac == \"${mac}\" and (has(\"vlan\") | not))) | length" 137 local type=$1 mac=$2 141 ip link set "$h1" addr "$mac" 152 bridge fdb replace "$mac" dev "$swp1" master static 155 bridge fdb replace "$mac" dev "$swp1" master static use 158 bridge fdb replace "$mac" dev "$swp1" master extern_learn 167 local type=$1 mac=$2 [all …]
|
| A D | vxlan_bridge_1q.sh | 484 local mac=$1; shift 523 local mac=$1; shift 531 vxlan_flood_test $mac $dst $vid "${expects[@]}" 563 local mac=$1; shift 574 local mac=$1; shift 632 local mac=de:ad:be:ef:13:37 701 local mac=$1; shift 810 local mac=de:ad:be:ef:13:37 824 __test_learning $mac $dst $vid 1 3 828 mac=ca:fe:be:ef:13:37 [all …]
|
| A D | vxlan_bridge_1d.sh | 385 local mac=$1; shift 417 local mac=$1; shift 423 vxlan_flood_test $mac $dst 10 10 10 444 local mac=$1; shift 455 local mac=$1; shift 688 local mac=de:ad:be:ef:13:37 700 vxlan_flood_test $mac $dst 10 10 10 722 vxlan_flood_test $mac $dst 0 10 0 733 vxlan_flood_test $mac $dst 10 10 10 749 vxlan_flood_test $mac $dst 0 10 0 [all …]
|
| A D | bridge_vlan_aware.sh | 115 local mac=de:ad:be:ef:13:37 134 $MZ $h2 -c 1 -p 64 -a $mac -t ip -q 147 local mac=de:ad:be:ef:13:37 157 flower dst_mac $mac action drop 161 $MZ -q $h1 -c 1 -b $mac -a own "88:a8 00:03 81:00 00:05 08:00 aa-aa-aa-aa-aa-aa-aa-aa-aa" 182 $MZ -q $h1 -c 1 -b $mac -a own "88:a8 00:03 81:00 00:05 08:00 aa-aa-aa-aa-aa-aa-aa-aa-aa" 200 local mac=de:ad:be:ef:13:37 203 flower dst_mac $mac action drop 205 $MZ -q $h1 -c 1 -b $mac -a own "81:00 00:00 08:00 aa-aa-aa-aa-aa-aa-aa-aa-aa"
|
| A D | lib.sh | 1359 | jq -e ".[] | select(.mac == \"$mac\")" &> /dev/null 1370 flower dst_mac $mac action drop 1372 $MZ $host2_if -c 1 -p 64 -b $mac -t ip -q 1380 $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q 1387 $MZ $host2_if -c 1 -p 64 -b $mac -t ip -q 1406 $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q 1427 local mac=$2 1438 flower dst_mac $mac action drop 1463 local mac=de:ad:be:ef:13:37 1486 local mac=01:00:5e:00:00:01 [all …]
|
| A D | vxlan_bridge_1q_ipv6.sh | 626 local mac=$1; shift 665 local mac=$1; shift 673 vxlan_flood_test $mac $dst $vid "${expects[@]}" 690 local mac=$1; shift 701 local mac=$1; shift 712 vxlan_flood_test $mac $dst $vid "${expects[@]}" 759 local mac=de:ad:be:ef:13:37 767 vxlan_flood_test $mac $dst $vid "${expects[@]}" 777 vxlan_flood_test $mac $dst $vid "${expects[@]}" 787 vxlan_flood_test $mac $dst $vid "${expects[@]}" [all …]
|
| A D | bridge_locked_port.sh | 221 local mac=a0:b0:c0:c0:b0:a0 228 $MZ $h1 -q -c 5 -d 100msec -t udp -a $mac -b rand 229 bridge fdb get $mac br br0 vlan 1 | grep "dev $swp1" | grep -q "locked" 232 $MZ $h2 -q -c 5 -d 100msec -t udp -a $mac -b rand 233 bridge fdb get $mac br br0 vlan 1 | grep -q "dev $swp2" 236 bridge fdb get $mac br br0 vlan 1 | grep -q "locked" 239 $MZ $h1 -q -c 5 -d 100msec -t udp -a $mac -b rand 240 bridge fdb get $mac br br0 vlan 1 | grep -q "dev $swp1" 243 bridge fdb del $mac vlan 1 dev $swp2 master
|
| A D | bridge_port_isolation.sh | 130 local mac=de:ad:be:ef:13:37 134 flood_test_do false $mac $ip $h1 $h2 138 flood_test_do true $mac $ip $h3 $h2
|
| A D | vxlan_bridge_1d_ipv6.sh | 506 local mac=$1; shift 519 $MZ -6 $h1 -c 10 -d 100msec -p 64 -b $mac -B $dst -t icmp6 type=128 -q 538 local mac=$1; shift 544 vxlan_flood_test $mac $dst 10 10 10 557 local mac=$1; shift 561 bridge fdb $add_del dev $dev $mac self static permanent \ 563 bridge fdb $add_del dev $dev $mac master static 2>/dev/null 568 local mac=$1; shift 578 vxlan_flood_test $mac $dst "${expects[@]}"
|
| A D | bridge_igmp.sh | 154 local mac=$2 161 $MZ $host1_if -b $mac -c 1 -B $group -t ip "proto=2,p=$MZPKT_IS_INC" -q 178 local mac=$2 184 v3include_prepare $host1_if $mac $group 186 $MZ $host1_if -c 1 -b $mac -B $group -t ip "proto=2,p=$MZPKT_IS_EXC" -q
|
| A D | vxlan_bridge_1q_mc_ul.sh | 471 local mac 473 mac=$(mac_get "$h2") 474 "$MZ" "$h1" -Q 10 -c 10 -d 100msec -p 64 -a own -b "$mac" \ 480 local mac 482 mac=$(mac_get "$h2") 483 "$MZ" -6 "$h1" -Q 20 -c 10 -d 100msec -p 64 -a own -b "$mac" \
|
| A D | vxlan_symmetric.sh | 477 local mac=$1; shift 482 bridge fdb add $mac dev vx4001 self master extern_learn static \ 485 ip neigh add $vtep_ip lladdr $mac nud noarp dev vlan4001 extern_learn
|
| /tools/testing/selftests/bpf/progs/ |
| A D | test_lwt_redirect.c | 14 char mac[] = {0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0xf, in prepend_dummy_mac() local 20 if (bpf_skb_store_bytes(skb, 0, mac, sizeof(mac), 0)) in prepend_dummy_mac()
|
| A D | xdp_redirect_multi_kern.c | 98 __be64 *mac; in xdp_devmap_prog() local 104 mac = bpf_map_lookup_elem(&mac_map, &key); in xdp_devmap_prog() 105 if (mac) in xdp_devmap_prog() 106 __builtin_memcpy(eth->h_source, mac, ETH_ALEN); in xdp_devmap_prog()
|
| A D | xdp_redirect_map.c | 92 __be64 mac = 0; in store_mac() local 99 __builtin_memcpy(&mac, eth->h_source, ETH_ALEN); in store_mac() 100 bpf_map_update_elem(&rx_mac, &key, &mac, 0); in store_mac() 101 bpf_printk("%s - %x", __func__, mac); in store_mac()
|
| /tools/testing/selftests/tc-testing/ |
| A D | tdc_batch.py | 103 mac = ("{:02x}:{:02x}:{:02x}".format(i, j, k)) variable 104 src_mac = "e4:11:{:02x}:{}".format(mac_prefix, mac) 105 dst_mac = "e4:12:00:" + mac
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | fib_lookup.c | 250 static void mac_str(char *b, const __u8 *mac) in mac_str() argument 253 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in mac_str()
|
| /tools/virtio/ |
| A D | vhost_net_test.c | 57 unsigned char mac[ETHER_ADDR_LEN]; member 98 memcpy(dev->mac, &ifr.ifr_hwaddr.sa_data, ETHER_ADDR_LEN); in tun_alloc() 226 memcpy(eh->ether_dhost, dev->mac, ETHER_ADDR_LEN); in vdev_info_init() 227 memcpy(eh->ether_shost, dev->mac, ETHER_ADDR_LEN); in vdev_info_init()
|
| /tools/testing/selftests/tdx/ |
| A D | tdx_guest_test.c | 62 __u8 mac[32]; member
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| A D | vxlan.sh | 687 local mac=00:11:22:33:44:55 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 707 bridge fdb show dev vxlan0 | grep $mac | grep -q self 709 busywait "$TIMEOUT" not wait_for_offload grep_bridge_fdb $mac self \ 722 local mac=00:11:22:33:44:55 725 bridge fdb show dev vxlan0 | grep $mac | grep -q master 727 busywait "$TIMEOUT" not wait_for_offload grep_bridge_fdb $mac master \ 736 local mac=00:11:22:33:44:55 [all …]
|
| /tools/testing/selftests/rcutorture/bin/ |
| A D | kvm.sh | 214 --mac) 215 checkarg --mac "(MAC address)" $# "$2" '^\([0-9a-fA-F]\{2\}:\)\{5\}[0-9a-fA-F]\{2\}$' error
|