Home
last modified time | relevance | path

Searched refs:src_mac (Results 1 - 25 of 116) sorted by relevance

12345

/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/
H A Dtdc_batch.py73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac,
76 " flower {} src_mac {} dst_mac {} action drop {}".format(
77 device, prio, handle, skip, src_mac, dst_mac, share_action))
80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac,
83 " flower {} src_mac {} dst_mac {} action drop {}".format(
84 device, prio, handle, skip, src_mac, dst_mac, share_action))
87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac,
104 src_mac = "e4:11:{:02x}:{}".format(mac_prefix, mac) variable
106 cmd = formatter(device, prio, handle_start + index, skip, src_mac,
/kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/
H A Dtdc_batch.py73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac,
76 " flower {} src_mac {} dst_mac {} action drop {}".format(
77 device, prio, handle, skip, src_mac, dst_mac, share_action))
80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac,
83 " flower {} src_mac {} dst_mac {} action drop {}".format(
84 device, prio, handle, skip, src_mac, dst_mac, share_action))
87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac,
104 src_mac = "e4:11:{:02x}:{}".format(mac_prefix, mac) variable
106 cmd = formatter(device, prio, handle_start + index, skip, src_mac,
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/samples/bpf/
H A Dxdp_router_ipv4_kern.c112 __be64 *dest_mac = NULL, *src_mac = NULL; in xdp_router_ipv4_prog() local
148 src_mac = &direct_entry->mac; in xdp_router_ipv4_prog()
161 src_mac = &prefix_value->value; in xdp_router_ipv4_prog()
162 if (!src_mac) in xdp_router_ipv4_prog()
176 if (src_mac && dest_mac) { in xdp_router_ipv4_prog()
177 set_src_dst_mac(data, src_mac, dest_mac); in xdp_router_ipv4_prog()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/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_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_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
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
H A Dqplib_sp.c342 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()
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()
/kernel/linux/linux-5.10/include/linux/qed/
H A Dqed_fcoe_if.h42 u8 src_mac[ETH_ALEN]; member
/kernel/linux/linux-6.6/include/linux/qed/
H A Dqed_fcoe_if.h42 u8 src_mac[ETH_ALEN]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_vfr.c356 static void bnxt_vf_rep_eth_addr_gen(u8 *src_mac, u16 vf_idx, u8 *mac) in bnxt_vf_rep_eth_addr_gen() argument
360 ether_addr_copy(mac, src_mac); in bnxt_vf_rep_eth_addr_gen()
362 addr = jhash(src_mac, ETH_ALEN, 0) + vf_idx; in bnxt_vf_rep_eth_addr_gen()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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,
/kernel/linux/linux-5.10/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()

Completed in 10 milliseconds

12345