/linux-6.12.1/tools/testing/selftests/net/forwarding/ |
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 …]
|
D | local_termination.sh | 115 local smac=$(mac_get $if_name) 117 pkt="${pkt/00:00:de:ad:be:ef/$smac}" 176 local smac=$(mac_get $send_if_name) 249 "$smac > $rcv_dmac, ethertype IPv4 (0x0800)" \ 253 "$smac > $MACVLAN_ADDR, ethertype IPv4 (0x0800)" \ 258 "$smac > $UNKNOWN_UC_ADDR1, ethertype IPv4 (0x0800)" \ 262 "$smac > $UNKNOWN_UC_ADDR2, ethertype IPv4 (0x0800)" \ 268 "$smac > $UNKNOWN_UC_ADDR3, ethertype IPv4 (0x0800)" \ 272 "$smac > $JOINED_MACV4_MC_ADDR, ethertype IPv4 (0x0800)" \ 278 "$smac > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \ [all …]
|
D | tc_flower_port_range.sh | 84 local smac=$(mac_get $h1) 105 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 112 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 119 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 128 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 130 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 132 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 134 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 136 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
|
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-6.12.1/tools/testing/selftests/net/ |
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… 258 …run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto ip flower src_mac $smac … 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 … 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 … 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 … 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 … 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 … 324 …run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t … 334 …run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t … [all …]
|
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-6.12.1/tools/testing/selftests/drivers/net/mlxsw/ |
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 …]
|
D | devlink_trap.sh | 89 local smac=01:02:03:04:05:06 94 $MZ $h1 -c 0 -p 100 -a $smac -b bcast -t ip -q &
|
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-6.12.1/drivers/net/ethernet/chelsio/cxgb4/ |
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()
|
D | smt.h | 73 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac);
|
/linux-6.12.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_main.c | 287 struct prestera_port_mac_state smac; in prestera_pcs_get_state() local 289 prestera_port_mac_state_cache_read(port, &smac); in prestera_pcs_get_state() 291 if (smac.valid) { in prestera_pcs_get_state() 292 state->link = smac.oper ? 1 : 0; in prestera_pcs_get_state() 294 state->an_complete = (smac.oper && port->autoneg) ? 1 : 0; in prestera_pcs_get_state() 295 state->speed = smac.speed; in prestera_pcs_get_state() 296 state->duplex = smac.duplex; in prestera_pcs_get_state() 798 struct prestera_port_mac_state smac; in prestera_port_handle_event() local 811 memset(&smac, 0, sizeof(smac)); in prestera_port_handle_event() 812 smac.valid = true; in prestera_port_handle_event() [all …]
|
/linux-6.12.1/drivers/infiniband/core/ |
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-6.12.1/net/bridge/netfilter/ |
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-6.12.1/drivers/net/ethernet/microchip/vcap/ |
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-6.12.1/drivers/infiniband/hw/mlx4/ |
D | qp.c | 1412 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in destroy_qp_common() 1413 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in destroy_qp_common() 1414 qp->pri.smac = 0; in destroy_qp_common() 1417 if (qp->alt.smac) { in destroy_qp_common() 1418 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in destroy_qp_common() 1419 qp->alt.smac = 0; in destroy_qp_common() 1774 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, in _mlx4_set_path() argument 1864 if ((!smac_info->smac && !smac_info->smac_port) || in _mlx4_set_path() 1865 smac_info->smac != smac) { in _mlx4_set_path() 1867 smac_index = mlx4_register_mac(dev->dev, port, smac); in _mlx4_set_path() [all …]
|
/linux-6.12.1/include/soc/mscc/ |
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-6.12.1/drivers/infiniband/hw/bnxt_re/ |
D | qplib_sp.c | 302 struct bnxt_qplib_gid *gid, const u8 *smac, in bnxt_qplib_add_sgid() argument 364 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid() 365 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid() 366 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid() 393 const u8 *smac) in bnxt_qplib_update_sgid() argument 419 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid() 420 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid() 421 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid()
|
/linux-6.12.1/samples/bpf/ |
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()
|
/linux-6.12.1/drivers/infiniband/hw/irdma/ |
D | puda.h | 42 u8 smac[ETH_ALEN]; member 78 u8 smac[ETH_ALEN]; member
|
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/ |
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()
|
/linux-6.12.1/drivers/net/ethernet/mscc/ |
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-6.12.1/tools/testing/selftests/bpf/progs/ |
D | btf_dump_test_case_padding.c | 186 char smac[6]; member
|
/linux-6.12.1/include/rdma/ |
D | ib_cache.h | 32 u16 *vlan_id, u8 *smac);
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_span.h | 33 unsigned char smac[ETH_ALEN]; member
|