Home
last modified time | relevance | path

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

12

/Linux-v5.4/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()
209 u8 *smac) in t4_smt_alloc_switching() argument
215 e = find_or_alloc_smte(s, smac); in t4_smt_alloc_switching()
222 memcpy(e->src_mac, smac, ETH_ALEN); in t4_smt_alloc_switching()
240 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac) in cxgb4_smt_alloc_switching() argument
244 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-v5.4/drivers/net/ethernet/mscc/
Docelot_ace.h97 struct ocelot_vcap_u48 smac; member
104 struct ocelot_vcap_u48 smac; member
112 struct ocelot_vcap_u48 smac; member
119 struct ocelot_vcap_u48 smac; member
Docelot_ace.c372 VCAP_KEY_BYTES_SET(L2_SMAC, etype->smac.value, in is2_entry_set()
373 etype->smac.mask); in is2_entry_set()
386 VCAP_KEY_BYTES_SET(L2_SMAC, llc->smac.value, llc->smac.mask); in is2_entry_set()
399 VCAP_KEY_BYTES_SET(L2_SMAC, snap->smac.value, snap->smac.mask); in is2_entry_set()
409 VCAP_KEY_BYTES_SET(MAC_ARP_L2_SMAC, arp->smac.value, in is2_entry_set()
410 arp->smac.mask); in is2_entry_set()
Docelot_flower.c90 ether_addr_copy(ocelot_rule->frame.etype.smac.value, in ocelot_flower_parse()
94 ether_addr_copy(ocelot_rule->frame.etype.smac.mask, in ocelot_flower_parse()
/Linux-v5.4/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-v5.4/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.sh138 local smac=01:02:03:04:05:06
143 flower src_mac $smac action drop
145 $MZ $h1 -c 0 -p 100 -a $smac -b bcast -t ip -d 1msec -q &
/Linux-v5.4/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c281 struct bnxt_qplib_gid *gid, u8 *smac, u16 vlan_id, in bnxt_qplib_add_sgid() argument
345 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid()
346 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid()
347 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid()
373 u8 *smac) in bnxt_qplib_update_sgid() argument
397 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid()
398 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid()
399 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid()
Dqplib_fp.h281 u8 smac[6]; member
359 u8 smac[6]; member
Dqplib_sp.h234 struct bnxt_qplib_gid *gid, u16 gid_idx, u8 *smac);
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c208 ether_addr_copy(flow->l2_key.smac, match.key->src); in bnxt_tc_parse_flow()
209 ether_addr_copy(flow->l2_mask.smac, match.mask->src); in bnxt_tc_parse_flow()
416 memcpy(req.smac, flow->l2_key.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
483 memcpy(&req.l2_rewrite_smac, &req.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
491 memcpy(&req.l2_rewrite_smac, &req.smac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
624 ether_addr_copy(encap->src_mac_addr, l2_info->smac); in hwrm_cfa_encap_record_alloc()
779 if (bits_set(&flow->l2_key.smac, sizeof(flow->l2_key.smac)) && in bnxt_tc_can_offload()
780 !is_exactmatch(flow->l2_mask.smac, sizeof(flow->l2_mask.smac))) { in bnxt_tc_can_offload()
1013 ether_addr_copy(l2_info->smac, dst_dev->dev_addr); in bnxt_tc_resolve_tunnel_hdrs()
1068 ether_addr_copy(decap_l2_info->dmac, l2_info.smac); in bnxt_tc_get_decap_handle()
Dbnxt_tc.h21 u8 smac[ETH_ALEN]; member
/Linux-v5.4/drivers/infiniband/hw/mlx4/
Dqp.c1428 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in destroy_qp_common()
1429 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in destroy_qp_common()
1430 qp->pri.smac = 0; in destroy_qp_common()
1433 if (qp->alt.smac) { in destroy_qp_common()
1434 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in destroy_qp_common()
1435 qp->alt.smac = 0; in destroy_qp_common()
1797 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, in _mlx4_set_path() argument
1887 if ((!smac_info->smac && !smac_info->smac_port) || in _mlx4_set_path()
1888 smac_info->smac != smac) { in _mlx4_set_path()
1890 smac_index = mlx4_register_mac(dev->dev, port, smac); in _mlx4_set_path()
[all …]
Dcq.c603 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data()
604 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data()
869 memcpy(wc->smac, cqe->smac, ETH_ALEN); in mlx4_ib_poll_one()
/Linux-v5.4/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.c140 memcpy(eth->h_source, fib_params.smac, ETH_ALEN); in xdp_fwd_flags()
/Linux-v5.4/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()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.h33 unsigned char smac[ETH_ALEN]; member
Dspectrum_span.c282 memcpy(sparmsp->smac, edev->dev_addr, ETH_ALEN); in mlxsw_sp_span_entry_tunnel_parms_common()
375 sparms.ttl, sparms.smac, in mlxsw_sp_span_entry_gretap4_configure()
475 mlxsw_reg_mpat_eth_rspan_l3_ipv6_pack(mpat_pl, sparms.ttl, sparms.smac, in mlxsw_sp_span_entry_gretap6_configure()
/Linux-v5.4/include/rdma/
Dib_cache.h58 u16 *vlan_id, u8 *smac);
/Linux-v5.4/include/linux/mlx4/
Dcq.h54 u8 smac[ETH_ALEN]; member
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.c68 DECLARE_MASK_VAL(u64, smac) = { in print_lyr_2_4_hdrs()
80 PRINT_MASKED_VALP(smac, u8 *, p, "%pM"); in print_lyr_2_4_hdrs()
/Linux-v5.4/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()
/Linux-v5.4/include/uapi/rdma/
Dvmw_pvrdma-abi.h293 __u8 smac[6]; member

12