eth_type         2811 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	u16 eth_type;
eth_type         2824 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		eth_type = ntohs(eth_hdr->h_proto);
eth_type         2825 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		switch (eth_type) {
eth_type         2834 drivers/infiniband/hw/bnxt_re/ib_verbs.c 			len = (eth_type == ETH_P_IP ? sizeof(struct iphdr) :
eth_type         3129 drivers/infiniband/hw/mlx5/main.c 	u16 eth_type = 0;
eth_type         3139 drivers/infiniband/hw/mlx5/main.c 			eth_type = ntohs(ib_spec->eth.val.ether_type);
eth_type         3149 drivers/infiniband/hw/mlx5/main.c 		ipv4_spec_valid = (eth_type == ETH_P_IP) &&
eth_type         3151 drivers/infiniband/hw/mlx5/main.c 		ipv6_spec_valid = (eth_type == ETH_P_IPV6) &&
eth_type         3155 drivers/infiniband/hw/mlx5/main.c 			     (((eth_type == ETH_P_MPLS_UC) ||
eth_type         3156 drivers/infiniband/hw/mlx5/main.c 			       (eth_type == ETH_P_MPLS_MC)) && match_ipv);
eth_type          108 drivers/infiniband/hw/ocrdma/ocrdma_ah.c 		eth.eth_type = cpu_to_be16(0x8100);
eth_type          115 drivers/infiniband/hw/ocrdma/ocrdma_ah.c 		eth.eth_type = cpu_to_be16(proto_num);
eth_type         1896 drivers/infiniband/hw/ocrdma/ocrdma_sli.h 	__be16 eth_type;
eth_type         1902 drivers/infiniband/hw/ocrdma/ocrdma_sli.h 	__be16 eth_type;
eth_type         1795 drivers/net/ethernet/chelsio/cxgb/sge.c 		int eth_type;
eth_type         1800 drivers/net/ethernet/chelsio/cxgb/sge.c 		eth_type = skb_network_offset(skb) == ETH_HLEN ?
eth_type         1808 drivers/net/ethernet/chelsio/cxgb/sge.c 		hdr->eth_type_mss = htons(MK_ETH_TYPE_MSS(eth_type,
eth_type         1198 drivers/net/ethernet/chelsio/cxgb3/sge.c 		int eth_type;
eth_type         1204 drivers/net/ethernet/chelsio/cxgb3/sge.c 		eth_type = skb_network_offset(skb) == ETH_HLEN ?
eth_type         1206 drivers/net/ethernet/chelsio/cxgb3/sge.c 		tso_info |= V_LSO_ETH_TYPE(eth_type) |
eth_type         1685 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	int eth_type;
eth_type         1689 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	eth_type = ntohs(ethh->h_proto);
eth_type         1690 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	if (eth_type == ETH_P_8021Q) {
eth_type         1694 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		eth_type = ntohs(vethh->h_vlan_encapsulated_proto);
eth_type         1712 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		   eth_type, ethh->h_source);
eth_type         1719 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	if (eth_type == ETH_P_IP) {
eth_type         1733 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	} else if (eth_type == ETH_P_IPV6) {
eth_type         1754 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		DP_NOTICE(p_hwfn, "Unexpected ethertype on ll2 %x\n", eth_type);
eth_type           47 drivers/net/ethernet/rocker/rocker_ofdpa.c 			__be16 eth_type;
eth_type           56 drivers/net/ethernet/rocker/rocker_ofdpa.c 			__be16 eth_type;
eth_type           80 drivers/net/ethernet/rocker/rocker_ofdpa.c 			__be16 eth_type;
eth_type          356 drivers/net/ethernet/rocker/rocker_ofdpa.c 				entry->key.term_mac.eth_type))
eth_type          386 drivers/net/ethernet/rocker/rocker_ofdpa.c 				entry->key.ucast_routing.eth_type))
eth_type          461 drivers/net/ethernet/rocker/rocker_ofdpa.c 				entry->key.acl.eth_type))
eth_type          470 drivers/net/ethernet/rocker/rocker_ofdpa.c 	switch (ntohs(entry->key.acl.eth_type)) {
eth_type          882 drivers/net/ethernet/rocker/rocker_ofdpa.c 				   __be16 eth_type, const u8 *eth_dst,
eth_type          906 drivers/net/ethernet/rocker/rocker_ofdpa.c 	entry->key.term_mac.eth_type = eth_type;
eth_type          971 drivers/net/ethernet/rocker/rocker_ofdpa.c 					 __be16 eth_type, __be32 dst,
eth_type          985 drivers/net/ethernet/rocker/rocker_ofdpa.c 	entry->key.ucast_routing.eth_type = eth_type;
eth_type         1001 drivers/net/ethernet/rocker/rocker_ofdpa.c 			      __be16 eth_type, __be16 vlan_id,
eth_type         1035 drivers/net/ethernet/rocker/rocker_ofdpa.c 	entry->key.acl.eth_type = eth_type;
eth_type         1266 drivers/net/ethernet/rocker/rocker_ofdpa.c 	__be16 eth_type = htons(ETH_P_IP);
eth_type         1331 drivers/net/ethernet/rocker/rocker_ofdpa.c 						    eth_type, ip_addr,
eth_type         1546 drivers/net/ethernet/rocker/rocker_ofdpa.c 	__be16 eth_type;
eth_type         1562 drivers/net/ethernet/rocker/rocker_ofdpa.c 		.eth_type = htons(ETH_P_ARP),
eth_type         1569 drivers/net/ethernet/rocker/rocker_ofdpa.c 		.eth_type = htons(ETH_P_IP),
eth_type         1577 drivers/net/ethernet/rocker/rocker_ofdpa.c 		.eth_type = htons(ETH_P_IPV6),
eth_type         1614 drivers/net/ethernet/rocker/rocker_ofdpa.c 				 ctrl->eth_type,
eth_type         1661 drivers/net/ethernet/rocker/rocker_ofdpa.c 				      ctrl->eth_type, ctrl->eth_dst,
eth_type         2021 drivers/net/ethernet/rocker/rocker_ofdpa.c 	__be16 eth_type;
eth_type         2030 drivers/net/ethernet/rocker/rocker_ofdpa.c 	eth_type = htons(ETH_P_IP);
eth_type         2032 drivers/net/ethernet/rocker/rocker_ofdpa.c 				      in_pport_mask, eth_type,
eth_type         2039 drivers/net/ethernet/rocker/rocker_ofdpa.c 	eth_type = htons(ETH_P_IPV6);
eth_type         2041 drivers/net/ethernet/rocker/rocker_ofdpa.c 				      in_pport_mask, eth_type,
eth_type         2272 drivers/net/ethernet/rocker/rocker_ofdpa.c 	__be16 eth_type = htons(ETH_P_IP);
eth_type         2302 drivers/net/ethernet/rocker/rocker_ofdpa.c 	err = ofdpa_flow_tbl_ucast4_routing(ofdpa_port, eth_type, dst,
eth_type           67 drivers/net/wireless/ath/ath6kl/common.h 	__be16 eth_type;
eth_type          141 drivers/net/wireless/ath/ath6kl/txrx.c 			ether_type = be16_to_cpu(llc_hdr->eth_type);
eth_type          201 drivers/net/wireless/ath/ath6kl/wmi.c 	llc_hdr->eth_type = type;
eth_type          332 drivers/net/wireless/ath/ath6kl/wmi.c 		if (llc_hdr->eth_type == htons(ip_type)) {
eth_type          420 drivers/net/wireless/ath/ath6kl/wmi.c 	eth_hdr.h_proto = llc_hdr->eth_type;
eth_type          468 drivers/net/wireless/ath/ath6kl/wmi.c 	eth_hdr.h_proto = llc_hdr->eth_type;
eth_type           80 drivers/staging/most/net/net.c 	const u8 *eth_type = skb->data + 12;
eth_type          118 drivers/staging/most/net/net.c 	*buff++ = eth_type[0];
eth_type          119 drivers/staging/most/net/net.c 	*buff++ = eth_type[1];
eth_type         1265 drivers/staging/rtl8188eu/core/rtw_recv.c 	u16	eth_type, len;
eth_type         1298 drivers/staging/rtl8188eu/core/rtw_recv.c 	eth_type = ntohs(be_tmp); /* pattrib->ether_type */
eth_type         1299 drivers/staging/rtl8188eu/core/rtw_recv.c 	pattrib->eth_type = eth_type;
eth_type         1493 drivers/staging/rtl8188eu/core/rtw_recv.c 	u16	eth_type, nSubframe_Length;
eth_type         1568 drivers/staging/rtl8188eu/core/rtw_recv.c 		eth_type = get_unaligned_be16(&sub_skb->data[6]);
eth_type         1571 drivers/staging/rtl8188eu/core/rtw_recv.c 			  eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) ||
eth_type         1738 drivers/staging/rtl8188eu/core/rtw_recv.c 		if ((pattrib->qos != 1) || (pattrib->eth_type == 0x0806) ||
eth_type          109 drivers/staging/rtl8188eu/include/rtw_recv.h 	u16 eth_type;
eth_type          266 drivers/staging/rtl8188eu/os_dep/os_intfs.c 	__be16 eth_type;
eth_type          270 drivers/staging/rtl8188eu/os_dep/os_intfs.c 	memcpy(&eth_type, pdata + (ETH_ALEN << 1), 2);
eth_type          272 drivers/staging/rtl8188eu/os_dep/os_intfs.c 	switch (eth_type) {
eth_type          325 drivers/staging/rtl8712/rtl8712_recv.c 	u16	eth_type, nSubframe_Length;
eth_type          380 drivers/staging/rtl8712/rtl8712_recv.c 		eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7];
eth_type          383 drivers/staging/rtl8712/rtl8712_recv.c 		   eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) ||
eth_type         1580 drivers/staging/rtl8723bs/core/rtw_recv.c 			u16 eth_type;
eth_type         1585 drivers/staging/rtl8723bs/core/rtw_recv.c 			memcpy(&eth_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE, 2);
eth_type         1586 drivers/staging/rtl8723bs/core/rtw_recv.c 			eth_type = ntohs((unsigned short) eth_type);
eth_type         1587 drivers/staging/rtl8723bs/core/rtw_recv.c 			if ((bDumpRxPkt == 4) && (eth_type == 0x888e))
eth_type         1613 drivers/staging/rtl8723bs/core/rtw_recv.c 	u16 eth_type, len;
eth_type         1648 drivers/staging/rtl8723bs/core/rtw_recv.c 	eth_type = ntohs(be_tmp); /* pattrib->ether_type */
eth_type         1649 drivers/staging/rtl8723bs/core/rtw_recv.c 	pattrib->eth_type = eth_type;
eth_type         1652 drivers/staging/rtl8723bs/core/rtw_recv.c 	if (0x8899 == pattrib->eth_type) {
eth_type         1655 drivers/staging/rtl8723bs/core/rtw_recv.c 		DBG_871X("wlan rx: got eth_type = 0x%x\n", pattrib->eth_type);
eth_type         1688 drivers/staging/rtl8723bs/core/rtw_recv.c 		eth_type = 0x8712;
eth_type          156 drivers/staging/rtl8723bs/include/rtw_recv.h 	u16 eth_type;
eth_type          416 drivers/staging/rtl8723bs/os_dep/os_intfs.c 	__be16	eth_type;
eth_type          420 drivers/staging/rtl8723bs/os_dep/os_intfs.c 	memcpy(&eth_type, pdata + (ETH_ALEN << 1), 2);
eth_type          422 drivers/staging/rtl8723bs/os_dep/os_intfs.c 	switch (be16_to_cpu(eth_type)) {
eth_type           55 drivers/staging/rtl8723bs/os_dep/recv_linux.c 	u16 eth_type;
eth_type           77 drivers/staging/rtl8723bs/os_dep/recv_linux.c 	eth_type = RTW_GET_BE16(&sub_skb->data[6]);
eth_type           81 drivers/staging/rtl8723bs/os_dep/recv_linux.c 		  eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) ||
eth_type          224 drivers/staging/rtl8723bs/os_dep/recv_linux.c 	DBG_871X("eth rx: got eth_type = 0x%x\n", pattrib->eth_type);
eth_type          285 drivers/staging/rtl8723bs/os_dep/recv_linux.c 	if (0x8899 == pattrib->eth_type) {
eth_type          163 include/net/erspan.h 		__be16 eth_type;
eth_type          257 include/net/erspan.h 		__be16 eth_type;
eth_type           18 include/net/mpls.h static inline bool eth_p_mpls(__be16 eth_type)
eth_type           20 include/net/mpls.h 	return eth_type == htons(ETH_P_MPLS_UC) ||
eth_type           21 include/net/mpls.h 		eth_type == htons(ETH_P_MPLS_MC);
eth_type           14 include/net/tc_act/tc_ife.h 	u16 eth_type;
eth_type           16 include/net/tc_act/tc_skbmod.h 	u16	eth_type;
eth_type         1125 net/openvswitch/flow_netlink.c 	__be16 eth_type;
eth_type         1127 net/openvswitch/flow_netlink.c 	eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]);
eth_type         1130 net/openvswitch/flow_netlink.c 		eth_type = htons(0xffff);
eth_type         1131 net/openvswitch/flow_netlink.c 	} else if (!eth_proto_is_802_3(eth_type)) {
eth_type         1133 net/openvswitch/flow_netlink.c 				ntohs(eth_type), ETH_P_802_3_MIN);
eth_type         1137 net/openvswitch/flow_netlink.c 	SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask);
eth_type         1934 net/openvswitch/flow_netlink.c 	__be16 eth_type = !is_mask ? vh->tpid : htons(0xffff);
eth_type         1936 net/openvswitch/flow_netlink.c 	if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, eth_type) ||
eth_type         2409 net/openvswitch/flow_netlink.c 				  __be16 eth_type, __be16 vlan_tci, bool log);
eth_type         2414 net/openvswitch/flow_netlink.c 				    __be16 eth_type, __be16 vlan_tci,
eth_type         2466 net/openvswitch/flow_netlink.c 				     eth_type, vlan_tci, log);
eth_type         2480 net/openvswitch/flow_netlink.c 				   __be16 eth_type, __be16 vlan_tci,
eth_type         2501 net/openvswitch/flow_netlink.c 				     eth_type, vlan_tci, log);
eth_type         2667 net/openvswitch/flow_netlink.c 			u8 mac_proto, __be16 eth_type, bool masked, bool log)
eth_type         2715 net/openvswitch/flow_netlink.c 		if (eth_type != htons(ETH_P_IP))
eth_type         2736 net/openvswitch/flow_netlink.c 		if (eth_type != htons(ETH_P_IPV6))
eth_type         2764 net/openvswitch/flow_netlink.c 		if ((eth_type != htons(ETH_P_IP) &&
eth_type         2765 net/openvswitch/flow_netlink.c 		     eth_type != htons(ETH_P_IPV6)) ||
eth_type         2772 net/openvswitch/flow_netlink.c 		if ((eth_type != htons(ETH_P_IP) &&
eth_type         2773 net/openvswitch/flow_netlink.c 		     eth_type != htons(ETH_P_IPV6)) ||
eth_type         2780 net/openvswitch/flow_netlink.c 		if (!eth_p_mpls(eth_type))
eth_type         2785 net/openvswitch/flow_netlink.c 		if ((eth_type != htons(ETH_P_IP) &&
eth_type         2786 net/openvswitch/flow_netlink.c 		     eth_type != htons(ETH_P_IPV6)) ||
eth_type         2793 net/openvswitch/flow_netlink.c 		if (eth_type != htons(ETH_P_NSH))
eth_type         2866 net/openvswitch/flow_netlink.c 					   __be16 eth_type, __be16 vlan_tci,
eth_type         2915 net/openvswitch/flow_netlink.c 				     eth_type, vlan_tci, log);
eth_type         2928 net/openvswitch/flow_netlink.c 				     eth_type, vlan_tci, log);
eth_type         2955 net/openvswitch/flow_netlink.c 				  __be16 eth_type, __be16 vlan_tci, bool log)
eth_type         3061 net/openvswitch/flow_netlink.c 			    (eth_type != htons(ETH_P_IP) &&
eth_type         3062 net/openvswitch/flow_netlink.c 			     eth_type != htons(ETH_P_IPV6) &&
eth_type         3063 net/openvswitch/flow_netlink.c 			     eth_type != htons(ETH_P_ARP) &&
eth_type         3064 net/openvswitch/flow_netlink.c 			     eth_type != htons(ETH_P_RARP) &&
eth_type         3065 net/openvswitch/flow_netlink.c 			     !eth_p_mpls(eth_type)))
eth_type         3067 net/openvswitch/flow_netlink.c 			eth_type = mpls->mpls_ethertype;
eth_type         3073 net/openvswitch/flow_netlink.c 			    !eth_p_mpls(eth_type))
eth_type         3085 net/openvswitch/flow_netlink.c 			eth_type = htons(0);
eth_type         3090 net/openvswitch/flow_netlink.c 					   &skip_copy, mac_proto, eth_type,
eth_type         3098 net/openvswitch/flow_netlink.c 					   &skip_copy, mac_proto, eth_type,
eth_type         3108 net/openvswitch/flow_netlink.c 						       eth_type, vlan_tci,
eth_type         3146 net/openvswitch/flow_netlink.c 				next_proto = tun_p_from_eth_p(eth_type);
eth_type         3158 net/openvswitch/flow_netlink.c 			if (eth_type != htons(ETH_P_NSH))
eth_type         3178 net/openvswitch/flow_netlink.c 						      eth_type, vlan_tci,
eth_type         3190 net/openvswitch/flow_netlink.c 							      eth_type,
eth_type          568 net/sched/act_ife.c 		p->eth_type = ife_type;
eth_type          654 net/sched/act_ife.c 	if (nla_put(skb, TCA_IFE_TYPE, 2, &p->eth_type))
eth_type          834 net/sched/act_ife.c 	oethh->h_proto = htons(p->eth_type);
eth_type           55 net/sched/act_skbmod.c 		eth_hdr(skb)->h_proto = p->eth_type;
eth_type           95 net/sched/act_skbmod.c 	u16 eth_type = 0;
eth_type          120 net/sched/act_skbmod.c 		eth_type = nla_get_u16(tb[TCA_SKBMOD_ETYPE]);
eth_type          182 net/sched/act_skbmod.c 		p->eth_type = htons(eth_type);
eth_type          241 net/sched/act_skbmod.c 	    nla_put_u16(skb, TCA_SKBMOD_ETYPE, ntohs(p->eth_type)))
eth_type          115 samples/bpf/xdp_redirect_cpu_kern.c 	u16 eth_type;
eth_type          122 samples/bpf/xdp_redirect_cpu_kern.c 	eth_type = eth->h_proto;
eth_type          125 samples/bpf/xdp_redirect_cpu_kern.c 	if (unlikely(ntohs(eth_type) < ETH_P_802_3_MIN))
eth_type          129 samples/bpf/xdp_redirect_cpu_kern.c 	if (eth_type == htons(ETH_P_8021Q) || eth_type == htons(ETH_P_8021AD)) {
eth_type          136 samples/bpf/xdp_redirect_cpu_kern.c 		eth_type = vlan_hdr->h_vlan_encapsulated_proto;
eth_type          139 samples/bpf/xdp_redirect_cpu_kern.c 	if (eth_type == htons(ETH_P_8021Q) || eth_type == htons(ETH_P_8021AD)) {
eth_type          146 samples/bpf/xdp_redirect_cpu_kern.c 		eth_type = vlan_hdr->h_vlan_encapsulated_proto;
eth_type          149 samples/bpf/xdp_redirect_cpu_kern.c 	*eth_proto = ntohs(eth_type);
eth_type          239 samples/bpf/xdp_redirect_cpu_kern.c 	u16 eth_type;
eth_type          259 samples/bpf/xdp_redirect_cpu_kern.c 	eth_type = eth->h_proto;
eth_type          260 samples/bpf/xdp_redirect_cpu_kern.c 	if (ntohs(eth_type) < ETH_P_802_3_MIN) {
eth_type           59 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 	__u16 eth_type;
eth_type           67 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 	eth_type = eth->h_proto;
eth_type           70 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 	if (eth_type == bpf_htons(ETH_P_8021Q)
eth_type           71 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 	    || eth_type == bpf_htons(ETH_P_8021AD)) {
eth_type           78 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 		eth_type        = vlan_hdr->h_vlan_encapsulated_proto;
eth_type           83 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 	if (eth_type == bpf_htons(ETH_P_8021Q)
eth_type           84 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 	    || eth_type == bpf_htons(ETH_P_8021AD)) {
eth_type           91 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 		eth_type        = vlan_hdr->h_vlan_encapsulated_proto;
eth_type           95 tools/testing/selftests/bpf/progs/test_xdp_vlan.c 	pkt->l3_proto = bpf_ntohs(eth_type); /* Convert to host-byte-order */