Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
Docelot_vcap.h105 struct ocelot_vcap_u48 smac; member
112 struct ocelot_vcap_u48 smac; member
120 struct ocelot_vcap_u48 smac; member
127 struct ocelot_vcap_u48 smac; member
Docelot_vcap.c395 etype->smac.value, etype->smac.mask); in is2_entry_set()
417 llc->smac.value, llc->smac.mask); in is2_entry_set()
433 snap->smac.value, snap->smac.mask); in is2_entry_set()
444 arp->smac.value, arp->smac.mask); in is2_entry_set()
710 etype->smac.value, etype->smac.mask); in is1_entry_set()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dlag.c20 u8 smac[ETH_ALEN]; in rdma_build_skb() local
74 rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, NULL, smac); in rdma_build_skb()
75 memcpy(eth->h_source, smac, ETH_ALEN); in rdma_build_skb()
/kernel/linux/linux-5.10/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 &
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c278 struct bnxt_qplib_gid *gid, u8 *smac, u16 vlan_id, in bnxt_qplib_add_sgid() argument
342 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid()
343 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid()
344 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid()
370 u8 *smac) in bnxt_qplib_update_sgid() argument
394 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid()
395 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid()
396 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid()
/kernel/linux/linux-5.10/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()
1737 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, in _mlx4_set_path() argument
1827 if ((!smac_info->smac && !smac_info->smac_port) || in _mlx4_set_path()
1828 smac_info->smac != smac) { in _mlx4_set_path()
1830 smac_index = mlx4_register_mac(dev->dev, port, smac); in _mlx4_set_path()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c403 ether_addr_copy(flow->l2_key.smac, match.key->src); in bnxt_tc_parse_flow()
404 ether_addr_copy(flow->l2_mask.smac, match.mask->src); in bnxt_tc_parse_flow()
682 memcpy(req.smac, flow->l2_key.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
749 memcpy(&req.l2_rewrite_smac, &req.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
757 memcpy(&req.l2_rewrite_smac, &req.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
890 ether_addr_copy(encap->src_mac_addr, l2_info->smac); in hwrm_cfa_encap_record_alloc()
1045 if (bits_set(&flow->l2_key.smac, sizeof(flow->l2_key.smac)) && in bnxt_tc_can_offload()
1046 !is_exactmatch(flow->l2_mask.smac, sizeof(flow->l2_mask.smac))) { in bnxt_tc_can_offload()
1279 ether_addr_copy(l2_info->smac, dst_dev->dev_addr); in bnxt_tc_resolve_tunnel_hdrs()
1334 ether_addr_copy(decap_l2_info->dmac, l2_info.smac); in bnxt_tc_get_decap_handle()
Dbnxt_tc.h21 u8 smac[ETH_ALEN]; member
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dnndisc.c434 static void build_na_hdr(u_char *smac, u_char mac_len, struct sk_buff *skb) in build_na_hdr() argument
444 memcpy(p, smac, mac_len); in build_na_hdr()
463 u_char *smac = dev->dev_addr; in nndisc_send_na() local
478 build_na_hdr(smac, dev->addr_len, skb); in nndisc_send_na()
/kernel/linux/linux-5.10/include/rdma/
Dib_cache.h32 u16 *vlan_id, u8 *smac);
/kernel/linux/linux-5.10/net/dsa/
Dtag_sja1105.c60 u64 smac = ether_addr_to_u64(hdr->h_source); in sja1105_is_meta_frame() local
63 if (smac != SJA1105_META_SMAC) in sja1105_is_meta_frame()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.h20 unsigned char smac[ETH_ALEN]; member
/kernel/linux/linux-5.10/include/linux/mlx4/
Dcq.h54 u8 smac[ETH_ALEN]; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
695 ether_addr_copy(wc[i].smac, qp->rqe_wr_id[qp->rq.cons].smac); in qedr_gsi_poll_cq()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_tc_neigh_fib.c134 __builtin_memcpy(eth->h_source, fib_params.smac, ETH_ALEN); in tc_redir()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/
Dvmw_pvrdma-abi.h239 __u8 smac[6]; member
/kernel/linux/linux-5.10/include/uapi/rdma/
Dvmw_pvrdma-abi.h305 __u8 smac[6]; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/
Dvmw_pvrdma-abi.h222 __u8 smac[6]; member

123