/Linux-v6.6/include/linux/mlx5/ |
D | fs_helpers.h | 53 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-v6.6/drivers/net/ethernet/intel/ice/ |
D | ice_fltr.c | 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() 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()
|
D | ice_fltr.h | 41 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-v6.6/drivers/net/ |
D | bareudp.c | 42 __be16 ethertype; member 52 __be16 ethertype; member 80 if (bareudp->ethertype == htons(ETH_P_IP)) { in bareudp_udp_encap_recv() 98 } else if (bareudp->ethertype == htons(ETH_P_MPLS_UC)) { in bareudp_udp_encap_recv() 104 proto = bareudp->ethertype; in bareudp_udp_encap_recv() 120 proto = bareudp->ethertype; in bareudp_udp_encap_recv() 130 proto = bareudp->ethertype; in bareudp_udp_encap_recv() 341 skb_set_inner_protocol(skb, bareudp->ethertype); in bareudp_xmit_skb() 417 if (bareudp->ethertype == proto) in bareudp_proto_valid() 423 if (bareudp->ethertype == htons(ETH_P_MPLS_UC) && in bareudp_proto_valid() [all …]
|
/Linux-v6.6/drivers/net/wireless/intersil/hostap/ |
D | hostap_80211_tx.c | 68 u16 fc, ethertype = 0; in hostap_data_start_xmit() local 122 ethertype = (skb->data[12] << 8) | skb->data[13]; in hostap_data_start_xmit() 130 if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { in hostap_data_start_xmit() 134 } else if (ethertype >= 0x600) { in hostap_data_start_xmit() 258 meta->ethertype = ethertype; in hostap_data_start_xmit() 303 meta->ethertype = (pos[0] << 8) | pos[1]; in hostap_mgmt_start_xmit() 444 meta->ethertype != ETH_P_PAE && in hostap_master_start_xmit() 448 dev->name, meta->ethertype); in hostap_master_start_xmit() 486 if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt && in hostap_master_start_xmit() 505 meta->ethertype != ETH_P_PAE) { in hostap_master_start_xmit()
|
D | hostap_80211_rx.c | 611 u16 fc, ethertype; in hostap_is_eapol_frame() local 639 ethertype = (pos[6] << 8) | pos[7]; in hostap_is_eapol_frame() 640 if (ethertype == ETH_P_PAE) in hostap_is_eapol_frame() 728 u16 ethertype; in hostap_80211_rx() local 1008 ethertype = (payload[6] << 8) | payload[7]; in hostap_80211_rx() 1013 if (ethertype == ETH_P_PAE) { in hostap_80211_rx() 1029 dev->name, ethertype); in hostap_80211_rx() 1037 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in hostap_80211_rx()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fs_tracepoint.c | 78 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-v6.6/Documentation/networking/ |
D | bareudp.rst | 28 a) ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls_uc 30 This creates a bareudp tunnel device which tunnels L3 traffic with ethertype 42 a) ip link add dev bareudp0 type bareudp dstport 6635 ethertype ipv4 multiproto 47 b) ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls_uc multiproto
|
/Linux-v6.6/net/802/ |
D | hippi.c | 76 hip->snap.ethertype = htons(type); in hippi_header() 110 return hip->snap.ethertype; in hippi_type_trans()
|
D | fddi.c | 67 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header() 114 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
|
D | fc.c | 53 fcllc->ethertype = htons(type); in fc_header()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_ttc.c | 180 static u8 mlx5_etype_to_ipv(u16 ethertype) in mlx5_etype_to_ipv() argument 182 if (ethertype == ETH_P_IP) in mlx5_etype_to_ipv() 185 if (ethertype == ETH_P_IPV6) in mlx5_etype_to_ipv() 221 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in mlx5_generate_ttc_rule() 222 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, etype); in mlx5_generate_ttc_rule() 316 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5_create_ttc_table_groups()
|
D | macsec_fs.c | 56 __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-v6.6/include/uapi/linux/ |
D | if_fc.h | 49 __be16 ethertype; /* ether type field */ member
|
D | if_fddi.h | 106 __be16 ethertype; /* packet type ID field */ member
|
D | if_hippi.h | 145 __be16 ethertype; /* packet type ID field */ member
|
/Linux-v6.6/net/netfilter/ |
D | nf_tables_offload.c | 57 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-v6.6/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_rx.c | 231 u16 fc, ethertype; in libipw_is_eapol_frame() local 259 ethertype = (pos[6] << 8) | pos[7]; in libipw_is_eapol_frame() 260 if (ethertype == ETH_P_PAE) in libipw_is_eapol_frame() 337 u16 ethertype; in libipw_rx() local 707 ethertype = (payload[6] << 8) | payload[7]; in libipw_rx() 713 if (ethertype == ETH_P_PAE) { in libipw_rx() 728 "ethertype=0x%04x\n", dev->name, ethertype); in libipw_rx() 737 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in libipw_rx()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 170 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()
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 492 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()
|
D | cmsg.h | 511 __be16 ethertype; member 551 __be16 ethertype; member
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | fs_tt_redirect.c | 358 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in fs_any_set_ethertype_flow() 359 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, ether_type); in fs_any_set_ethertype_flow() 445 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ethertype); in fs_any_create_groups()
|
/Linux-v6.6/drivers/staging/rtl8192e/ |
D | rtllib_rx.c | 235 u16 fc, ethertype; in rtllib_is_eapol_frame() local 264 ethertype = (pos[6] << 8) | pos[7]; in rtllib_is_eapol_frame() 265 if (ethertype == ETH_P_PAE) in rtllib_is_eapol_frame() 468 u16 ethertype; in rtllib_indicate_packets() local 477 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets() 481 ethertype != ETH_P_AARP && in rtllib_indicate_packets() 482 ethertype != ETH_P_IPX) || in rtllib_indicate_packets() 1213 u16 ethertype; in rtllib_rx_indicate_pkt_legacy() local 1228 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_rx_indicate_pkt_legacy() 1231 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in rtllib_rx_indicate_pkt_legacy()
|
/Linux-v6.6/include/linux/ |
D | if_vlan.h | 315 static inline bool eth_type_vlan(__be16 ethertype) in eth_type_vlan() argument 317 switch (ethertype) { in eth_type_vlan()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl.c | 476 u8 ethertype; in mlxsw_sp_acl_rulei_act_vlan() local 481 ethertype = 0; in mlxsw_sp_acl_rulei_act_vlan() 484 ethertype = 1; in mlxsw_sp_acl_rulei_act_vlan() 494 vid, prio, ethertype, in mlxsw_sp_acl_rulei_act_vlan()
|