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

123

/linux-master/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
/linux-master/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.sh120 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 dst_mac $dmac action pass"
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-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dsmt.h73 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac);
H A Dsmt.c65 static struct smt_entry *find_or_alloc_smte(struct smt_data *s, u8 *smac) argument
79 if (memcmp(e->src_mac, smac, ETH_ALEN) == 0)
210 u8 *smac)
216 e = find_or_alloc_smte(s, smac);
223 memcpy(e->src_mac, smac, ETH_ALEN);
237 * @smac: MAC address to add to SMT
242 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac) argument
246 return t4_smt_alloc_switching(adap, 0x0, smac);
209 t4_smt_alloc_switching(struct adapter *adap, u16 pfvf, u8 *smac) argument
/linux-master/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 &
H A Drif_mac_profiles.sh103 local smac=$(mac_get $rp2)
119 flower skip_sw src_mac $smac ip_proto udp src_port 12345 \
/linux-master/drivers/infiniband/core/
H A Dlag.c19 u8 smac[ETH_ALEN]; local
73 rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, NULL, smac);
74 memcpy(eth->h_source, smac, ETH_ALEN);
/linux-master/net/bridge/netfilter/
H A Debt_among.c136 const char *dmac, *smac; local
144 smac = eth_hdr(skb)->h_source;
149 if (!ebt_mac_wormhash_contains(wh_src, smac, sip))
153 if (ebt_mac_wormhash_contains(wh_src, smac, sip))
/linux-master/include/rdma/
H A Dib_cache.h32 u16 *vlan_id, u8 *smac);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbtf_dump_test_case_padding.c186 char smac[6]; member in struct:ib_wc
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_main.c287 struct prestera_port_mac_state smac; local
289 prestera_port_mac_state_cache_read(port, &smac);
291 if (smac.valid) {
292 state->link = smac.oper ? 1 : 0;
294 state->an_complete = (smac.oper && port->autoneg) ? 1 : 0;
295 state->speed = smac.speed;
296 state->duplex = smac.duplex;
797 struct prestera_port_mac_state smac; local
810 memset(&smac, 0, sizeof(smac));
[all...]
/linux-master/include/linux/mlx4/
H A Dcq.h54 u8 smac[ETH_ALEN]; member in union:mlx4_cqe::__anon394
/linux-master/include/soc/mscc/
H A Docelot_vcap.h506 struct ocelot_vcap_u48 smac; member in struct:ocelot_vcap_key_etype
513 struct ocelot_vcap_u48 smac; member in struct:ocelot_vcap_key_llc
521 struct ocelot_vcap_u48 smac; member in struct:ocelot_vcap_key_snap
528 struct ocelot_vcap_u48 smac; member in struct:ocelot_vcap_key_arp
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_span.h33 unsigned char smac[ETH_ALEN]; member in struct:mlxsw_sp_span_parms
/linux-master/drivers/net/ethernet/microchip/vcap/
H A Dvcap_tc.c32 struct vcap_u48_key smac, dmac; local
38 vcap_netbytes_copy(smac.value, match.key->src, ETH_ALEN);
39 vcap_netbytes_copy(smac.mask, match.mask->src, ETH_ALEN);
40 err = vcap_rule_add_key_u48(st->vrule, smac_key, &smac);
/linux-master/samples/bpf/
H A Dtest_lwt_bpf.c162 uint64_t smac = SRC_MAC, dmac = DST_MAC; local
172 memcpy(&ehdr.h_source, &smac, 6);
H A Dxdp_fwd_kern.c139 memcpy(eth->h_source, fib_params.smac, ETH_ALEN);
/linux-master/drivers/infiniband/hw/irdma/
H A Dpuda.h42 u8 smac[ETH_ALEN]; member in struct:irdma_puda_cmpl_info
78 u8 smac[ETH_ALEN]; member in struct:irdma_puda_buf
/linux-master/drivers/infiniband/hw/mlx4/
H A Dqp.c1412 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) {
1413 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac);
1414 qp->pri.smac = 0;
1417 if (qp->alt.smac) {
1418 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac);
1419 qp->alt.smac = 0;
1774 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path,
1860 * If no smac was yet assigned, register one.
1864 if ((!smac_info->smac
1772 _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) argument
1890 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) argument
2295 u8 smac[ETH_ALEN]; local
[all...]
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.h21 u8 smac[ETH_ALEN]; member in struct:bnxt_tc_l2_key

Completed in 226 milliseconds

123