/linux/tools/testing/selftests/tc-testing/ |
H A D | tdc_batch.py | 73 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 D | smt.c | 58 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 D | smt.h | 61 u8 src_mac[ETH_ALEN]; member
|
/linux/samples/bpf/ |
H A D | xdp_router_ipv4.bpf.c | 112 __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/drivers/net/dsa/microchip/ |
H A D | ksz9477_tc_flower.c | 36 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 D | ksz9477_acl.c | 1401 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()
|
H A D | ksz9477.h | 97 u16 ethtype, u8 *src_mac, u8 *dst_mac,
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | mirror_gre.sh | 69 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 D | tc_chains.sh | 131 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 D | tc_mpls_l2vpn.sh | 85 action vlan push_eth dst_mac $mpls2mac src_mac $mpls1mac \ 114 action vlan push_eth dst_mac $mpls1mac src_mac $mpls2mac \
|
H A D | tc_flower_l2_miss.sh | 306 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 D | test_tc_peer.c | 16 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/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_acl_drops.sh | 99 flower src_mac $h1mac action pass 124 flower src_mac $h1mac action pass
|
H A D | rif_mac_profiles.sh | 119 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 D | ingress_rif_conf_vxlan.sh | 199 local src_mac=$(mac_get $rp1) 207 )"$src_mac:"$( : ETH saddr
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_fcoe.c | 932 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/include/linux/qed/ |
H A D | qed_fcoe_if.h | 42 u8 src_mac[ETH_ALEN]; member
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_ppe.c | 213 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 D | mtk_ppe.h | 132 u8 src_mac[ETH_ALEN]; member 376 int type, int l4proto, u8 pse_port, u8 *src_mac,
|
/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_sp.c | 364 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/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_vfr.c | 453 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/tools/testing/selftests/bpf/ |
H A D | xskxceiver.h | 97 u8 src_mac[ETH_ALEN]; member
|
/linux/drivers/scsi/qedi/ |
H A D | qedi_iscsi.h | 72 u8 src_mac[ETH_ALEN]; member
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_tc_lib.h | 83 u8 src_mac[ETH_ALEN]; member
|
/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_defs_cna.h | 181 u8 src_mac[ETH_ALEN]; member
|