Home
last modified time | relevance | path

Searched refs:ethertype (Results 1 – 25 of 64) sorted by relevance

123

/linux/include/linux/mlx5/
H A Dfs_helpers.h53 u16 ethertype; in _mlx5_fs_is_outer_ipv_flow() local
57 ethertype = ETH_P_IP; in _mlx5_fs_is_outer_ipv_flow()
60 ethertype = ETH_P_IPV6; in _mlx5_fs_is_outer_ipv_flow()
67 ethertype) == 0xffff && in _mlx5_fs_is_outer_ipv_flow()
69 ethertype) == ethertype; in _mlx5_fs_is_outer_ipv_flow()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_fltr.c185 * ice_fltr_add_eth_list - add list of ethertype filters
195 * ice_fltr_remove_eth_list - remove list of ethertype filters
269 * ice_fltr_add_eth_to_list - add ethertype filter info to exsisting list
272 * @ethertype: ethertype of packet that matches filter
278 u16 ethertype, u16 flag, in ice_fltr_add_eth_to_list() argument
287 info.l_data.ethertype_mac.ethertype = ethertype; in ice_fltr_add_eth_to_list()
374 * ice_fltr_prepare_eth - add or remove ethertype filter
376 * @ethertype
382 ice_fltr_prepare_eth(struct ice_vsi * vsi,u16 ethertype,u16 flag,enum ice_sw_fwd_act_type action,int (* eth_action)(struct ice_vsi *,struct list_head *)) ice_fltr_prepare_eth() argument
462 ice_fltr_add_eth(struct ice_vsi * vsi,u16 ethertype,u16 flag,enum ice_sw_fwd_act_type action) ice_fltr_add_eth() argument
476 ice_fltr_remove_eth(struct ice_vsi * vsi,u16 ethertype,u16 flag,enum ice_sw_fwd_act_type action) ice_fltr_remove_eth() argument
[all...]
H A Dice_fltr.h41 ice_fltr_add_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
44 ice_fltr_remove_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
/linux/drivers/net/
H A Dbareudp.c43 __be16 ethertype; member
53 __be16 ethertype; member
83 if (bareudp->ethertype == htons(ETH_P_IP)) { in bareudp_udp_encap_recv()
101 } else if (bareudp->ethertype == htons(ETH_P_MPLS_UC)) { in bareudp_udp_encap_recv()
107 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
123 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
133 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
444 if (bareudp->ethertype == proto) in bareudp_proto_valid()
450 if (bareudp->ethertype == htons(ETH_P_MPLS_UC) && in bareudp_proto_valid()
454 if (bareudp->ethertype in bareudp_proto_valid()
[all...]
/linux/Documentation/networking/
H A Dbareudp.rst29 a) ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls_uc
31 This creates a bareudp tunnel device which tunnels L3 traffic with ethertype
43 a) ip link add dev bareudp0 type bareudp dstport 6635 ethertype ipv4 multiproto
48 b) ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls_uc multiproto
/linux/net/netfilter/
H A Dnft_meta.c320 __be16 ethertype; in nft_meta_pktinfo_may_update() local
335 ethertype = veth->h_vlan_encapsulated_proto; in nft_meta_pktinfo_may_update()
338 if (!nf_flow_pppoe_proto(skb, &ethertype)) in nft_meta_pktinfo_may_update()
348 switch (ethertype) { in nft_meta_pktinfo_may_update()
361 pkt->ethertype = ethertype; in nft_meta_pktinfo_may_update()
378 nft_reg_store16(dest, (__force u16)pkt->ethertype); in nft_meta_get_eval()
H A Dnf_tables_offload.c57 struct nft_offload_ethertype ethertype = { in nft_flow_rule_transfer_vlan() local
69 match->key.vlan.vlan_tpid = ethertype.value; in nft_flow_rule_transfer_vlan()
70 match->mask.vlan.vlan_tpid = ethertype.mask; in nft_flow_rule_transfer_vlan()
80 match->key.vlan.vlan_tpid = ethertype.value; in nft_flow_rule_transfer_vlan()
81 match->mask.vlan.vlan_tpid = ethertype.mask; in nft_flow_rule_transfer_vlan()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c297 static u8 mlx5_etype_to_ipv(u16 ethertype) in mlx5_etype_to_ipv() argument
299 if (ethertype == ETH_P_IP) in mlx5_etype_to_ipv()
302 if (ethertype == ETH_P_IPV6) in mlx5_etype_to_ipv()
325 outer_headers.ethertype); in mlx5_fs_ttc_set_match_ipv_outer()
327 outer_headers.ethertype, etype); in mlx5_fs_ttc_set_match_ipv_outer()
489 MLX5_SET(fte_match_param, mc, outer_headers.ethertype, 0); in mlx5_create_ttc_table_ipsec_groups()
509 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5_create_ttc_table_ipsec_groups()
553 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5_create_ttc_table_groups()
H A Dmacsec_fs.c40 #define MLX5_MACSEC_TAG_LEN 8 /* SecTAG length with ethertype and without the optional SCI */
52 __be16 ethertype; member
286 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_tx_create_crypto_table_groups()
446 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in macsec_fs_tx_create()
447 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, ETH_P_PAE); in macsec_fs_tx_create()
617 sectag.ethertype = htons(ETH_P_MACSEC); in macsec_fs_tx_create_sectag_header()
1079 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_rx_create_crypto_table_groups()
1102 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_rx_create_crypto_table_groups()
1698 /* MACsec ethertype */ in macsec_fs_rx_setup_fte()
1699 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in macsec_fs_rx_setup_fte()
[all...]
/linux/include/uapi/linux/
H A Dif_fc.h49 __be16 ethertype; /* ether type field */ member
H A Dif_fddi.h106 __be16 ethertype; /* packet type ID field */ member
H A Dif_hippi.h145 __be16 ethertype; /* packet type ID field */ member
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_rx.c228 u16 fc, ethertype; in libipw_is_eapol_frame() local
256 ethertype = (pos[6] << 8) | pos[7]; in libipw_is_eapol_frame()
257 if (ethertype == ETH_P_PAE) in libipw_is_eapol_frame()
334 u16 ethertype; in libipw_rx() local
704 ethertype = (payload[6] << 8) | payload[7]; in libipw_rx()
710 if (ethertype == ETH_P_PAE) { in libipw_rx()
725 "ethertype=0x%04x\n", dev->name, ethertype); in libipw_rx()
734 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in libipw_rx()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c170 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip4()
171 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IP); in set_ip4()
193 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip6()
194 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IPV6); in set_ip6()
325 MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto)); in parse_ether()
326 MLX5E_FTE_SET(headers_v, ethertype, ntohs(eth_val->h_proto)); in parse_ether()
H A Den_arfs.c276 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ethertype); in arfs_create_groups()
533 outer_headers.ethertype); in arfs_add_rule()
534 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, in arfs_add_rule()
/linux/drivers/net/dsa/microchip/
H A Dksz9477_acl.c1206 static void ksz9477_acl_matching_rule_cfg_l2(u8 *entry, u16 ethertype, in ksz9477_acl_matching_rule_cfg_l2() argument
1212 if (ethertype) in ksz9477_acl_matching_rule_cfg_l2()
1232 ksz9477_acl_set_reg(entry, KSZ9477_ACL_PORT_ACCESS_8, ethertype >> 8); in ksz9477_acl_matching_rule_cfg_l2()
1233 ksz9477_acl_set_reg(entry, KSZ9477_ACL_PORT_ACCESS_9, ethertype & 0xff); in ksz9477_acl_matching_rule_cfg_l2()
/linux/net/802/
H A Dfc.c53 fcllc->ethertype = htons(type); in fc_header()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c492 ext->ethertype = cpu_to_be16(ETH_P_TEB); in nfp_flower_compile_ipv4_gre_tun()
493 msk->ethertype = cpu_to_be16(~0); in nfp_flower_compile_ipv4_gre_tun()
527 ext->ethertype = cpu_to_be16(ETH_P_TEB); in nfp_flower_compile_ipv6_gre_tun()
528 msk->ethertype = cpu_to_be16(~0); in nfp_flower_compile_ipv6_gre_tun()
H A Dcmsg.h511 __be16 ethertype; member
551 __be16 ethertype; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Drule.c658 static u8 hws_rule_ethertype_to_matcher_ipv(u32 ethertype) in hws_rule_ethertype_to_matcher_ipv() argument
660 switch (ethertype) { in hws_rule_ethertype_to_matcher_ipv()
692 outer_headers.ethertype); in hws_rule_check_outer_ip_version()
731 inner_headers.ethertype); in hws_rule_check_inner_ip_version()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dfs_tt_redirect.c359 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in fs_any_set_ethertype_flow()
360 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, ether_type); in fs_any_set_ethertype_flow()
447 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ethertype); in fs_any_create_groups()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl.c483 u8 ethertype; in mlxsw_sp_acl_rulei_act_vlan() local
488 ethertype = 0; in mlxsw_sp_acl_rulei_act_vlan()
491 ethertype = 1; in mlxsw_sp_acl_rulei_act_vlan()
501 vid, prio, ethertype, in mlxsw_sp_acl_rulei_act_vlan()
/linux/tools/testing/selftests/net/
H A Dbareudp.sh441 ip -netns "${NS1}" link add name bareudp_ns1 up type bareudp dstport 6635 ethertype "${ETHERTYPE}" "${MULTIPROTO}"
442 ip -netns "${NS2}" link add name bareudp_ns2 up type bareudp dstport 6635 ethertype "${ETHERTYPE}" "${MULTIPROTO}"
/linux/include/linux/
H A Dif_vlan.h324 * @ethertype: ether type to check
328 static inline bool eth_type_vlan(__be16 ethertype) in eth_type_vlan() argument
330 switch (ethertype) { in eth_type_vlan()
713 /* No ethertype: this is an 802.2 LLC frame (length field). */ in vlan_set_encap_proto()
/linux/net/sched/
H A Dcls_flower.c1091 __be16 ethertype, in fl_set_key_vlan()
1110 if (ethertype) { in fl_set_key_vlan()
1111 key_val->vlan_tpid = ethertype; in fl_set_key_vlan()
1839 static bool is_vlan_key(struct nlattr *tb, __be16 *ethertype, in fl_set_key_cfm_opcode()
1846 *ethertype = 0; in fl_set_key_cfm_opcode()
1850 *ethertype = nla_get_be16(tb); in fl_set_key_cfm()
1851 if (good_num_of_vlans || eth_type_vlan(*ethertype)) in fl_set_key_cfm()
1854 key->basic.n_proto = *ethertype; in fl_set_key_cfm()
1910 __be16 ethertype; in fl_set_key()
1937 if (is_vlan_key(tb[TCA_FLOWER_KEY_ETH_TYPE], &ethertype, ke in fl_set_key()
1085 fl_set_key_vlan(struct nlattr ** tb,__be16 ethertype,int vlan_id_key,int vlan_prio_key,int vlan_next_eth_type_key,struct flow_dissector_key_vlan * key_val,struct flow_dissector_key_vlan * key_mask) fl_set_key_vlan() argument
1804 is_vlan_key(struct nlattr * tb,__be16 * ethertype,struct fl_flow_key * key,struct fl_flow_key * mask,int vthresh) is_vlan_key() argument
1875 __be16 ethertype; fl_set_key() local
[all...]

123