Home
last modified time | relevance | path

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

123

/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,
/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
/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()
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dsharedbuffer.sh119 src_mac $h1mac dst_mac $h2mac \
141 src_mac $h1mac dst_mac $h2mac \
152 src_mac $h1mac dst_mac $h2mac \
174 src_mac $h1mac dst_mac $h2mac \
185 src_mac $h1mac action pass
204 src_mac $h1mac action pass
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
/linux/drivers/net/dsa/microchip/
H A Dksz9477_tc_flower.c36 u8 *src_mac = NULL; in ksz9477_flower_parse_key_l2() local
63 src_mac = ematch.key->src; in ksz9477_flower_parse_key_l2()
76 required_entries = src_mac && dst_mac ? 2 : 1; in ksz9477_flower_parse_key_l2()
84 ksz9477_acl_match_process_l2(dev, port, ethtype, src_mac, dst_mac, in ksz9477_flower_parse_key_l2()
H A Dksz9477_acl.c1401 u16 ethtype, u8 *src_mac, u8 *dst_mac, in ksz9477_acl_match_process_l2() argument
1411 if (src_mac && dst_mac) { in ksz9477_acl_match_process_l2()
1412 ksz9477_acl_matching_rule_cfg_l2(entry->entry, ethtype, src_mac, in ksz9477_acl_match_process_l2()
1427 u8 *mac = src_mac ? src_mac : dst_mac; in ksz9477_acl_match_process_l2()
1428 bool is_src = src_mac ? true : false; in ksz9477_acl_match_process_l2()
/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 \
/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()
/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()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe.c213 int type, int l4proto, u8 pse_port, u8 *src_mac, in mtk_foe_entry_prepare() argument
254 ether_addr_copy(entry->bridge.src_mac, src_mac); in mtk_foe_entry_prepare()
268 l2->src_mac_hi = get_unaligned_be32(src_mac); in mtk_foe_entry_prepare()
269 l2->src_mac_lo = get_unaligned_be16(src_mac + 4); in mtk_foe_entry_prepare()
782 ether_addr_copy(key.src_mac, eh->h_source); in __mtk_ppe_check_skb()
H A Dmtk_ppe.h132 u8 src_mac[ETH_ALEN]; member
376 int type, int l4proto, u8 pse_port, u8 *src_mac,
/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()
/linux/include/linux/qed/
H A Dqed_fcoe_if.h42 u8 src_mac[ETH_ALEN]; member
/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_sp.c364 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid()
365 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid()
366 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid()
419 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid()
420 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid()
421 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid()
/linux/tools/testing/selftests/bpf/
H A Dxskxceiver.h97 u8 src_mac[ETH_ALEN]; member
/linux/drivers/scsi/qedi/
H A Dqedi_iscsi.h72 u8 src_mac[ETH_ALEN]; member
/linux/net/core/
H A Dpktgen.c379 unsigned char src_mac[ETH_ALEN]; member
620 is_zero_ether_addr(pkt_dev->src_mac) ? in pktgen_if_show()
621 pkt_dev->odev->dev_addr : pkt_dev->src_mac); in pktgen_if_show()
1575 if (!mac_pton(valstr, pkt_dev->src_mac)) in pktgen_if_write()
1578 ether_addr_copy(&pkt_dev->hh[6], pkt_dev->src_mac); in pktgen_if_write()
1580 sprintf(pg_result, "OK: srcmac %pM", pkt_dev->src_mac); in pktgen_if_write()
2182 if (is_zero_ether_addr(pkt_dev->src_mac)) in pktgen_setup_inject()
2442 tmp = pkt_dev->src_mac[5] + (mc & 0xFF); in mod_cur_headers()
2444 tmp = (pkt_dev->src_mac[4] + ((mc >> 8) & 0xFF) + (tmp >> 8)); in mod_cur_headers()
2446 tmp = (pkt_dev->src_mac[3] + ((mc >> 16) & 0xFF) + (tmp >> 8)); in mod_cur_headers()
[all …]
/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()
793 if (act->dst_mac || act->src_mac) in efx_tc_flower_action_order_ok()
1104 unsigned char src_mac[ETH_ALEN]; member
1141 ped = efx_tc_flower_get_mac(efx, mung->src_mac, extack); in efx_tc_complete_mac_mangle()
1146 if (act->src_mac) in efx_tc_complete_mac_mangle()
1147 efx_tc_flower_put_mac(efx, act->src_mac); in efx_tc_complete_mac_mangle()
1149 act->src_mac = ped; in efx_tc_complete_mac_mangle()
1274 memcpy(mung->src_mac, &mac16, sizeof(mac16)); in efx_tc_mangle()
1295 memcpy(mung->src_mac + 2, &mac32, sizeof(mac32)); in efx_tc_mangle()

123