/Linux-v4.19/include/net/ |
D | mpls.h | 26 static inline bool eth_p_mpls(__be16 eth_type) in eth_p_mpls() argument 28 return eth_type == htons(ETH_P_MPLS_UC) || in eth_p_mpls() 29 eth_type == htons(ETH_P_MPLS_MC); in eth_p_mpls()
|
D | erspan.h | 163 __be16 eth_type; in erspan_build_header() member 257 __be16 eth_type; in erspan_build_header_v2() member
|
/Linux-v4.19/samples/bpf/ |
D | xdp_redirect_cpu_kern.c | 115 u16 eth_type; in parse_eth() local 122 eth_type = eth->h_proto; in parse_eth() 125 if (unlikely(ntohs(eth_type) < ETH_P_802_3_MIN)) in parse_eth() 129 if (eth_type == htons(ETH_P_8021Q) || eth_type == htons(ETH_P_8021AD)) { in parse_eth() 136 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth() 139 if (eth_type == htons(ETH_P_8021Q) || eth_type == htons(ETH_P_8021AD)) { in parse_eth() 146 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth() 149 *eth_proto = ntohs(eth_type); in parse_eth() 239 u16 eth_type; in xdp_prognum1_touch_data() local 259 eth_type = eth->h_proto; in xdp_prognum1_touch_data() [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/ |
D | recv_linux.c | 67 u16 eth_type; in rtw_os_alloc_msdu_pkt() local 95 eth_type = RTW_GET_BE16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt() 99 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in rtw_os_alloc_msdu_pkt() 259 DBG_871X("eth rx: got eth_type = 0x%x\n", pattrib->eth_type); in rtw_os_ksocket_send() 323 if (0x8899 == pattrib->eth_type) in rtw_recv_indicatepkt()
|
D | os_intfs.c | 425 __be16 eth_type; in rtw_recv_select_queue() local 429 memcpy(ð_type, pdata + (ETH_ALEN << 1), 2); in rtw_recv_select_queue() 431 switch (be16_to_cpu(eth_type)) { in rtw_recv_select_queue()
|
/Linux-v4.19/net/sched/ |
D | act_skbmod.c | 58 eth_hdr(skb)->h_proto = p->eth_type; in tcf_skbmod_act() 95 u16 eth_type = 0; in tcf_skbmod_init() local 120 eth_type = nla_get_u16(tb[TCA_SKBMOD_ETYPE]); in tcf_skbmod_init() 178 p->eth_type = htons(eth_type); in tcf_skbmod_init() 229 nla_put_u16(skb, TCA_SKBMOD_ETYPE, ntohs(p->eth_type))) in tcf_skbmod_dump()
|
D | act_ife.c | 556 p->eth_type = ife_type; in tcf_ife_init() 644 if (nla_put(skb, TCA_IFE_TYPE, 2, &p->eth_type)) in tcf_ife_dump() 824 oethh->h_proto = htons(p->eth_type); in tcf_ife_encode()
|
/Linux-v4.19/net/openvswitch/ |
D | flow_netlink.c | 1113 __be16 eth_type; in parse_eth_type_from_nlattrs() local 1115 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in parse_eth_type_from_nlattrs() 1118 eth_type = htons(0xffff); in parse_eth_type_from_nlattrs() 1119 } else if (!eth_proto_is_802_3(eth_type)) { in parse_eth_type_from_nlattrs() 1121 ntohs(eth_type), ETH_P_802_3_MIN); in parse_eth_type_from_nlattrs() 1125 SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask); in parse_eth_type_from_nlattrs() 1922 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan() local 1924 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, eth_type) || in ovs_nla_put_vlan() 2396 __be16 eth_type, __be16 vlan_tci, bool log); 2401 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_sample() argument [all …]
|
/Linux-v4.19/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 50 __be16 eth_type; member 59 __be16 eth_type; member 83 __be16 eth_type; member 359 entry->key.term_mac.eth_type)) in ofdpa_cmd_flow_tbl_add_term_mac() 389 entry->key.ucast_routing.eth_type)) in ofdpa_cmd_flow_tbl_add_ucast_routing() 464 entry->key.acl.eth_type)) in ofdpa_cmd_flow_tbl_add_acl() 473 switch (ntohs(entry->key.acl.eth_type)) { in ofdpa_cmd_flow_tbl_add_acl() 885 __be16 eth_type, const u8 *eth_dst, in ofdpa_flow_tbl_term_mac() argument 909 entry->key.term_mac.eth_type = eth_type; in ofdpa_flow_tbl_term_mac() 974 __be16 eth_type, __be32 dst, in ofdpa_flow_tbl_ucast4_routing() argument [all …]
|
/Linux-v4.19/Documentation/networking/ |
D | openvswitch.txt | 86 eth_type(0x0800), ipv4(src=172.16.0.20, dst=172.18.0.52, proto=17, tos=0, 91 in_port(1), eth(...), eth_type(0x0800), ipv4(...), tcp(...) 169 eth(...), eth_type(0x8100) 177 eth(...), vlan(vid=10, pcp=0), eth_type(0x0800), ip(proto=6, ...), tcp(...) 192 eth(...), eth_type(0x8100), vlan(vid=10, pcp=0), encap(eth_type(0x0800), 195 Notice how the "eth_type", "ip", and "tcp" flow key attributes are 198 and therefore will not misinterpret them. (Also, the outer eth_type 220 eth(...), eth_type(0x0800), ip(proto=6, ...), tcp(src=0, dst=0) 227 eth(...), eth_type(0x8100), vlan(0), encap()
|
/Linux-v4.19/include/net/tc_act/ |
D | tc_skbmod.h | 20 u16 eth_type; member
|
D | tc_ife.h | 13 u16 eth_type; member
|
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/ |
D | common.h | 67 __be16 eth_type; member
|
D | wmi.c | 201 llc_hdr->eth_type = type; in ath6kl_wmi_dix_2_dot3() 332 if (llc_hdr->eth_type == htons(ip_type)) { in ath6kl_wmi_implicit_create_pstream() 420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove() 468 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot3_2_dix()
|
/Linux-v4.19/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 109 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr() 116 eth.eth_type = cpu_to_be16(proto_num); in set_av_attr()
|
D | ocrdma_sli.h | 1896 __be16 eth_type; member 1902 __be16 eth_type; member
|
/Linux-v4.19/drivers/staging/most/net/ |
D | net.c | 80 const u8 *eth_type = skb->data + 12; in skb_to_mamac() local 113 *buff++ = eth_type[0]; in skb_to_mamac() 114 *buff++ = eth_type[1]; in skb_to_mamac()
|
/Linux-v4.19/drivers/staging/rtl8188eu/core/ |
D | rtw_recv.c | 1270 u16 eth_type, len; in wlanhdr_to_ethhdr() local 1303 eth_type = ntohs(be_tmp); /* pattrib->ether_type */ in wlanhdr_to_ethhdr() 1304 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr() 1503 u16 eth_type, nSubframe_Length; in amsdu_to_msdu() local 1578 eth_type = get_unaligned_be16(&sub_skb->data[6]); in amsdu_to_msdu() 1581 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in amsdu_to_msdu() 1748 if ((pattrib->qos != 1) || (pattrib->eth_type == 0x0806) || in recv_indicatepkt_reorder()
|
/Linux-v4.19/drivers/staging/rtl8723bs/core/ |
D | rtw_recv.c | 1580 u16 eth_type; in validate_recv_frame() local 1585 memcpy(ð_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE, 2); in validate_recv_frame() 1586 eth_type = ntohs((unsigned short) eth_type); in validate_recv_frame() 1587 if ((bDumpRxPkt == 4) && (eth_type == 0x888e)) in validate_recv_frame() 1613 u16 eth_type, len; in wlanhdr_to_ethhdr() local 1649 eth_type = ntohs(be_tmp); /* pattrib->ether_type */ in wlanhdr_to_ethhdr() 1650 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr() 1653 if (0x8899 == pattrib->eth_type) { in wlanhdr_to_ethhdr() 1656 DBG_871X("wlan rx: got eth_type = 0x%x\n", pattrib->eth_type); in wlanhdr_to_ethhdr() 1689 eth_type = 0x8712; in wlanhdr_to_ethhdr()
|
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/ |
D | os_intfs.c | 266 __be16 eth_type; in rtw_recv_select_queue() local 270 memcpy(ð_type, pdata+(ETH_ALEN<<1), 2); in rtw_recv_select_queue() 272 switch (eth_type) { in rtw_recv_select_queue()
|
/Linux-v4.19/drivers/staging/rtl8188eu/include/ |
D | rtw_recv.h | 109 u16 eth_type; member
|
/Linux-v4.19/drivers/staging/rtl8712/ |
D | rtl8712_recv.c | 341 u16 eth_type, nSubframe_Length; in amsdu_to_msdu() local 396 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; in amsdu_to_msdu() 399 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in amsdu_to_msdu()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_iwarp.c | 1678 int eth_type; in qed_iwarp_parse_rx_pkt() local 1682 eth_type = ntohs(ethh->h_proto); in qed_iwarp_parse_rx_pkt() 1683 if (eth_type == ETH_P_8021Q) { in qed_iwarp_parse_rx_pkt() 1687 eth_type = ntohs(vethh->h_vlan_encapsulated_proto); in qed_iwarp_parse_rx_pkt() 1696 eth_type, ethh->h_source); in qed_iwarp_parse_rx_pkt() 1703 if (eth_type == ETH_P_IP) { in qed_iwarp_parse_rx_pkt() 1717 } else if (eth_type == ETH_P_IPV6) { in qed_iwarp_parse_rx_pkt() 1738 DP_NOTICE(p_hwfn, "Unexpected ethertype on ll2 %x\n", eth_type); in qed_iwarp_parse_rx_pkt()
|
/Linux-v4.19/drivers/staging/rtl8723bs/include/ |
D | rtw_recv.h | 156 u16 eth_type; member
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 1796 int eth_type; in t1_start_xmit() local 1801 eth_type = skb_network_offset(skb) == ETH_HLEN ? in t1_start_xmit() 1809 hdr->eth_type_mss = htons(MK_ETH_TYPE_MSS(eth_type, in t1_start_xmit()
|