Home
last modified time | relevance | path

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

1234

/openbmc/u-boot/board/Arcturus/ucp1020/
H A Dcmd_arc.c27 char smac[4][18]; variable
57 strcpy(smac[3], argv[1]); in set_arc_product()
69 if (spi_flash_write(flash, FIRM_ADDR1, sizeof(smac), smac)) { in set_arc_product()
73 if (spi_flash_write(flash, FIRM_ADDR2, sizeof(smac), smac)) { in set_arc_product()
78 if (spi_flash_write(flash, FIRM_ADDR3, sizeof(smac), smac)) { in set_arc_product()
83 if (spi_flash_write(flash, FIRM_ADDR4, sizeof(smac), smac)) { in set_arc_product()
104 if (spi_flash_read(flash, FIRM_ADDR1, sizeof(smac), smac)) { in get_arc_info()
106 if (spi_flash_read(flash, FIRM_ADDR2, sizeof(smac), smac)) { in get_arc_info()
109 smac)) { in get_arc_info()
112 sizeof(smac), smac)) { in get_arc_info()
[all …]
/openbmc/linux/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 > $dmac, 802.3, length 4:"
[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 > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \
[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
/openbmc/linux/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 > $dmac, 802.3, length 4:"
[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 > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dtest_bridge_backup_port.sh248 local smac=00:aa:bb:cc:dd:ee
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 …
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 …
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 …
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 …
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 …
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 …
344 local smac=00:aa:bb:cc:dd:ee
480 local smac=00:aa:bb:cc:dd:ee
654 local smac=00:aa:bb:cc:dd:ee
[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…
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"
/openbmc/linux/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
452 bridge fdb replace $smac dev $swp1 master static vlan 1
458 bridge fdb del $smac dev $swp1 master static vlan 1
474 local smac=00:11:22:33:44:55
481 bridge fdb replace $smac dev $swp2 master static vlan 1
507 bridge fdb replace $smac dev $swp1 master static vlan 1
[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 \
/openbmc/linux/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() 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()
H A Dsmt.h73 struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac);
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_main.c291 if (smac.valid) { in prestera_pcs_get_state()
292 state->link = smac.oper ? 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()
810 memset(&smac, 0, sizeof(smac)); in prestera_port_handle_event()
811 smac.valid = true; in prestera_port_handle_event()
812 smac.oper = pevt->data.mac.oper; in prestera_port_handle_event()
813 if (smac.oper) { in prestera_port_handle_event()
814 smac.mode = pevt->data.mac.mode; in prestera_port_handle_event()
817 smac.fc = pevt->data.mac.fc; in prestera_port_handle_event()
[all …]
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/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
/openbmc/linux/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()
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dqp.c1412 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in destroy_qp_common()
1414 qp->pri.smac = 0; in destroy_qp_common()
1417 if (qp->alt.smac) { in destroy_qp_common()
1419 qp->alt.smac = 0; in destroy_qp_common()
1865 smac_info->smac != smac) { in _mlx4_set_path()
2295 u8 smac[ETH_ALEN]; in __mlx4_ib_modify_qp() local
2594 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in __mlx4_ib_modify_qp()
2596 qp->pri.smac = 0; in __mlx4_ib_modify_qp()
2601 qp->alt.smac = 0; in __mlx4_ib_modify_qp()
2628 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) in __mlx4_ib_modify_qp()
[all …]
/openbmc/linux/samples/bpf/
H A Dtest_lwt_bpf.c162 uint64_t smac = SRC_MAC, dmac = DST_MAC; in __do_push_ll_and_redirect() local
172 memcpy(&ehdr.h_source, &smac, 6); in __do_push_ll_and_redirect()
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dpuda.h42 u8 smac[ETH_ALEN]; member
78 u8 smac[ETH_ALEN]; member
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_sp.c288 struct bnxt_qplib_gid *gid, const u8 *smac, in bnxt_qplib_add_sgid() argument
350 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid()
351 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid()
352 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid()
379 const u8 *smac) in bnxt_qplib_update_sgid() argument
405 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid()
406 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid()
407 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A 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()
/openbmc/linux/include/rdma/
H A Dib_cache.h32 u16 *vlan_id, u8 *smac);

1234