/linux/tools/testing/selftests/bpf/progs/ |
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()
|
/linux/samples/bpf/ |
A D | xdp_redirect_cpu.bpf.c | 55 u16 eth_type; in parse_eth() local 62 eth_type = eth->h_proto; in parse_eth() 69 if (eth_type == bpf_htons(ETH_P_8021Q) || in parse_eth() 70 eth_type == bpf_htons(ETH_P_8021AD)) { in parse_eth() 77 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth() 80 if (eth_type == bpf_htons(ETH_P_8021Q) || in parse_eth() 81 eth_type == bpf_htons(ETH_P_8021AD)) { in parse_eth() 91 *eth_proto = bpf_ntohs(eth_type); in parse_eth() 180 u16 eth_type; in xdp_prognum1_touch_data() local 198 eth_type = eth->h_proto; in xdp_prognum1_touch_data() [all …]
|
/linux/include/net/ |
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()
|
A D | erspan.h | 178 __be16 eth_type; in erspan_build_header() member 272 __be16 eth_type; in erspan_build_header_v2() member
|
/linux/drivers/net/ethernet/aquantia/atlantic/macsec/ |
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
|
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() 883 packed_record[2] = rec->eth_type & 0xFFFF; in set_ingress_postclass_record() 987 rec->eth_type = packed_record[2]; in get_ingress_postclass_record() 1072 packed_record[3] = rec->eth_type & 0xFFFF; in set_ingress_postctlf_record() 1126 rec->eth_type = packed_record[3]; in get_ingress_postctlf_record() 1163 packed_record[3] = rec->eth_type & 0xFFFF; in set_egress_ctlf_record() 1213 rec->eth_type = packed_record[3]; in get_egress_ctlf_record() [all …]
|
/linux/net/openvswitch/ |
A D | flow_netlink.c | 1127 __be16 eth_type; in parse_eth_type_from_nlattrs() local 1132 eth_type = htons(0xffff); in parse_eth_type_from_nlattrs() 2862 if (!eth_p_mpls(eth_type)) in validate_set() 3150 !eth_p_mpls(eth_type))) in __ovs_nla_copy_actions() 3178 !eth_p_mpls(eth_type))) in __ovs_nla_copy_actions() 3188 !eth_p_mpls(eth_type)) in __ovs_nla_copy_actions() 3210 eth_type = htons(0); in __ovs_nla_copy_actions() 3212 eth_type = proto; in __ovs_nla_copy_actions() 3308 eth_type, vlan_tci, in __ovs_nla_copy_actions() 3321 eth_type, in __ovs_nla_copy_actions() [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
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 …]
|
/linux/net/sched/ |
A D | act_skbmod.c | 73 eth_hdr(skb)->h_proto = p->eth_type; in tcf_skbmod_act() 118 u16 eth_type = 0; in tcf_skbmod_init() local 143 eth_type = nla_get_u16(tb[TCA_SKBMOD_ETYPE]); in tcf_skbmod_init() 207 p->eth_type = htons(eth_type); in tcf_skbmod_init() 264 nla_put_u16(skb, TCA_SKBMOD_ETYPE, ntohs(p->eth_type))) in tcf_skbmod_dump()
|
A D | act_ife.c | 599 p->eth_type = ife_type; in tcf_ife_init() 677 if (nla_put(skb, TCA_IFE_TYPE, 2, &p->eth_type)) in tcf_ife_dump() 857 oethh->h_proto = htons(p->eth_type); in tcf_ife_encode()
|
/linux/drivers/net/ethernet/rocker/ |
A D | rocker_ofdpa.c | 47 __be16 eth_type; member 56 __be16 eth_type; member 80 __be16 eth_type; member 461 entry->key.acl.eth_type)) in ofdpa_cmd_flow_tbl_add_acl() 906 entry->key.term_mac.eth_type = eth_type; in ofdpa_flow_tbl_term_mac() 985 entry->key.ucast_routing.eth_type = eth_type; in ofdpa_flow_tbl_ucast4_routing() 1035 entry->key.acl.eth_type = eth_type; in ofdpa_flow_tbl_acl() 1331 eth_type, ip_addr, in ofdpa_port_ipv4_neigh() 1546 __be16 eth_type; member 1614 ctrl->eth_type, in ofdpa_port_ctrl_vlan_acl() [all …]
|
/linux/drivers/staging/rtl8723bs/os_dep/ |
A D | recv_linux.c | 56 u16 eth_type; in rtw_os_alloc_msdu_pkt() local 69 eth_type = get_unaligned_be16(&sub_skb->data[6]); in rtw_os_alloc_msdu_pkt() 73 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in rtw_os_alloc_msdu_pkt()
|
A D | os_intfs.c | 362 __be16 eth_type; in rtw_recv_select_queue() local 366 memcpy(ð_type, pdata + (ETH_ALEN << 1), 2); in rtw_recv_select_queue() 368 switch (be16_to_cpu(eth_type)) { in rtw_recv_select_queue()
|
/linux/Documentation/networking/ |
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()
|
/linux/include/net/tc_act/ |
A D | tc_skbmod.h | 16 u16 eth_type; member
|
A D | tc_ife.h | 14 u16 eth_type; member
|
/linux/drivers/net/wireless/ath/ath6kl/ |
A D | common.h | 67 __be16 eth_type; member
|
/linux/drivers/infiniband/hw/ocrdma/ |
A D | ocrdma_ah.c | 108 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr() 115 eth.eth_type = cpu_to_be16(proto_num); in set_av_attr()
|
/linux/drivers/staging/r8188eu/core/ |
A D | rtw_recv.c | 1181 u16 eth_type, len; in wlanhdr_to_ethhdr() local 1215 eth_type = ntohs(be_tmp); /* pattrib->ether_type */ in wlanhdr_to_ethhdr() 1216 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr() 1223 eth_type = 0x8712; in wlanhdr_to_ethhdr() 1421 u16 eth_type, nSubframe_Length; in amsdu_to_msdu() local 1500 eth_type = RTW_GET_BE16(&sub_skb->data[6]); in amsdu_to_msdu() 1503 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in amsdu_to_msdu()
|
/linux/drivers/staging/most/net/ |
A D | net.c | 80 const u8 *eth_type = skb->data + 12; in skb_to_mamac() local 118 *buff++ = eth_type[0]; in skb_to_mamac() 119 *buff++ = eth_type[1]; in skb_to_mamac()
|
/linux/drivers/staging/rtl8723bs/core/ |
A D | rtw_recv.c | 1483 u16 eth_type; in validate_recv_frame() local 1488 memcpy(ð_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_LENGTH, 2); in validate_recv_frame() 1489 eth_type = ntohs((unsigned short) eth_type); in validate_recv_frame() 1506 u16 eth_type, len; in wlanhdr_to_ethhdr() local 1538 eth_type = ntohs(be_tmp); /* pattrib->ether_type */ in wlanhdr_to_ethhdr() 1539 pattrib->eth_type = eth_type; in wlanhdr_to_ethhdr() 1546 eth_type = 0x8712; in wlanhdr_to_ethhdr()
|
/linux/drivers/staging/rtl8712/ |
A D | rtl8712_recv.c | 316 u16 eth_type, nSubframe_Length; in amsdu_to_msdu() local 371 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; in amsdu_to_msdu() 374 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || in amsdu_to_msdu()
|
/linux/drivers/staging/r8188eu/os_dep/ |
A D | os_intfs.c | 308 __be16 eth_type; in rtw_recv_select_queue() local 312 memcpy(ð_type, pdata + (ETH_ALEN << 1), 2); in rtw_recv_select_queue() 314 switch (eth_type) { in rtw_recv_select_queue()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_iwarp.c | 1683 int eth_type; in qed_iwarp_parse_rx_pkt() local 1687 eth_type = ntohs(ethh->h_proto); in qed_iwarp_parse_rx_pkt() 1688 if (eth_type == ETH_P_8021Q) { in qed_iwarp_parse_rx_pkt() 1692 eth_type = ntohs(vethh->h_vlan_encapsulated_proto); in qed_iwarp_parse_rx_pkt() 1710 eth_type, ethh->h_source); in qed_iwarp_parse_rx_pkt() 1717 if (eth_type == ETH_P_IP) { in qed_iwarp_parse_rx_pkt() 1731 } else if (eth_type == ETH_P_IPV6) { in qed_iwarp_parse_rx_pkt() 1752 DP_NOTICE(p_hwfn, "Unexpected ethertype on ll2 %x\n", eth_type); in qed_iwarp_parse_rx_pkt()
|
/linux/drivers/staging/r8188eu/include/ |
A D | rtw_recv.h | 111 u16 eth_type; member
|