| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | no_forwarding.sh | 34 local smac=$2 37 $MZ -q $if_name "$dmac $smac $NON_IP_PKT" 93 local smac=$(mac_get $h1) 102 send_non_ip $h1 $smac $dmac 103 send_non_ip $h1 $smac $NON_IP_MC 104 send_non_ip $h1 $smac $BC 114 send_non_ip $h1.$vid $smac $dmac 115 send_non_ip $h1.$vid $smac $NON_IP_MC 116 send_non_ip $h1.$vid $smac $BC 133 "$smac > $dmac, 802.3, length 4:" [all …]
|
| H A D | tc_flower_port_range.sh | 85 local smac=$(mac_get $h1) 106 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 113 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 120 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 129 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 131 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 133 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 135 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 137 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 207 local smac=$(mac_get $h1) [all …]
|
| H A D | local_termination.sh | 114 local smac=$(mac_get $if_name) 116 pkt="${pkt/00:00:de:ad:be:ef/$smac}" 175 local smac=$(mac_get $send_if_name) 250 "$smac > $rcv_dmac, ethertype IPv4 (0x0800)" \ 254 "$smac > $MACVLAN_ADDR, ethertype IPv4 (0x0800)" \ 259 "$smac > $UNKNOWN_UC_ADDR1, ethertype IPv4 (0x0800)" \ 263 "$smac > $UNKNOWN_UC_ADDR2, ethertype IPv4 (0x0800)" \ 269 "$smac > $UNKNOWN_UC_ADDR3, ethertype IPv4 (0x0800)" \ 273 "$smac > $JOINED_MACV4_MC_ADDR, ethertype IPv4 (0x0800)" \ 279 "$smac > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \ [all …]
|
| H A D | tc_flower_l2_miss.sh | 301 local smac=00:01:02:03:04:05 306 flower l2_miss 1 dst_mac $dmac src_mac $smac \ 309 flower l2_miss 0 dst_mac $dmac src_mac $smac \ 312 $MZ $h1 -a $smac -b $dmac -c 1 -p 100 -q
|
| /linux/tools/testing/selftests/net/ |
| H A D | test_bridge_backup_port.sh | 248 local smac=00:aa:bb:cc:dd:ee 255 run_cmd "tc -n $sw1 filter replace dev swp1 egress pref 1 handle 101 proto ip flower src_mac $smac dst_mac $dmac action pass" 258 run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto ip flower src_mac $smac dst_mac $dmac action pass" 265 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1" 275 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1" 292 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1" 302 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1" 312 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1" 325 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1" 335 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac [all...] |
| H A D | test_vxlan_nolocalbypass.sh | 120 local smac=00:01:02:03:04:05 126 …run_cmd "tc -n $ns1 filter add dev vx1 ingress pref 1 handle 101 proto all flower src_mac $smac ds… 134 run_cmd "ip netns exec $ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q" 144 run_cmd "ip netns exec $ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q" 154 run_cmd "ip netns exec $ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | devlink_trap_l2_drops.sh | 99 local smac=01:02:03:04:05:06 103 flower src_mac $smac action drop 105 $MZ $h1 -c 0 -p 100 -a $smac -b bcast -t ip -d 1msec -q & 427 local smac=00:11:22:33:44:55 435 -a $smac -b $(mac_get $h2) -A 192.0.2.1 -B 192.0.2.2 -p 100 -q 441 -a $smac -b $(mac_get $h2) -A 192.0.2.1 -B 192.0.2.2 -p 100 -q 447 -a $smac -b $(mac_get $h2) -A 192.0.2.1 -B 192.0.2.2 -p 100 -q 452 bridge fdb replace $smac dev $swp1 master static vlan 1 455 -a $smac -b $(mac_get $h2) -A 192.0.2.1 -B 192.0.2.2 -p 100 -q 458 bridge fdb del $smac dev $swp1 master static vlan 1 [all …]
|
| H A D | rif_mac_profiles.sh | 103 local smac=$(mac_get $rp2) 119 flower skip_sw src_mac $smac ip_proto udp src_port 12345 \
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | smt.c | 65 static struct smt_entry *find_or_alloc_smte(struct smt_data *s, u8 *smac) in find_or_alloc_smte() argument 79 if (memcmp(e->src_mac, smac, ETH_ALEN) == 0) in find_or_alloc_smte() 210 u8 *smac) in t4_smt_alloc_switching() argument 216 e = find_or_alloc_smte(s, smac); in t4_smt_alloc_switching() 223 memcpy(e->src_mac, smac, ETH_ALEN); in t4_smt_alloc_switching() 242 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac) in cxgb4_smt_alloc_switching() argument 246 return t4_smt_alloc_switching(adap, 0x0, smac); in cxgb4_smt_alloc_switching()
|
| H A D | smt.h | 73 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac);
|
| /linux/drivers/infiniband/core/ |
| H A D | lag.c | 19 u8 smac[ETH_ALEN]; in rdma_build_skb() local 73 rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, NULL, smac); in rdma_build_skb() 74 memcpy(eth->h_source, smac, ETH_ALEN); in rdma_build_skb()
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_among.c | 136 const char *dmac, *smac; in ebt_among_mt() local 144 smac = eth_hdr(skb)->h_source; in ebt_among_mt() 149 if (!ebt_mac_wormhash_contains(wh_src, smac, sip)) in ebt_among_mt() 153 if (ebt_mac_wormhash_contains(wh_src, smac, sip)) in ebt_among_mt()
|
| /linux/drivers/net/ethernet/microchip/vcap/ |
| H A D | vcap_tc.c | 32 struct vcap_u48_key smac, dmac; in vcap_tc_flower_handler_ethaddr_usage() local 38 vcap_netbytes_copy(smac.value, match.key->src, ETH_ALEN); in vcap_tc_flower_handler_ethaddr_usage() 39 vcap_netbytes_copy(smac.mask, match.mask->src, ETH_ALEN); in vcap_tc_flower_handler_ethaddr_usage() 40 err = vcap_rule_add_key_u48(st->vrule, smac_key, &smac); in vcap_tc_flower_handler_ethaddr_usage()
|
| /linux/include/soc/mscc/ |
| H A D | ocelot_vcap.h | 508 struct ocelot_vcap_u48 smac; member 515 struct ocelot_vcap_u48 smac; member 523 struct ocelot_vcap_u48 smac; member 530 struct ocelot_vcap_u48 smac; member
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_tc.c | 408 ether_addr_copy(flow->l2_key.smac, match.key->src); in bnxt_tc_parse_flow() 409 ether_addr_copy(flow->l2_mask.smac, match.mask->src); in bnxt_tc_parse_flow() 691 memcpy(req->smac, flow->l2_key.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc() 758 memcpy(&req->l2_rewrite_smac, &req->smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc() 766 memcpy(&req->l2_rewrite_smac, &req->smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc() 901 ether_addr_copy(encap->src_mac_addr, l2_info->smac); in hwrm_cfa_encap_record_alloc() 1057 if (bits_set(&flow->l2_key.smac, sizeof(flow->l2_key.smac)) && in bnxt_tc_can_offload() 1058 !is_exactmatch(flow->l2_mask.smac, sizeof(flow->l2_mask.smac))) { in bnxt_tc_can_offload() 1291 ether_addr_copy(l2_info->smac, dst_dev->dev_addr); in bnxt_tc_resolve_tunnel_hdrs() 1346 ether_addr_copy(decap_l2_info->dmac, l2_info.smac); in bnxt_tc_get_decap_handle()
|
| H A D | bnxt_tc.h | 21 u8 smac[ETH_ALEN]; member
|
| /linux/samples/bpf/ |
| H A D | test_lwt_bpf.c | 162 uint64_t smac = SRC_MAC, dmac = DST_MAC; in __do_push_ll_and_redirect() local 172 memcpy(&ehdr.h_source, &smac, 6); in __do_push_ll_and_redirect()
|
| H A D | xdp_fwd_kern.c | 139 memcpy(eth->h_source, fib_params.smac, ETH_ALEN); in xdp_fwd_flags()
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_vcap.c | 396 etype->smac.value, etype->smac.mask); in is2_entry_set() 418 llc->smac.value, llc->smac.mask); in is2_entry_set() 434 snap->smac.value, snap->smac.mask); in is2_entry_set() 445 arp->smac.value, arp->smac.mask); in is2_entry_set() 710 etype->smac.value, etype->smac.mask); in is1_entry_set()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | btf_dump_test_case_padding.c | 186 char smac[6]; member
|
| H A D | test_tc_neigh_fib.c | 135 __builtin_memcpy(eth->h_source, fib_params.smac, ETH_ALEN); in tc_redir()
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_span.h | 33 unsigned char smac[ETH_ALEN]; member
|
| /linux/drivers/infiniband/hw/qedr/ |
| H A D | qedr_roce_cm.c | 112 *((u32 *)&qp->rqe_wr_id[qp->rq.gsi_cons].smac[0]) = in qedr_ll2_complete_rx_packet() 114 *((u16 *)&qp->rqe_wr_id[qp->rq.gsi_cons].smac[4]) = in qedr_ll2_complete_rx_packet() 693 ether_addr_copy(wc[i].smac, qp->rqe_wr_id[qp->rq.cons].smac); in qedr_gsi_poll_cq()
|
| /linux/include/linux/mlx4/ |
| H A D | cq.h | 54 u8 smac[ETH_ALEN]; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
| H A D | fs_tracepoint.c | 68 DECLARE_MASK_VAL(u64, smac) = { in print_lyr_2_4_hdrs() 81 PRINT_MASKED_VALP(smac, u8 *, p, "%pM"); in print_lyr_2_4_hdrs()
|