Home
last modified time | relevance | path

Searched refs:eth_type (Results 1 – 20 of 20) sorted by relevance

/linux-4.4.14/include/net/
Dmpls.h22 static inline bool eth_p_mpls(__be16 eth_type) in eth_p_mpls() argument
24 return eth_type == htons(ETH_P_MPLS_UC) || in eth_p_mpls()
25 eth_type == htons(ETH_P_MPLS_MC); in eth_p_mpls()
/linux-4.4.14/net/openvswitch/
Dflow_netlink.c942 __be16 eth_type; in ovs_key_from_nlattrs() local
944 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in ovs_key_from_nlattrs()
947 eth_type = htons(0xffff); in ovs_key_from_nlattrs()
948 } else if (!eth_proto_is_802_3(eth_type)) { in ovs_key_from_nlattrs()
950 ntohs(eth_type), ETH_P_802_3_MIN); in ovs_key_from_nlattrs()
954 SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask); in ovs_key_from_nlattrs()
1270 __be16 eth_type = 0; in ovs_nla_get_match() local
1281 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in ovs_nla_get_match()
1283 if (eth_type == htons(0xffff)) { in ovs_nla_get_match()
1292 ntohs(eth_type)); in ovs_nla_get_match()
[all …]
Dflow.c308 __be16 eth_type; /* ETH_P_8021Q */ in parse_vlan() member
/linux-4.4.14/Documentation/networking/
Dopenvswitch.txt86 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-4.4.14/drivers/net/wireless/ath/ath6kl/
Dcommon.h67 __be16 eth_type; member
Dwmi.c201 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()
Dtxrx.c141 ether_type = be16_to_cpu(llc_hdr->eth_type); in ath6kl_process_uapsdq()
/linux-4.4.14/drivers/net/ethernet/rocker/
Drocker.c71 __be16 eth_type; member
80 __be16 eth_type; member
104 __be16 eth_type; member
1968 entry->key.term_mac.eth_type)) in rocker_cmd_flow_tbl_add_term_mac()
1998 entry->key.ucast_routing.eth_type)) in rocker_cmd_flow_tbl_add_ucast_routing()
2073 entry->key.acl.eth_type)) in rocker_cmd_flow_tbl_add_acl()
2082 switch (ntohs(entry->key.acl.eth_type)) { in rocker_cmd_flow_tbl_add_acl()
2558 __be16 eth_type, const u8 *eth_dst, in rocker_flow_tbl_term_mac() argument
2582 entry->key.term_mac.eth_type = eth_type; in rocker_flow_tbl_term_mac()
2648 __be16 eth_type, __be32 dst, in rocker_flow_tbl_ucast4_routing() argument
[all …]
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c80 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr()
87 eth.eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr()
Docrdma_sli.h1882 __be16 eth_type; member
1888 __be16 eth_type; member
/linux-4.4.14/drivers/staging/most/aim-network/
Dnetworking.c86 const u8 *eth_type = skb->data + 12; in skb_to_mamac() local
119 *buff++ = eth_type[0]; in skb_to_mamac()
120 *buff++ = eth_type[1]; in skb_to_mamac()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_recv.c1356 u16 eth_type, len; in wlanhdr_to_ethhdr() local
1391 eth_type = ntohs(be_tmp); /* pattrib->ether_type */ in wlanhdr_to_ethhdr()
1392 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr()
1399 eth_type = 0x8712; in wlanhdr_to_ethhdr()
1600 u16 eth_type, nSubframe_Length; in amsdu_to_msdu() local
1678 eth_type = get_unaligned_be16(&sub_skb->data[6]); in amsdu_to_msdu()
1681 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in amsdu_to_msdu()
1850 if ((pattrib->qos != 1) || (pattrib->eth_type == 0x0806) || in recv_indicatepkt_reorder()
/linux-4.4.14/drivers/staging/rtl8723au/core/
Drtw_recv.c1499 u16 eth_type, len, hdrlen; in wlanhdr_to_ethhdr() local
1514 eth_type = (psnap[6] << 8) | psnap[7]; in wlanhdr_to_ethhdr()
1518 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in wlanhdr_to_ethhdr()
1527 eth_type = (psnap[0] << 8) | psnap[1]; in wlanhdr_to_ethhdr()
1536 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr()
1542 eth_type = 0x8712; in wlanhdr_to_ethhdr()
1992 if ((pattrib->qos!= 1) || (pattrib->eth_type == ETH_P_ARP) || in recv_indicatepkt_reorder()
/linux-4.4.14/drivers/staging/rtl8723au/include/
Drtw_recv.h120 u16 eth_type; member
/linux-4.4.14/drivers/staging/rtl8712/
Drtl8712_recv.c332 u16 eth_type, nSubframe_Length; in amsdu_to_msdu() local
388 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; in amsdu_to_msdu()
391 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in amsdu_to_msdu()
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Dos_intfs.c692 __be16 eth_type; in rtw_recv_select_queue() local
696 memcpy(&eth_type, pdata+(ETH_ALEN<<1), 2); in rtw_recv_select_queue()
698 switch (eth_type) { in rtw_recv_select_queue()
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Drtw_recv.h127 u16 eth_type; member
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
Dos_intfs.c315 u16 eth_type = get_unaligned_be16(&eth->h_proto); in rtw_recv_select_queue23a() local
319 switch (eth_type) { in rtw_recv_select_queue23a()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1797 int eth_type; in t1_start_xmit() local
1802 eth_type = skb_network_offset(skb) == ETH_HLEN ? in t1_start_xmit()
1810 hdr->eth_type_mss = htons(MK_ETH_TYPE_MSS(eth_type, in t1_start_xmit()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c1156 int eth_type; in write_tx_pkt_wr() local
1162 eth_type = skb_network_offset(skb) == ETH_HLEN ? in write_tx_pkt_wr()
1164 tso_info |= V_LSO_ETH_TYPE(eth_type) | in write_tx_pkt_wr()