Home
last modified time | relevance | path

Searched refs:src_mac (Results 1 – 25 of 70) sorted by relevance

123

/openbmc/linux/tools/testing/selftests/tc-testing/
H A Dtdc_batch.py73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac, argument
77 device, prio, handle, skip, src_mac, dst_mac, share_action))
80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac, argument
84 device, prio, handle, skip, src_mac, dst_mac, share_action))
87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac, argument
104 src_mac = "e4:11:{:02x}:{}".format(mac_prefix, mac) variable
106 cmd = formatter(device, prio, handle_start + index, skip, src_mac,
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dsmt.c58 eth_zero_addr(s->smtab[i].src_mac); in t4_init_smt()
79 if (memcmp(e->src_mac, smac, ETH_ALEN) == 0) in find_or_alloc_smte()
164 memcpy(req->src_mac1, e->src_mac, ETH_ALEN); in write_smt_entry()
170 memcpy(req->src_mac0, s->smtab[e->idx - 1].src_mac, in write_smt_entry()
174 memcpy(req->src_mac0, e->src_mac, ETH_ALEN); in write_smt_entry()
180 memcpy(req->src_mac1, s->smtab[e->idx + 1].src_mac, in write_smt_entry()
195 memcpy(req->src_mac0, s->smtab[e->idx].src_mac, ETH_ALEN); in write_smt_entry()
223 memcpy(e->src_mac, smac, ETH_ALEN); in t4_smt_alloc_switching()
H A Dsmt.h61 u8 src_mac[ETH_ALEN]; member
/openbmc/linux/samples/bpf/
H A Dxdp_router_ipv4.bpf.c112 __be64 *dest_mac, *src_mac; in xdp_router_ipv4_prog() local
123 src_mac = &direct_entry->mac; in xdp_router_ipv4_prog()
142 src_mac = &prefix_value->value; in xdp_router_ipv4_prog()
143 if (!src_mac) in xdp_router_ipv4_prog()
165 if (src_mac && dest_mac) { in xdp_router_ipv4_prog()
169 __builtin_memcpy(eth->h_source, src_mac, ETH_ALEN); in xdp_router_ipv4_prog()
/openbmc/inarp/
H A Dinarp.c49 struct eth_addr src_mac; member
103 const struct eth_addr *src_mac, in send_arp_packet() argument
127 memcpy(arp.eh.h_source, src_mac, ETH_ALEN); in send_arp_packet()
138 memcpy(&arp.src_mac, src_mac, sizeof(arp.src_mac)); in send_arp_packet()
417 eth_mac_to_str(&inarp_req.src_mac)); in arp_recv()
432 &inarp_req.src_mac, in arp_recv()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_peer.c16 static const __u8 src_mac[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55}; variable
51 if (bpf_skb_store_bytes(skb, 0, &src_mac, ETH_ALEN, 0) != 0) in tc_src_l3()
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dmirror_gre.sh69 ingress) local src_mac=$(mac_get $h1); local dst_mac=$(mac_get $h2)
71 egress) local src_mac=$(mac_get $h2); local dst_mac=$(mac_get $h1)
78 icmp_capture_install h3-${tundev} "src_mac $src_mac dst_mac $dst_mac"
H A Dtc_chains.sh131 flower src_mac 00:00:00:00:00:00/FF:FF:FF:FF:FF:FF &> /dev/null
138 flower src_mac $h2mac action drop &> /dev/null
142 flower src_mac $h2mac action drop
H A Dtc_mpls_l2vpn.sh85 action vlan push_eth dst_mac $mpls2mac src_mac $mpls1mac \
114 action vlan push_eth dst_mac $mpls1mac src_mac $mpls2mac \
H A Dtc_flower_l2_miss.sh306 flower l2_miss 1 dst_mac $dmac src_mac $smac \
309 flower l2_miss 0 dst_mac $dmac src_mac $smac \
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_trap_acl_drops.sh99 flower src_mac $h1mac action pass
124 flower src_mac $h1mac action pass
H A Drif_mac_profiles.sh119 flower skip_sw src_mac $smac ip_proto udp src_port 12345 \
152 flower skip_sw src_mac $rp1_mac ip_proto udp src_port 54321 \
H A Dingress_rif_conf_vxlan.sh199 local src_mac=$(mac_get $rp1)
207 )"$src_mac:"$( : ETH saddr
/openbmc/qemu/hw/net/rocker/
H A Drocker_of_dpa.c181 MACAddr src_mac; member
191 MACAddr src_mac; member
493 if (src_mac || dst_mac) { in of_dpa_flow_pkt_hdr_rewrite()
495 if (src_mac && memcmp(src_mac, zero_mac.a, ETH_ALEN)) { in of_dpa_flow_pkt_hdr_rewrite()
496 memcpy(fc->ethhdr_rewrite.h_source, src_mac, ETH_ALEN); in of_dpa_flow_pkt_hdr_rewrite()
855 of_dpa_flow_pkt_hdr_rewrite(fc, group->l2_rewrite.src_mac.a, in of_dpa_output_l2_rewrite()
893 of_dpa_flow_pkt_hdr_rewrite(fc, group->l3_unicast.src_mac.a, in of_dpa_output_l3_unicast()
1986 memcpy(group->l2_rewrite.src_mac.a, in of_dpa_cmd_add_l2_rewrite()
1988 sizeof(group->l2_rewrite.src_mac.a)); in of_dpa_cmd_add_l2_rewrite()
2081 memcpy(group->l3_unicast.src_mac.a, in of_dpa_cmd_add_l3_unicast()
[all …]
/openbmc/linux/include/linux/qed/
H A Dqed_fcoe_if.h42 u8 src_mac[ETH_ALEN]; member
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_fcoe.c932 con->src_mac_addr_hi = (conn_info->src_mac[5] << 8) | in qed_fcoe_offload_conn()
933 conn_info->src_mac[4]; in qed_fcoe_offload_conn()
934 con->src_mac_addr_mid = (conn_info->src_mac[3] << 8) | in qed_fcoe_offload_conn()
935 conn_info->src_mac[2]; in qed_fcoe_offload_conn()
936 con->src_mac_addr_lo = (conn_info->src_mac[1] << 8) | in qed_fcoe_offload_conn()
937 conn_info->src_mac[0]; in qed_fcoe_offload_conn()
/openbmc/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe.h132 u8 src_mac[ETH_ALEN]; member
376 int type, int l4proto, u8 pse_port, u8 *src_mac,
H A Dmtk_ppe.c210 int type, int l4proto, u8 pse_port, u8 *src_mac, in mtk_foe_entry_prepare() argument
251 ether_addr_copy(entry->bridge.src_mac, src_mac); in mtk_foe_entry_prepare()
265 l2->src_mac_hi = get_unaligned_be32(src_mac); in mtk_foe_entry_prepare()
266 l2->src_mac_lo = get_unaligned_be16(src_mac + 4); in mtk_foe_entry_prepare()
780 ether_addr_copy(key.src_mac, eh->h_source); in __mtk_ppe_check_skb()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_vfr.c453 static void bnxt_vf_rep_eth_addr_gen(u8 *src_mac, u16 vf_idx, u8 *mac) in bnxt_vf_rep_eth_addr_gen() argument
457 ether_addr_copy(mac, src_mac); in bnxt_vf_rep_eth_addr_gen()
459 addr = jhash(src_mac, ETH_ALEN, 0) + vf_idx; in bnxt_vf_rep_eth_addr_gen()
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_sp.c360 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid()
361 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid()
362 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid()
415 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid()
416 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid()
417 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxskxceiver.h173 u8 src_mac[ETH_ALEN]; member
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dtc.c199 if (act->src_mac) in efx_tc_free_action_set()
200 efx_tc_flower_put_mac(efx, act->src_mac); in efx_tc_free_action_set()
788 if (act->dst_mac || act->src_mac) in efx_tc_flower_action_order_ok()
1009 unsigned char src_mac[ETH_ALEN]; member
1046 ped = efx_tc_flower_get_mac(efx, mung->src_mac, extack); in efx_tc_complete_mac_mangle()
1051 if (act->src_mac) in efx_tc_complete_mac_mangle()
1052 efx_tc_flower_put_mac(efx, act->src_mac); in efx_tc_complete_mac_mangle()
1054 act->src_mac = ped; in efx_tc_complete_mac_mangle()
1179 memcpy(mung->src_mac, &mac16, sizeof(mac16)); in efx_tc_mangle()
1200 memcpy(mung->src_mac + 2, &mac32, sizeof(mac32)); in efx_tc_mangle()
/openbmc/linux/drivers/scsi/qedi/
H A Dqedi_iscsi.h72 u8 src_mac[ETH_ALEN]; member
/openbmc/linux/drivers/net/ethernet/brocade/bna/
H A Dbfa_defs_cna.h181 u8 src_mac[ETH_ALEN]; member
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.h79 u8 src_mac[ETH_ALEN]; member

123