Home
last modified time | relevance | path

Searched refs:smac (Results 1 – 25 of 67) sorted by relevance

123

/linux-6.1.9/tools/testing/selftests/drivers/net/dsa/
Dno_forwarding.sh34 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 …]
Dlocal_termination.sh53 local smac=$2
56 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
108 local smac=$(mac_get $h1)
151 "$smac > $rcv_dmac, ethertype IPv4 (0x0800)" \
155 "$smac > $MACVLAN_ADDR, ethertype IPv4 (0x0800)" \
159 "$smac > $UNKNOWN_UC_ADDR1, ethertype IPv4 (0x0800)" \
163 "$smac > $UNKNOWN_UC_ADDR2, ethertype IPv4 (0x0800)" \
167 "$smac > $UNKNOWN_UC_ADDR3, ethertype IPv4 (0x0800)" \
171 "$smac > $JOINED_MACV4_MC_ADDR, ethertype IPv4 (0x0800)" \
175 "$smac > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \
[all …]
/linux-6.1.9/tools/testing/selftests/net/forwarding/
Dno_forwarding.sh34 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 …]
Dlocal_termination.sh53 local smac=$2
56 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
108 local smac=$(mac_get $h1)
151 "$smac > $rcv_dmac, ethertype IPv4 (0x0800)" \
155 "$smac > $MACVLAN_ADDR, ethertype IPv4 (0x0800)" \
159 "$smac > $UNKNOWN_UC_ADDR1, ethertype IPv4 (0x0800)" \
163 "$smac > $UNKNOWN_UC_ADDR2, ethertype IPv4 (0x0800)" \
167 "$smac > $UNKNOWN_UC_ADDR3, ethertype IPv4 (0x0800)" \
171 "$smac > $JOINED_MACV4_MC_ADDR, ethertype IPv4 (0x0800)" \
175 "$smac > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dsmt.c65 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()
Dsmt.h73 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac);
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c287 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()
806 struct prestera_port_mac_state smac; in prestera_port_handle_event() local
819 memset(&smac, 0, sizeof(smac)); in prestera_port_handle_event()
820 smac.valid = true; in prestera_port_handle_event()
[all …]
/linux-6.1.9/net/bridge/netfilter/
Debt_among.c136 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.1.9/drivers/infiniband/core/
Dlag.c19 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.1.9/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap.sh89 local smac=01:02:03:04:05:06
94 $MZ $h1 -c 0 -p 100 -a $smac -b bcast -t ip -q &
Ddevlink_trap_l2_drops.sh98 local smac=01:02:03:04:05:06
102 flower src_mac $smac action drop
104 $MZ $h1 -c 0 -p 100 -a $smac -b bcast -t ip -d 1msec -q &
Drif_mac_profiles.sh103 local smac=$(mac_get $rp2)
119 flower skip_sw src_mac $smac ip_proto udp src_port 12345 \
/linux-6.1.9/include/soc/mscc/
Docelot_vcap.h506 struct ocelot_vcap_u48 smac; member
513 struct ocelot_vcap_u48 smac; member
521 struct ocelot_vcap_u48 smac; member
528 struct ocelot_vcap_u48 smac; member
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c280 struct bnxt_qplib_gid *gid, const u8 *smac, in bnxt_qplib_add_sgid() argument
344 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid()
345 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid()
346 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid()
372 const u8 *smac) in bnxt_qplib_update_sgid() argument
396 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid()
397 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid()
398 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid()
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dqp.c1373 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in destroy_qp_common()
1374 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in destroy_qp_common()
1375 qp->pri.smac = 0; in destroy_qp_common()
1378 if (qp->alt.smac) { in destroy_qp_common()
1379 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in destroy_qp_common()
1380 qp->alt.smac = 0; in destroy_qp_common()
1735 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, in _mlx4_set_path() argument
1825 if ((!smac_info->smac && !smac_info->smac_port) || in _mlx4_set_path()
1826 smac_info->smac != smac) { in _mlx4_set_path()
1828 smac_index = mlx4_register_mac(dev->dev, port, smac); in _mlx4_set_path()
[all …]
/linux-6.1.9/samples/bpf/
Dtest_lwt_bpf.c170 uint64_t smac = SRC_MAC, dmac = DST_MAC; in __do_push_ll_and_redirect() local
180 memcpy(&ehdr.h_source, &smac, 6); in __do_push_ll_and_redirect()
Dxdp_fwd_kern.c139 memcpy(eth->h_source, fib_params.smac, ETH_ALEN); in xdp_fwd_flags()
/linux-6.1.9/drivers/infiniband/hw/irdma/
Dpuda.h42 u8 smac[ETH_ALEN]; member
78 u8 smac[ETH_ALEN]; member
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c404 ether_addr_copy(flow->l2_key.smac, match.key->src); in bnxt_tc_parse_flow()
405 ether_addr_copy(flow->l2_mask.smac, match.mask->src); in bnxt_tc_parse_flow()
687 memcpy(req->smac, flow->l2_key.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
754 memcpy(&req->l2_rewrite_smac, &req->smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
762 memcpy(&req->l2_rewrite_smac, &req->smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
897 ether_addr_copy(encap->src_mac_addr, l2_info->smac); in hwrm_cfa_encap_record_alloc()
1053 if (bits_set(&flow->l2_key.smac, sizeof(flow->l2_key.smac)) && in bnxt_tc_can_offload()
1054 !is_exactmatch(flow->l2_mask.smac, sizeof(flow->l2_mask.smac))) { in bnxt_tc_can_offload()
1287 ether_addr_copy(l2_info->smac, dst_dev->dev_addr); in bnxt_tc_resolve_tunnel_hdrs()
1342 ether_addr_copy(decap_l2_info->dmac, l2_info.smac); in bnxt_tc_get_decap_handle()
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_vcap.c396 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()
709 etype->smac.value, etype->smac.mask); in is1_entry_set()
/linux-6.1.9/include/rdma/
Dib_cache.h32 u16 *vlan_id, u8 *smac);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.h33 unsigned char smac[ETH_ALEN]; member
/linux-6.1.9/include/linux/mlx4/
Dcq.h54 u8 smac[ETH_ALEN]; member
/linux-6.1.9/drivers/infiniband/hw/qedr/
Dqedr_roce_cm.c112 *((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()
694 ether_addr_copy(wc[i].smac, qp->rqe_wr_id[qp->rq.cons].smac); in qedr_gsi_poll_cq()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.c68 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()

123