Home
last modified time | relevance | path

Searched refs:smac (Results 1 - 25 of 138) sorted by relevance

123456

/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A 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 >
[all...]
H A 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 >
[all...]
H A Dtc_flower_port_range.sh84 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 \
H A Dtc_flower_l2_miss.sh301 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
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/dsa/
H A 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 >
[all...]
H A 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 >
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dtest_bridge_backup_port.sh248 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"
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 ip -p 100 -q -c 1"
334 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac
[all...]
H A Dtest_vxlan_nolocalbypass.sh122 local smac=00:01:02:03:04:05
128 run_cmd "tc -n ns1 filter add dev vx1 ingress pref 1 handle 101 proto all flower src_mac $smac dst_mac $dmac action pass"
136 run_cmd "ip netns exec ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
146 run_cmd "ip netns exec ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
156 run_cmd "ip netns exec ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_trap_l2_drops.sh99 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 de
[all...]
H A 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 &
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
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()
237 * @smac: MAC address to add to SMT
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()
209 t4_smt_alloc_switching(struct adapter *adap, u16 pfvf, u8 *smac) t4_smt_alloc_switching() argument
H A Dsmt.h73 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac);
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
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()
237 * @smac: MAC address to add to SMT
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()
209 t4_smt_alloc_switching(struct adapter *adap, u16 pfvf, u8 *smac) t4_smt_alloc_switching() argument
H A Dsmt.h73 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac);
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
H A 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()
797 struct prestera_port_mac_state smac; in prestera_port_handle_event() local
810 memset(&smac, 0, sizeof(smac)); in prestera_port_handle_event()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
H A 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
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A 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-6.6/drivers/infiniband/core/
H A 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()
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A 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 &
/kernel/linux/linux-5.10/net/bridge/netfilter/
H A 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-6.6/net/bridge/netfilter/
H A 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/hw/bnxt_re/
H A Dqplib_sp.c278 struct bnxt_qplib_gid *gid, u8 *smac, u16 vlan_id, in bnxt_qplib_add_sgid()
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()
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()
277 bnxt_qplib_add_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, struct bnxt_qplib_gid *gid, u8 *smac, u16 vlan_id, bool update, u32 *index) bnxt_qplib_add_sgid() argument
368 bnxt_qplib_update_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, struct bnxt_qplib_gid *gid, u16 gid_idx, u8 *smac) bnxt_qplib_update_sgid() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/vcap/
H A Dvcap_tc.c32 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()
/kernel/linux/linux-6.6/include/soc/mscc/
H A 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
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
H A Dqp.c1377 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in destroy_qp_common()
1378 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in destroy_qp_common()
1379 qp->pri.smac = 0; in destroy_qp_common()
1382 if (qp->alt.smac) { in destroy_qp_common()
1383 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in destroy_qp_common()
1384 qp->alt.smac = 0; in destroy_qp_common()
1741 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, in _mlx4_set_path()
1827 * If no smac was yet assigned, register one. in _mlx4_set_path()
1831 if ((!smac_info->smac in _mlx4_set_path()
1739 _mlx4_set_path(struct mlx4_ib_dev *dev, const struct rdma_ah_attr *ah, u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, struct mlx4_roce_smac_vlan_info *smac_info, u8 port) _mlx4_set_path() argument
1857 mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_qp_attr *qp, enum ib_qp_attr_mask qp_attr_mask, struct mlx4_ib_qp *mqp, struct mlx4_qp_path *path, u8 port, u16 vlan_id, u8 *smac) mlx4_set_path() argument
2262 u8 smac[ETH_ALEN]; __mlx4_ib_modify_qp() local
[all...]

Completed in 15 milliseconds

123456