| /Linux-v5.4/include/linux/mlx5/ |
| D | fs_helpers.h | 93 u16 ethertype; in _mlx5_fs_is_outer_ipv_flow() local 97 ethertype = ETH_P_IP; in _mlx5_fs_is_outer_ipv_flow() 100 ethertype = ETH_P_IPV6; in _mlx5_fs_is_outer_ipv_flow() 107 ethertype) == 0xffff && in _mlx5_fs_is_outer_ipv_flow() 109 ethertype) == ethertype; in _mlx5_fs_is_outer_ipv_flow()
|
| /Linux-v5.4/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-v5.4/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
| D | fs_tracepoint.c | 78 MASK_VAL_L2(u16, ethertype, ethertype); in print_lyr_2_4_hdrs() 82 PRINT_MASKED_VAL(ethertype, p, "%04x"); in print_lyr_2_4_hdrs() 84 if (ethertype.m == 0xffff) { in print_lyr_2_4_hdrs() 85 if (ethertype.v == ETH_P_IP) { in print_lyr_2_4_hdrs() 97 } else if (ethertype.v == ETH_P_IPV6) { in print_lyr_2_4_hdrs()
|
| /Linux-v5.4/net/802/ |
| 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 | hippi.c | 76 hip->snap.ethertype = htons(type); in hippi_header() 110 return hip->snap.ethertype; in hippi_type_trans()
|
| D | fc.c | 53 fcllc->ethertype = htons(type); in fc_header()
|
| /Linux-v5.4/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-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | en_fs_ethtool.c | 146 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip4() 147 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IP); in set_ip4() 169 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip6() 170 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IPV6); in set_ip6() 301 MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto)); in parse_ether() 302 MLX5E_FTE_SET(headers_v, ethertype, ntohs(eth_val->h_proto)); in parse_ether()
|
| D | en_arfs.c | 240 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ethertype); in arfs_create_groups() 475 outer_headers.ethertype); in arfs_add_rule() 476 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, in arfs_add_rule()
|
| D | en_fs.c | 799 static u8 mlx5e_etype_to_ipv(u16 ethertype) in mlx5e_etype_to_ipv() argument 801 if (ethertype == ETH_P_IP) in mlx5e_etype_to_ipv() 804 if (ethertype == ETH_P_IPV6) in mlx5e_etype_to_ipv() 841 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in mlx5e_generate_ttc_rule() 842 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, etype); in mlx5e_generate_ttc_rule() 949 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5e_create_ttc_table_groups()
|
| /Linux-v5.4/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-v5.4/drivers/staging/rtl8192u/ieee80211/ |
| D | ieee80211_rx.c | 296 u16 fc, ethertype; in ieee80211_is_eapol_frame() local 325 ethertype = (pos[6] << 8) | pos[7]; in ieee80211_is_eapol_frame() 326 if (ethertype == ETH_P_PAE) in ieee80211_is_eapol_frame() 527 u16 ethertype; in ieee80211_indicate_packets() local 537 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_indicate_packets() 540 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_indicate_packets() 880 u16 ethertype; in ieee80211_rx() local 1271 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_rx() 1274 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_rx()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_acl.c | 588 u8 ethertype; in mlxsw_sp_acl_rulei_act_vlan() local 593 ethertype = 0; in mlxsw_sp_acl_rulei_act_vlan() 596 ethertype = 1; in mlxsw_sp_acl_rulei_act_vlan() 606 vid, prio, ethertype, in mlxsw_sp_acl_rulei_act_vlan()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| D | tls_rxtx.c | 76 __be16 ethertype; member 318 if (mdata->ethertype != htons(ETH_P_IP)) in tls_update_resync_sn()
|
| /Linux-v5.4/include/linux/ |
| D | if_vlan.h | 300 static inline bool eth_type_vlan(__be16 ethertype) in eth_type_vlan() argument 302 switch (ethertype) { in eth_type_vlan()
|
| /Linux-v5.4/drivers/staging/rtl8192e/ |
| D | rtllib_rx.c | 246 u16 fc, ethertype; in rtllib_is_eapol_frame() local 274 ethertype = (pos[6] << 8) | pos[7]; in rtllib_is_eapol_frame() 275 if (ethertype == ETH_P_PAE) in rtllib_is_eapol_frame() 479 u16 ethertype; in rtllib_indicate_packets() local 488 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets() 492 ethertype != ETH_P_AARP && in rtllib_indicate_packets() 493 ethertype != ETH_P_IPX) || in rtllib_indicate_packets() 1232 u16 ethertype; in rtllib_rx_indicate_pkt_legacy() local 1247 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_rx_indicate_pkt_legacy() 1250 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in rtllib_rx_indicate_pkt_legacy()
|
| /Linux-v5.4/net/sched/ |
| D | cls_flower.c | 776 __be16 ethertype, in fl_set_key_vlan() argument 794 key_val->vlan_tpid = ethertype; in fl_set_key_vlan() 1047 __be16 ethertype; in fl_set_key() local 1066 ethertype = nla_get_be16(tb[TCA_FLOWER_KEY_ETH_TYPE]); in fl_set_key() 1068 if (eth_type_vlan(ethertype)) { in fl_set_key() 1069 fl_set_key_vlan(tb, ethertype, TCA_FLOWER_KEY_VLAN_ID, in fl_set_key() 1074 ethertype = nla_get_be16(tb[TCA_FLOWER_KEY_VLAN_ETH_TYPE]); in fl_set_key() 1075 if (eth_type_vlan(ethertype)) { in fl_set_key() 1076 fl_set_key_vlan(tb, ethertype, in fl_set_key() 1086 key->basic.n_proto = ethertype; in fl_set_key() [all …]
|
| /Linux-v5.4/net/mac80211/ |
| D | tx.c | 2351 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_is_tdls_setup() local 2353 return ethertype == ETH_P_TDLS && in ieee80211_is_tdls_setup() 2453 u16 ethertype, hdrlen, meshhdrlen = 0; in ieee80211_build_hdr() local 2479 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_build_hdr() 2627 cpu_to_be16(ethertype) != sdata->control_port_protocol) { in ieee80211_build_hdr() 2706 (cpu_to_be16(ethertype) != sdata->control_port_protocol || in ieee80211_build_hdr() 2764 if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { in ieee80211_build_hdr() 2768 } else if (ethertype >= ETH_P_802_3_MIN) { in ieee80211_build_hdr() 3413 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_xmit_fast() local 3425 if (cpu_to_be16(ethertype) == sdata->control_port_protocol) in ieee80211_xmit_fast() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| D | dr_action.c | 889 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, ethertype); in dr_actions_l2_rewrite() 893 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, ethertype); in dr_actions_l2_rewrite() 1134 u16 ethertype = vlan_hdr_h >> 16; in mlx5dr_action_create_push_vlan() local 1137 if (ethertype != SVLAN_ETHERTYPE && ethertype != CVLAN_ETHERTYPE) { in mlx5dr_action_create_push_vlan()
|
| /Linux-v5.4/drivers/net/ethernet/intel/ice/ |
| D | ice_switch.h | 96 u16 ethertype; member
|
| /Linux-v5.4/net/wireless/ |
| D | util.c | 660 u16 ethertype; in ieee80211_amsdu_to_8023s() local 713 ethertype = (payload[6] << 8) | payload[7]; in ieee80211_amsdu_to_8023s() 715 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_amsdu_to_8023s() 717 eth.h_proto = htons(ethertype); in ieee80211_amsdu_to_8023s()
|
| /Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/ |
| D | match.c | 330 ext->ethertype = cpu_to_be16(ETH_P_TEB); in nfp_flower_compile_ipv4_gre_tun() 331 msk->ethertype = cpu_to_be16(~0); in nfp_flower_compile_ipv4_gre_tun()
|