/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/net/802/ |
D | fddi.c | 71 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header() 118 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
|
D | hippi.c | 80 hip->snap.ethertype = htons(type); in hippi_header() 114 return hip->snap.ethertype; in hippi_type_trans()
|
D | fc.c | 57 fcllc->ethertype = htons(type); in fc_header()
|
/Linux-v4.19/include/uapi/linux/ |
D | if_fc.h | 49 __be16 ethertype; /* ether type field */ member
|
D | if_fddi.h | 91 __be16 ethertype; /* packet type ID field */ member
|
D | if_hippi.h | 145 __be16 ethertype; /* packet type ID field */ member
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 144 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip4() 145 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IP); in set_ip4() 167 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip6() 168 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IPV6); in set_ip6() 299 MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto)); in parse_ether() 300 MLX5E_FTE_SET(headers_v, ethertype, ntohs(eth_val->h_proto)); in parse_ether()
|
D | en_fs.c | 752 static u8 mlx5e_etype_to_ipv(u16 ethertype) in mlx5e_etype_to_ipv() argument 754 if (ethertype == ETH_P_IP) in mlx5e_etype_to_ipv() 757 if (ethertype == ETH_P_IPV6) in mlx5e_etype_to_ipv() 794 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in mlx5e_generate_ttc_rule() 795 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, etype); in mlx5e_generate_ttc_rule() 899 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5e_create_ttc_table_groups()
|
D | en_tc.c | 1180 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ethertype); in parse_tunnel_attr() 1181 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ethertype, ETH_P_IP); in parse_tunnel_attr() 1206 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ethertype); in parse_tunnel_attr() 1207 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ethertype, ETH_P_IPV6); in parse_tunnel_attr() 1420 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ethertype, in __parse_cls_flower() 1422 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ethertype, in __parse_cls_flower() 1977 u16 ethertype; in modify_header_match_supported() local 1981 ethertype = MLX5_GET(fte_match_set_lyr_2_4, headers_v, ethertype); in modify_header_match_supported() 1984 if (ethertype != ETH_P_IP && ethertype != ETH_P_IPV6) in modify_header_match_supported()
|
D | en_arfs.c | 240 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ethertype); in arfs_create_groups() 481 outer_headers.ethertype); in arfs_add_rule() 482 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, in arfs_add_rule()
|
/Linux-v4.19/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_rx.c | 235 u16 fc, ethertype; in libipw_is_eapol_frame() local 263 ethertype = (pos[6] << 8) | pos[7]; in libipw_is_eapol_frame() 264 if (ethertype == ETH_P_PAE) in libipw_is_eapol_frame() 341 u16 ethertype; in libipw_rx() local 711 ethertype = (payload[6] << 8) | payload[7]; in libipw_rx() 717 if (ethertype == ETH_P_PAE) { in libipw_rx() 732 "ethertype=0x%04x\n", dev->name, ethertype); in libipw_rx() 741 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in libipw_rx()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl.c | 580 u8 ethertype; in mlxsw_sp_acl_rulei_act_vlan() local 585 ethertype = 0; in mlxsw_sp_acl_rulei_act_vlan() 588 ethertype = 1; in mlxsw_sp_acl_rulei_act_vlan() 598 vid, prio, ethertype, in mlxsw_sp_acl_rulei_act_vlan()
|
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_rx.c | 300 u16 fc, ethertype; in ieee80211_is_eapol_frame() local 329 ethertype = (pos[6] << 8) | pos[7]; in ieee80211_is_eapol_frame() 330 if (ethertype == ETH_P_PAE) in ieee80211_is_eapol_frame() 540 u16 ethertype; in ieee80211_indicate_packets() local 551 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_indicate_packets() 554 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_indicate_packets() 897 u16 ethertype; in ieee80211_rx() local 1301 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_rx() 1304 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_rx()
|
/Linux-v4.19/net/sched/ |
D | cls_flower.c | 553 __be16 ethertype, in fl_set_key_vlan() argument 571 key_val->vlan_tpid = ethertype; in fl_set_key_vlan() 766 __be16 ethertype; in fl_set_key() local 786 ethertype = nla_get_be16(tb[TCA_FLOWER_KEY_ETH_TYPE]); in fl_set_key() 788 if (eth_type_vlan(ethertype)) { in fl_set_key() 789 fl_set_key_vlan(tb, ethertype, TCA_FLOWER_KEY_VLAN_ID, in fl_set_key() 794 ethertype = nla_get_be16(tb[TCA_FLOWER_KEY_VLAN_ETH_TYPE]); in fl_set_key() 795 if (eth_type_vlan(ethertype)) { in fl_set_key() 796 fl_set_key_vlan(tb, ethertype, in fl_set_key() 806 key->basic.n_proto = ethertype; in fl_set_key() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/ice/ |
D | ice_switch.h | 76 u16 ethertype; member
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls_rxtx.c | 76 __be16 ethertype; member 314 if (mdata->ethertype != htons(ETH_P_IP)) in tls_update_resync_sn()
|
/Linux-v4.19/include/linux/ |
D | if_vlan.h | 305 static inline bool eth_type_vlan(__be16 ethertype) in eth_type_vlan() argument 307 switch (ethertype) { in eth_type_vlan()
|
/Linux-v4.19/drivers/staging/rtl8192e/ |
D | rtllib_rx.c | 254 u16 fc, ethertype; in rtllib_is_eapol_frame() local 282 ethertype = (pos[6] << 8) | pos[7]; in rtllib_is_eapol_frame() 283 if (ethertype == ETH_P_PAE) in rtllib_is_eapol_frame() 487 u16 ethertype; in rtllib_indicate_packets() local 496 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets() 500 ethertype != ETH_P_AARP && in rtllib_indicate_packets() 501 ethertype != ETH_P_IPX) || in rtllib_indicate_packets() 1240 u16 ethertype; in rtllib_rx_indicate_pkt_legacy() local 1255 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_rx_indicate_pkt_legacy() 1258 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in rtllib_rx_indicate_pkt_legacy()
|
/Linux-v4.19/net/openvswitch/ |
D | actions.c | 173 __be16 ethertype) in update_ethertype() argument 176 __be16 diff[] = { ~(hdr->h_proto), ethertype }; in update_ethertype() 182 hdr->h_proto = ethertype; in update_ethertype() 222 const __be16 ethertype) in pop_mpls() argument 246 update_ethertype(skb, hdr, ethertype); in pop_mpls() 249 skb->protocol = ethertype; in pop_mpls()
|
/Linux-v4.19/net/mac80211/ |
D | tx.c | 2315 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_is_tdls_setup() local 2317 return ethertype == ETH_P_TDLS && in ieee80211_is_tdls_setup() 2416 u16 ethertype, hdrlen, meshhdrlen = 0; in ieee80211_build_hdr() local 2437 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_build_hdr() 2578 cpu_to_be16(ethertype) != sdata->control_port_protocol) { in ieee80211_build_hdr() 2657 (cpu_to_be16(ethertype) != sdata->control_port_protocol || in ieee80211_build_hdr() 2715 if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { in ieee80211_build_hdr() 2719 } else if (ethertype >= ETH_P_802_3_MIN) { in ieee80211_build_hdr() 3349 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_xmit_fast() local 3361 if (cpu_to_be16(ethertype) == sdata->control_port_protocol) in ieee80211_xmit_fast() [all …]
|
/Linux-v4.19/net/wireless/ |
D | util.c | 633 u16 ethertype; in ieee80211_amsdu_to_8023s() local 686 ethertype = (payload[6] << 8) | payload[7]; in ieee80211_amsdu_to_8023s() 688 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_amsdu_to_8023s() 690 eth.h_proto = htons(ethertype); in ieee80211_amsdu_to_8023s()
|