/linux-4.4.14/include/net/ |
H A D | mpls.h | 22 static inline bool eth_p_mpls(__be16 eth_type) eth_p_mpls() argument 24 return eth_type == htons(ETH_P_MPLS_UC) || eth_p_mpls() 25 eth_type == htons(ETH_P_MPLS_MC); eth_p_mpls()
|
/linux-4.4.14/net/openvswitch/ |
H A D | flow_netlink.c | 942 __be16 eth_type; ovs_key_from_nlattrs() local 944 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); ovs_key_from_nlattrs() 947 eth_type = htons(0xffff); ovs_key_from_nlattrs() 948 } else if (!eth_proto_is_802_3(eth_type)) { ovs_key_from_nlattrs() 950 ntohs(eth_type), ETH_P_802_3_MIN); ovs_key_from_nlattrs() 954 SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask); ovs_key_from_nlattrs() 1270 __be16 eth_type = 0; ovs_nla_get_match() local 1281 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); ovs_nla_get_match() 1283 if (eth_type == htons(0xffff)) { ovs_nla_get_match() 1292 ntohs(eth_type)); ovs_nla_get_match() 1467 __be16 eth_type; __ovs_nla_put_key() local 1468 eth_type = !is_mask ? htons(ETH_P_8021Q) : htons(0xffff); __ovs_nla_put_key() 1469 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, eth_type) || __ovs_nla_put_key() 1829 __be16 eth_type, __be16 vlan_tci, bool log); 1834 __be16 eth_type, __be16 vlan_tci, bool log) validate_and_copy_sample() 1872 eth_type, vlan_tci, log); 2007 bool *skip_copy, __be16 eth_type, bool masked, bool log) validate_set() 2041 if (eth_p_mpls(eth_type)) validate_set() 2054 if (eth_type != htons(ETH_P_IP)) validate_set() 2075 if (eth_type != htons(ETH_P_IPV6)) validate_set() 2103 if ((eth_type != htons(ETH_P_IP) && validate_set() 2104 eth_type != htons(ETH_P_IPV6)) || validate_set() 2111 if ((eth_type != htons(ETH_P_IP) && validate_set() 2112 eth_type != htons(ETH_P_IPV6)) || validate_set() 2119 if (!eth_p_mpls(eth_type)) validate_set() 2124 if ((eth_type != htons(ETH_P_IP) && validate_set() 2125 eth_type != htons(ETH_P_IPV6)) || validate_set() 2205 __be16 eth_type, __be16 vlan_tci, bool log) __ovs_nla_copy_actions() 2292 (eth_type != htons(ETH_P_IP) && nla_for_each_nested() 2293 eth_type != htons(ETH_P_IPV6) && nla_for_each_nested() 2294 eth_type != htons(ETH_P_ARP) && nla_for_each_nested() 2295 eth_type != htons(ETH_P_RARP) && nla_for_each_nested() 2296 !eth_p_mpls(eth_type))) nla_for_each_nested() 2298 eth_type = mpls->mpls_ethertype; nla_for_each_nested() 2304 !eth_p_mpls(eth_type)) nla_for_each_nested() 2309 * eth_type is valid and thus set actions could nla_for_each_nested() 2316 eth_type = htons(0); nla_for_each_nested() 2321 &skip_copy, eth_type, false, log); nla_for_each_nested() 2328 &skip_copy, eth_type, true, log); nla_for_each_nested() 2335 eth_type, vlan_tci, log); nla_for_each_nested() 1831 validate_and_copy_sample(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, int depth, struct sw_flow_actions **sfa, __be16 eth_type, __be16 vlan_tci, bool log) validate_and_copy_sample() argument 2004 validate_set(const struct nlattr *a, const struct sw_flow_key *flow_key, struct sw_flow_actions **sfa, bool *skip_copy, __be16 eth_type, bool masked, bool log) validate_set() argument 2202 __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, int depth, struct sw_flow_actions **sfa, __be16 eth_type, __be16 vlan_tci, bool log) __ovs_nla_copy_actions() argument
|
H A D | flow.c | 308 __be16 eth_type; /* ETH_P_8021Q */ parse_vlan() member in struct:qtag_prefix
|
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/ |
H A D | common.h | 67 __be16 eth_type; member in struct:ath6kl_llc_snap_hdr
|
H A D | wmi.c | 201 llc_hdr->eth_type = type; ath6kl_wmi_dix_2_dot3() 332 if (llc_hdr->eth_type == htons(ip_type)) { ath6kl_wmi_implicit_create_pstream() 420 eth_hdr.h_proto = llc_hdr->eth_type; ath6kl_wmi_dot11_hdr_remove() 468 eth_hdr.h_proto = llc_hdr->eth_type; ath6kl_wmi_dot3_2_dix()
|
H A D | txrx.c | 141 ether_type = be16_to_cpu(llc_hdr->eth_type); ath6kl_process_uapsdq()
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_ah.c | 80 eth.eth_type = cpu_to_be16(0x8100); set_av_attr() 87 eth.eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); set_av_attr()
|
H A D | ocrdma_sli.h | 1882 __be16 eth_type; member in struct:ocrdma_eth_basic 1888 __be16 eth_type; member in struct:ocrdma_eth_vlan
|
/linux-4.4.14/drivers/net/ethernet/rocker/ |
H A D | rocker.c | 71 __be16 eth_type; member in struct:rocker_flow_tbl_key::__anon7712::__anon7715 80 __be16 eth_type; member in struct:rocker_flow_tbl_key::__anon7712::__anon7716 104 __be16 eth_type; member in struct:rocker_flow_tbl_key::__anon7712::__anon7718 1968 entry->key.term_mac.eth_type)) rocker_cmd_flow_tbl_add_term_mac() 1998 entry->key.ucast_routing.eth_type)) rocker_cmd_flow_tbl_add_ucast_routing() 2073 entry->key.acl.eth_type)) rocker_cmd_flow_tbl_add_acl() 2082 switch (ntohs(entry->key.acl.eth_type)) { rocker_cmd_flow_tbl_add_acl() 2558 __be16 eth_type, const u8 *eth_dst, rocker_flow_tbl_term_mac() 2582 entry->key.term_mac.eth_type = eth_type; rocker_flow_tbl_term_mac() 2648 __be16 eth_type, __be32 dst, rocker_flow_tbl_ucast4_routing() 2661 entry->key.ucast_routing.eth_type = eth_type; rocker_flow_tbl_ucast4_routing() 2677 __be16 eth_type, __be16 vlan_id, rocker_flow_tbl_acl() 2711 entry->key.acl.eth_type = eth_type; rocker_flow_tbl_acl() 2959 __be16 eth_type = htons(ETH_P_IP); rocker_port_ipv4_neigh() local 3025 eth_type, ip_addr, rocker_port_ipv4_neigh() 3238 __be16 eth_type; member in struct:rocker_ctrl 3254 .eth_type = htons(ETH_P_ARP), 3261 .eth_type = htons(ETH_P_IP), 3269 .eth_type = htons(ETH_P_IPV6), 3307 ctrl->eth_type, rocker_port_ctrl_vlan_acl() 3358 ctrl->eth_type, ctrl->eth_dst, rocker_port_ctrl_vlan_term() 3742 __be16 eth_type; rocker_port_router_mac() local 3751 eth_type = htons(ETH_P_IP); rocker_port_router_mac() 3754 eth_type, rocker_port->dev->dev_addr, rocker_port_router_mac() 3760 eth_type = htons(ETH_P_IPV6); rocker_port_router_mac() 3763 eth_type, rocker_port->dev->dev_addr, rocker_port_router_mac() 3995 __be16 eth_type = htons(ETH_P_IP); rocker_port_fib_ipv4() local 4025 err = rocker_flow_tbl_ucast4_routing(rocker_port, trans, eth_type, dst, rocker_port_fib_ipv4() 2555 rocker_flow_tbl_term_mac(struct rocker_port *rocker_port, struct switchdev_trans *trans, u32 in_pport, u32 in_pport_mask, __be16 eth_type, const u8 *eth_dst, const u8 *eth_dst_mask, __be16 vlan_id, __be16 vlan_id_mask, bool copy_to_cpu, int flags) rocker_flow_tbl_term_mac() argument 2646 rocker_flow_tbl_ucast4_routing(struct rocker_port *rocker_port, struct switchdev_trans *trans, __be16 eth_type, __be32 dst, __be32 dst_mask, u32 priority, enum rocker_of_dpa_table_id goto_tbl, u32 group_id, int flags) rocker_flow_tbl_ucast4_routing() argument 2672 rocker_flow_tbl_acl(struct rocker_port *rocker_port, struct switchdev_trans *trans, int flags, u32 in_pport, u32 in_pport_mask, const u8 *eth_src, const u8 *eth_src_mask, const u8 *eth_dst, const u8 *eth_dst_mask, __be16 eth_type, __be16 vlan_id, __be16 vlan_id_mask, u8 ip_proto, u8 ip_proto_mask, u8 ip_tos, u8 ip_tos_mask, u32 group_id) rocker_flow_tbl_acl() argument
|
/linux-4.4.14/drivers/staging/most/aim-network/ |
H A D | networking.c | 86 const u8 *eth_type = skb->data + 12; skb_to_mamac() local 119 *buff++ = eth_type[0]; skb_to_mamac() 120 *buff++ = eth_type[1]; skb_to_mamac()
|
/linux-4.4.14/drivers/staging/rtl8188eu/core/ |
H A D | rtw_recv.c | 1356 u16 eth_type, len; wlanhdr_to_ethhdr() local 1391 eth_type = ntohs(be_tmp); /* pattrib->ether_type */ wlanhdr_to_ethhdr() 1392 pattrib->eth_type = eth_type; wlanhdr_to_ethhdr() 1399 eth_type = 0x8712; wlanhdr_to_ethhdr() 1600 u16 eth_type, nSubframe_Length; amsdu_to_msdu() local 1678 eth_type = get_unaligned_be16(&sub_skb->data[6]); amsdu_to_msdu() 1681 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || amsdu_to_msdu() 1850 if ((pattrib->qos != 1) || (pattrib->eth_type == 0x0806) || recv_indicatepkt_reorder()
|
/linux-4.4.14/drivers/staging/rtl8723au/core/ |
H A D | rtw_recv.c | 1499 u16 eth_type, len, hdrlen; wlanhdr_to_ethhdr() local 1514 eth_type = (psnap[6] << 8) | psnap[7]; wlanhdr_to_ethhdr() 1516 /* eth_type = (psnap_type[0] << 8) | psnap_type[1]; */ wlanhdr_to_ethhdr() 1518 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || wlanhdr_to_ethhdr() 1527 eth_type = (psnap[0] << 8) | psnap[1]; wlanhdr_to_ethhdr() 1536 pattrib->eth_type = eth_type; wlanhdr_to_ethhdr() 1542 eth_type = 0x8712; wlanhdr_to_ethhdr() 1992 if ((pattrib->qos!= 1) || (pattrib->eth_type == ETH_P_ARP) || recv_indicatepkt_reorder()
|
/linux-4.4.14/drivers/staging/rtl8188eu/include/ |
H A D | rtw_recv.h | 127 u16 eth_type; member in struct:rx_pkt_attrib
|
/linux-4.4.14/drivers/staging/rtl8712/ |
H A D | rtl8712_recv.c | 332 u16 eth_type, nSubframe_Length; amsdu_to_msdu() local 388 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; amsdu_to_msdu() 391 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || amsdu_to_msdu()
|
/linux-4.4.14/drivers/staging/rtl8723au/include/ |
H A D | rtw_recv.h | 120 u16 eth_type; member in struct:rx_pkt_attrib
|
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/ |
H A D | os_intfs.c | 315 u16 eth_type = get_unaligned_be16(ð->h_proto); rtw_recv_select_queue23a() local 319 switch (eth_type) { rtw_recv_select_queue23a()
|
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/ |
H A D | os_intfs.c | 692 __be16 eth_type; rtw_recv_select_queue() local 696 memcpy(ð_type, pdata+(ETH_ALEN<<1), 2); rtw_recv_select_queue() 698 switch (eth_type) { rtw_recv_select_queue()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/ |
H A D | sge.c | 1797 int eth_type; t1_start_xmit() local 1802 eth_type = skb_network_offset(skb) == ETH_HLEN ? t1_start_xmit() 1810 hdr->eth_type_mss = htons(MK_ETH_TYPE_MSS(eth_type, t1_start_xmit()
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
H A D | cfg80211.c | 374 wil_dbg_misc(wil, "Control port : %d, eth_type 0x%04x no_encrypt %d\n", wil_print_crypto()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 1156 int eth_type; write_tx_pkt_wr() local 1162 eth_type = skb_network_offset(skb) == ETH_HLEN ? write_tx_pkt_wr() 1164 tso_info |= V_LSO_ETH_TYPE(eth_type) | write_tx_pkt_wr()
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
H A D | mvpp2.c | 2391 /* Skip eth_type + 4 bytes of IP header */ mvpp2_prs_etype_init() 2599 /* Skip eth_type + 4 bytes of IP header */ mvpp2_prs_pppoe_init() 2649 /* Skip eth_type + 4 bytes of IPv6 header */ mvpp2_prs_pppoe_init()
|