Home
last modified time | relevance | path

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

1234

/linux-6.15/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-6.15/drivers/net/ethernet/intel/ice/
H A Dice_fltr.c278 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()
382 ice_fltr_prepare_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag, in ice_fltr_prepare_eth() argument
389 if (ice_fltr_add_eth_to_list(vsi, &tmp_list, ethertype, flag, action)) in ice_fltr_prepare_eth()
462 int ice_fltr_add_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag, in ice_fltr_add_eth() argument
465 return ice_fltr_prepare_eth(vsi, ethertype, flag, action, in ice_fltr_add_eth()
476 int ice_fltr_remove_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag, in ice_fltr_remove_eth() argument
479 return ice_fltr_prepare_eth(vsi, ethertype, flag, action, in ice_fltr_remove_eth()
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-6.15/drivers/net/
H A Dbareudp.c42 __be16 ethertype; member
52 __be16 ethertype; member
82 if (bareudp->ethertype == htons(ETH_P_IP)) { in bareudp_udp_encap_recv()
106 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
122 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
132 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
361 skb_set_inner_protocol(skb, bareudp->ethertype); in bareudp_xmit_skb()
444 if (bareudp->ethertype == proto) in bareudp_proto_valid()
454 if (bareudp->ethertype == htons(ETH_P_IP) && in bareudp_proto_valid()
662 conf->ethertype != htons(ETH_P_IP))) { in bareudp_configure()
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfs_tracepoint.c78 MASK_VAL_L2(u16, ethertype, ethertype); in print_lyr_2_4_hdrs()
83 PRINT_MASKED_VAL(ethertype, p, "%04x"); in print_lyr_2_4_hdrs()
85 if ((ethertype.m == 0xffff && ethertype.v == ETH_P_IP) || in print_lyr_2_4_hdrs()
98 } else if ((ethertype.m == 0xffff && ethertype.v == ETH_P_IPV6) || in print_lyr_2_4_hdrs()
/linux-6.15/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-6.15/net/802/
H A Dhippi.c76 hip->snap.ethertype = htons(type); in hippi_header()
110 return hip->snap.ethertype; in hippi_type_trans()
H A Dfddi.c67 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header()
114 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
H A Dfc.c53 fcllc->ethertype = htons(type); in fc_header()
/linux-6.15/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-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c249 static u8 mlx5_etype_to_ipv(u16 ethertype) in mlx5_etype_to_ipv() argument
251 if (ethertype == ETH_P_IP) in mlx5_etype_to_ipv()
254 if (ethertype == ETH_P_IPV6) in mlx5_etype_to_ipv()
315 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in mlx5_generate_ttc_rule()
316 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, etype); in mlx5_generate_ttc_rule()
412 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5_create_ttc_table_groups()
H A Dmacsec_fs.c56 __be16 ethertype; member
289 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_tx_create_crypto_table_groups()
449 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in macsec_fs_tx_create()
450 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, ETH_P_PAE); in macsec_fs_tx_create()
620 sectag.ethertype = htons(ETH_P_MACSEC); in macsec_fs_tx_create_sectag_header()
1077 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_rx_create_crypto_table_groups()
1100 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_rx_create_crypto_table_groups()
1692 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in macsec_fs_rx_setup_fte()
1693 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, ETH_P_MACSEC); in macsec_fs_rx_setup_fte()
/linux-6.15/net/netfilter/
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-6.15/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-6.15/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.c277 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ethertype); in arfs_create_groups()
534 outer_headers.ethertype); in arfs_add_rule()
535 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, in arfs_add_rule()
/linux-6.15/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-6.15/Documentation/netlink/specs/
H A Dovs_flow.yaml313 name: mpls-ethertype
318 ethertype should ever be given are ETH_P_MPLS_UC and ETH_P_MPLS_MC,
331 name: mpls-ethertype
336 ethertype should ever be given are ETH_P_MPLS_UC and ETH_P_MPLS_MC,
489 name: ethertype
648 label stack. Set the ethertype of the encapsulating frame to either
654 doc: ethertype
/linux-6.15/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-6.15/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-6.15/include/linux/
H A Dif_vlan.h316 static inline bool eth_type_vlan(__be16 ethertype) in eth_type_vlan() argument
318 switch (ethertype) { in eth_type_vlan()
/linux-6.15/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl.c477 u8 ethertype; in mlxsw_sp_acl_rulei_act_vlan() local
482 ethertype = 0; in mlxsw_sp_acl_rulei_act_vlan()
485 ethertype = 1; in mlxsw_sp_acl_rulei_act_vlan()
495 vid, prio, ethertype, in mlxsw_sp_acl_rulei_act_vlan()

1234