| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_xdp_vlan.c | 59 __u16 eth_type; in parse_eth_frame() local 67 eth_type = eth->h_proto; in parse_eth_frame() 70 if (eth_type == bpf_htons(ETH_P_8021Q) in parse_eth_frame() 71 || eth_type == bpf_htons(ETH_P_8021AD)) { in parse_eth_frame() 78 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth_frame() 83 if (eth_type == bpf_htons(ETH_P_8021Q) in parse_eth_frame() 84 || eth_type == bpf_htons(ETH_P_8021AD)) { in parse_eth_frame() 91 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth_frame() 95 pkt->l3_proto = bpf_ntohs(eth_type); /* Convert to host-byte-order */ in parse_eth_frame()
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | xdp_redirect_cpu_kern.c | 118 u16 eth_type; in parse_eth() local 125 eth_type = eth->h_proto; in parse_eth() 128 if (unlikely(ntohs(eth_type) < ETH_P_802_3_MIN)) in parse_eth() 132 if (eth_type == htons(ETH_P_8021Q) || eth_type == htons(ETH_P_8021AD)) { in parse_eth() 139 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth() 142 if (eth_type == htons(ETH_P_8021Q) || eth_type == htons(ETH_P_8021AD)) { in parse_eth() 149 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth() 152 *eth_proto = ntohs(eth_type); in parse_eth() 242 u16 eth_type; in xdp_prognum1_touch_data() local 262 eth_type = eth->h_proto; in xdp_prognum1_touch_data() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/aquantia/atlantic/macsec/ |
| H A D | macsec_struct.h | 20 u32 eth_type; member 67 u32 eth_type; member 328 u32 eth_type; member 366 u32 eth_type; member 590 u32 eth_type; member 678 u32 eth_type; member
|
| H A D | macsec_api.c | 276 packed_record[3] = rec->eth_type & 0xFFFF; in set_ingress_prectlf_record() 329 rec->eth_type = packed_record[3]; in get_ingress_prectlf_record() 372 packed_record[5] = rec->eth_type & 0xFFFF; in set_ingress_preclass_record() 486 rec->eth_type = packed_record[5]; in get_ingress_preclass_record() 887 packed_record[2] = rec->eth_type & 0xFFFF; in set_ingress_postclass_record() 991 rec->eth_type = packed_record[2]; in get_ingress_postclass_record() 1076 packed_record[3] = rec->eth_type & 0xFFFF; in set_ingress_postctlf_record() 1130 rec->eth_type = packed_record[3]; in get_ingress_postctlf_record() 1167 packed_record[3] = rec->eth_type & 0xFFFF; in set_egress_ctlf_record() 1217 rec->eth_type = packed_record[3]; in get_egress_ctlf_record() [all …]
|
| /OK3568_Linux_fs/kernel/include/net/ |
| H A D | mpls.h | 19 static inline bool eth_p_mpls(__be16 eth_type) in eth_p_mpls() argument 21 return eth_type == htons(ETH_P_MPLS_UC) || in eth_p_mpls() 22 eth_type == htons(ETH_P_MPLS_MC); in eth_p_mpls()
|
| H A D | erspan.h | 178 __be16 eth_type; in erspan_build_header() member 272 __be16 eth_type; in erspan_build_header_v2() member
|
| /OK3568_Linux_fs/kernel/net/openvswitch/ |
| H A D | flow_netlink.c | 1127 __be16 eth_type; in parse_eth_type_from_nlattrs() local 1129 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in parse_eth_type_from_nlattrs() 1132 eth_type = htons(0xffff); in parse_eth_type_from_nlattrs() 1133 } else if (!eth_proto_is_802_3(eth_type)) { in parse_eth_type_from_nlattrs() 1135 ntohs(eth_type), ETH_P_802_3_MIN); in parse_eth_type_from_nlattrs() 1139 SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask); in parse_eth_type_from_nlattrs() 1951 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan() local 1953 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, eth_type) || in ovs_nla_put_vlan() 2516 __be16 eth_type, __be16 vlan_tci, 2522 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_sample() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_ethtool.c | 228 u8 eth_type; member 232 .eth_type = PORT_NONE, 236 .eth_type = PORT_TP, 240 .eth_type = PORT_AUI, 244 .eth_type = PORT_MII, 248 .eth_type = PORT_FIBRE, 252 .eth_type = PORT_BNC, 256 .eth_type = PORT_TP, 260 .eth_type = PORT_OTHER, 316 return port_types[port->caps.type].eth_type; in prestera_port_type_get() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8723bs/os_dep/ |
| H A D | recv_linux.c | 58 u16 eth_type; in rtw_os_alloc_msdu_pkt() local 73 eth_type = get_unaligned_be16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt() 77 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in rtw_os_alloc_msdu_pkt() 216 DBG_871X("eth rx: got eth_type = 0x%x\n", pattrib->eth_type); in rtw_os_ksocket_send() 273 if (0x8899 == pattrib->eth_type) { in rtw_recv_indicatepkt()
|
| /OK3568_Linux_fs/kernel/net/sched/ |
| H A D | act_skbmod.c | 59 eth_hdr(skb)->h_proto = p->eth_type; in tcf_skbmod_act() 99 u16 eth_type = 0; in tcf_skbmod_init() local 124 eth_type = nla_get_u16(tb[TCA_SKBMOD_ETYPE]); in tcf_skbmod_init() 186 p->eth_type = htons(eth_type); in tcf_skbmod_init() 243 nla_put_u16(skb, TCA_SKBMOD_ETYPE, ntohs(p->eth_type))) in tcf_skbmod_dump()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/rocker/ |
| H A D | rocker_ofdpa.c | 47 __be16 eth_type; member 56 __be16 eth_type; member 80 __be16 eth_type; member 356 entry->key.term_mac.eth_type)) in ofdpa_cmd_flow_tbl_add_term_mac() 386 entry->key.ucast_routing.eth_type)) in ofdpa_cmd_flow_tbl_add_ucast_routing() 461 entry->key.acl.eth_type)) in ofdpa_cmd_flow_tbl_add_acl() 470 switch (ntohs(entry->key.acl.eth_type)) { in ofdpa_cmd_flow_tbl_add_acl() 882 __be16 eth_type, const u8 *eth_dst, in ofdpa_flow_tbl_term_mac() argument 906 entry->key.term_mac.eth_type = eth_type; in ofdpa_flow_tbl_term_mac() 971 __be16 eth_type, __be32 dst, in ofdpa_flow_tbl_ucast4_routing() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189es/os_dep/linux/ |
| H A D | recv_linux.c | 246 u16 eth_type; in rtw_os_alloc_msdu_pkt() local 278 eth_type = RTW_GET_BE16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt() 282 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in rtw_os_alloc_msdu_pkt() 547 DBG_871X("eth rx: got eth_type=0x%x\n", pattrib->eth_type); in rtw_os_ksocket_send() 682 if (pattrib->eth_type == 0x888e) in rtw_recv_indicatepkt() 688 if (0x8899 == pattrib->eth_type) in rtw_recv_indicatepkt() 695 if (0x8899 == pattrib->eth_type) in rtw_recv_indicatepkt()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/os_dep/linux/ |
| H A D | recv_linux.c | 246 u16 eth_type; in rtw_os_alloc_msdu_pkt() local 278 eth_type = RTW_GET_BE16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt() 282 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in rtw_os_alloc_msdu_pkt() 547 DBG_871X("eth rx: got eth_type=0x%x\n", pattrib->eth_type); in rtw_os_ksocket_send() 682 if (pattrib->eth_type == 0x888e) in rtw_recv_indicatepkt() 688 if (0x8899 == pattrib->eth_type) in rtw_recv_indicatepkt() 695 if (0x8899 == pattrib->eth_type) in rtw_recv_indicatepkt()
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | openvswitch.rst | 89 eth_type(0x0800), ipv4(src=172.16.0.20, dst=172.18.0.52, proto=17, tos=0, 94 in_port(1), eth(...), eth_type(0x0800), ipv4(...), tcp(...) 172 eth(...), eth_type(0x8100) 180 eth(...), vlan(vid=10, pcp=0), eth_type(0x0800), ip(proto=6, ...), tcp(...) 195 eth(...), eth_type(0x8100), vlan(vid=10, pcp=0), encap(eth_type(0x0800), 198 Notice how the "eth_type", "ip", and "tcp" flow key attributes are 201 and therefore will not misinterpret them. (Also, the outer eth_type 223 eth(...), eth_type(0x0800), ip(proto=6, ...), tcp(src=0, dst=0) 230 eth(...), eth_type(0x8100), vlan(0), encap()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/ |
| H A D | recv_linux.c | 290 u16 eth_type; in rtw_os_alloc_msdu_pkt() local 317 eth_type = RTW_GET_BE16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt() 321 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in rtw_os_alloc_msdu_pkt() 638 RTW_INFO("eth rx: got eth_type=0x%x\n", pattrib->eth_type); in rtw_os_ksocket_send() 762 if (pattrib->eth_type == 0x888e) in rtw_recv_indicatepkt() 768 if (0x8899 == pattrib->eth_type) { in rtw_recv_indicatepkt() 774 if (0x8899 == pattrib->eth_type) { in rtw_recv_indicatepkt()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/os_dep/linux/ |
| H A D | recv_linux.c | 284 u16 eth_type; in rtw_os_alloc_msdu_pkt() local 311 eth_type = RTW_GET_BE16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt() 315 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in rtw_os_alloc_msdu_pkt() 556 RTW_INFO("eth rx: got eth_type=0x%x\n", pattrib->eth_type); in rtw_os_ksocket_send() 687 if (pattrib->eth_type == 0x888e) in rtw_recv_indicatepkt() 693 if (0x8899 == pattrib->eth_type) { in rtw_recv_indicatepkt() 699 if (0x8899 == pattrib->eth_type) { in rtw_recv_indicatepkt()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/ |
| H A D | rtw_recv_shortcut.c | 39 if (pattrib->eth_type == ETH_P_ARP || in core_rxsc_check_alloc() 40 pattrib->eth_type == 0x888e || in core_rxsc_check_alloc() 41 pattrib->eth_type == 0x8899) in core_rxsc_check_alloc()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/ |
| H A D | rtw_recv_shortcut.c | 39 if (pattrib->eth_type == ETH_P_ARP || in core_rxsc_check_alloc() 40 pattrib->eth_type == 0x888e || in core_rxsc_check_alloc() 41 pattrib->eth_type == 0x8899) in core_rxsc_check_alloc()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/core/ |
| H A D | rtw_recv.c | 2265 u16 eth_type; in validate_recv_frame() local 2270 _rtw_memcpy(ð_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE, 2); in validate_recv_frame() 2271 eth_type = ntohs((unsigned short) eth_type); in validate_recv_frame() 2272 if ((bDumpRxPkt == 4) && (eth_type == 0x888e)) in validate_recv_frame() 2303 u16 eth_type, len; in wlanhdr_to_ethhdr() local 2339 _rtw_memcpy(ð_type, ptr + rmv_len, 2); in wlanhdr_to_ethhdr() 2340 eth_type = ntohs((unsigned short)eth_type); /* pattrib->ether_type */ in wlanhdr_to_ethhdr() 2341 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr() 2344 if (0x8899 == pattrib->eth_type) { in wlanhdr_to_ethhdr() 2347 RTW_INFO("wlan rx: got eth_type=0x%x\n", pattrib->eth_type); in wlanhdr_to_ethhdr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189es/core/ |
| H A D | rtw_recv.c | 2399 u16 eth_type; in validate_recv_frame() local 2404 _rtw_memcpy(ð_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE, 2); in validate_recv_frame() 2405 eth_type = ntohs((unsigned short) eth_type); in validate_recv_frame() 2406 if ((bDumpRxPkt == 4) && (eth_type == 0x888e)) in validate_recv_frame() 2440 u16 eth_type, len; in wlanhdr_to_ethhdr() local 2480 _rtw_memcpy(ð_type, ptr+rmv_len, 2); in wlanhdr_to_ethhdr() 2481 eth_type= ntohs((unsigned short )eth_type); //pattrib->ether_type in wlanhdr_to_ethhdr() 2482 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr() 2485 if (0x8899 == pattrib->eth_type) in wlanhdr_to_ethhdr() 2489 DBG_871X("wlan rx: got eth_type=0x%x\n", pattrib->eth_type); in wlanhdr_to_ethhdr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/core/ |
| H A D | rtw_recv.c | 2417 u16 eth_type; in validate_recv_frame() local 2422 _rtw_memcpy(ð_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE, 2); in validate_recv_frame() 2423 eth_type = ntohs((unsigned short) eth_type); in validate_recv_frame() 2424 if ((bDumpRxPkt == 4) && (eth_type == 0x888e)) in validate_recv_frame() 2458 u16 eth_type, len; in wlanhdr_to_ethhdr() local 2498 _rtw_memcpy(ð_type, ptr+rmv_len, 2); in wlanhdr_to_ethhdr() 2499 eth_type= ntohs((unsigned short )eth_type); //pattrib->ether_type in wlanhdr_to_ethhdr() 2500 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr() 2503 if (0x8899 == pattrib->eth_type) in wlanhdr_to_ethhdr() 2507 DBG_871X("wlan rx: got eth_type=0x%x\n", pattrib->eth_type); in wlanhdr_to_ethhdr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/core/ |
| H A D | rtw_recv.c | 2282 u16 eth_type; in validate_recv_frame() local 2287 _rtw_memcpy(ð_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE, 2); in validate_recv_frame() 2288 eth_type = ntohs((unsigned short) eth_type); in validate_recv_frame() 2289 if ((bDumpRxPkt == 4) && (eth_type == 0x888e)) in validate_recv_frame() 2320 u16 eth_type, len; in wlanhdr_to_ethhdr() local 2358 _rtw_memcpy(ð_type, ptr + rmv_len, 2); in wlanhdr_to_ethhdr() 2359 eth_type = ntohs((unsigned short)eth_type); /* pattrib->ether_type */ in wlanhdr_to_ethhdr() 2360 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr() 2363 if (0x8899 == pattrib->eth_type) { in wlanhdr_to_ethhdr() 2366 RTW_INFO("wlan rx: got eth_type=0x%x\n", pattrib->eth_type); in wlanhdr_to_ethhdr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlan/ |
| H A D | mlan_shim.c | 1406 t_u16 eth_type = 0; in mlan_send_packet() local 1421 eth_type = in mlan_send_packet() 1425 ((eth_type == MLAN_ETHER_PKT_TYPE_EAPOL) || in mlan_send_packet() 1426 (eth_type == MLAN_ETHER_PKT_TYPE_ARP) || in mlan_send_packet() 1427 (eth_type == MLAN_ETHER_PKT_TYPE_WAPI))) || in mlan_send_packet() 1428 (eth_type == MLAN_ETHER_PKT_TYPE_TDLS_ACTION) || in mlan_send_packet() 1432 if (eth_type == MLAN_ETHER_PKT_TYPE_TDLS_ACTION) { in mlan_send_packet() 1441 if (eth_type == MLAN_ETHER_PKT_TYPE_EAPOL) { in mlan_send_packet() 1742 t_u16 eth_type = 0; in mlan_process_deaggr_pkt() local 1746 eth_type = in mlan_process_deaggr_pkt() [all …]
|
| /OK3568_Linux_fs/kernel/include/net/tc_act/ |
| H A D | tc_skbmod.h | 16 u16 eth_type; member
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath6kl/ |
| H A D | common.h | 67 __be16 eth_type; member
|