Searched refs:eth_type (Results 1 - 25 of 31) sorted by last modified time

12

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_vlan.c59 __u16 eth_type; local
67 eth_type = eth->h_proto;
70 if (eth_type == bpf_htons(ETH_P_8021Q)
71 || eth_type == bpf_htons(ETH_P_8021AD)) {
78 eth_type = vlan_hdr->h_vlan_encapsulated_proto;
83 if (eth_type == bpf_htons(ETH_P_8021Q)
84 || eth_type == bpf_htons(ETH_P_8021AD)) {
91 eth_type = vlan_hdr->h_vlan_encapsulated_proto;
95 pkt->l3_proto = bpf_ntohs(eth_type); /* Convert to host-byte-order */
/linux-master/net/openvswitch/
H A Dflow_netlink.c1152 __be16 eth_type; local
1154 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]);
1157 eth_type = htons(0xffff);
1158 } else if (!eth_proto_is_802_3(eth_type)) {
1160 ntohs(eth_type), ETH_P_802_3_MIN);
1164 SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask);
1987 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); local
1989 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, eth_type) ||
2560 __be16 eth_type, __be16 vlan_tci,
2567 __be16 eth_type, __be1
2564 validate_and_copy_sample(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, struct sw_flow_actions **sfa, __be16 eth_type, __be16 vlan_tci, u32 mpls_label_count, bool log, bool last, u32 depth) argument
2631 validate_and_copy_dec_ttl(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, struct sw_flow_actions **sfa, __be16 eth_type, __be16 vlan_tci, u32 mpls_label_count, bool log, u32 depth) argument
2690 validate_and_copy_clone(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, struct sw_flow_actions **sfa, __be16 eth_type, __be16 vlan_tci, u32 mpls_label_count, bool log, bool last, u32 depth) argument
2881 validate_set(const struct nlattr *a, const struct sw_flow_key *flow_key, struct sw_flow_actions **sfa, bool *skip_copy, u8 mac_proto, __be16 eth_type, bool masked, bool log) argument
3081 validate_and_copy_check_pkt_len(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, struct sw_flow_actions **sfa, __be16 eth_type, __be16 vlan_tci, u32 mpls_label_count, bool log, bool last, u32 depth) argument
3174 __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, struct sw_flow_actions **sfa, __be16 eth_type, __be16 vlan_tci, u32 mpls_label_count, bool log, u32 depth) argument
[all...]
/linux-master/net/sched/
H A Dact_skbmod.c74 eth_hdr(skb)->h_proto = p->eth_type;
119 u16 eth_type = 0; local
144 eth_type = nla_get_u16(tb[TCA_SKBMOD_ETYPE]);
208 p->eth_type = htons(eth_type);
265 nla_put_u16(skb, TCA_SKBMOD_ETYPE, ntohs(p->eth_type)))
H A Dact_ife.c599 p->eth_type = ife_type;
677 if (nla_put(skb, TCA_IFE_TYPE, 2, &p->eth_type))
857 oethh->h_proto = htons(p->eth_type);
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.c3348 u16 eth_type; local
3361 eth_type = ntohs(eth_hdr->h_proto);
3362 switch (eth_type) {
3371 len = (eth_type == ETH_P_IP ? sizeof(struct iphdr) :
/linux-master/tools/testing/selftests/net/forwarding/
H A Dbridge_mdb.sh1007 local eth_type
1013 eth_type="ipv4"
1016 eth_type="ipv6"
1020 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp src_ip $src \
1126 local eth_type
1133 eth_type="ipv4"
1136 eth_type="ipv6"
1148 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp \
1151 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp \
/linux-master/drivers/staging/rtl8712/
H A Drtl8712_recv.c316 u16 eth_type, nSubframe_Length; local
371 eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7];
374 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) ||
/linux-master/drivers/net/wireless/ath/ath6kl/
H A Dtxrx.c141 ether_type = be16_to_cpu(llc_hdr->eth_type);
H A Dwmi.c201 llc_hdr->eth_type = type;
332 if (llc_hdr->eth_type == htons(ip_type)) {
420 eth_hdr.h_proto = llc_hdr->eth_type;
468 eth_hdr.h_proto = llc_hdr->eth_type;
/linux-master/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c1195 int eth_type; local
1201 eth_type = skb_network_offset(skb) == ETH_HLEN ?
1203 tso_info |= V_LSO_ETH_TYPE(eth_type) |
/linux-master/drivers/infiniband/hw/mlx5/
H A Dfs.c587 u16 eth_type = 0; local
597 eth_type = ntohs(ib_spec->eth.val.ether_type);
607 ipv4_spec_valid = (eth_type == ETH_P_IP) &&
609 ipv6_spec_valid = (eth_type == ETH_P_IPV6) &&
613 (((eth_type == ETH_P_MPLS_UC) ||
614 (eth_type == ETH_P_MPLS_MC)) && match_ipv);
/linux-master/drivers/staging/rtl8723bs/os_dep/
H A Drecv_linux.c56 u16 eth_type; local
69 eth_type = get_unaligned_be16(&sub_skb->data[6]);
73 eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) ||
H A Dos_intfs.c362 __be16 eth_type; local
366 memcpy(&eth_type, pdata + (ETH_ALEN << 1), 2);
368 switch (be16_to_cpu(eth_type)) {
/linux-master/drivers/staging/rtl8723bs/core/
H A Drtw_recv.c1481 u16 eth_type; local
1486 memcpy(&eth_type, ptr + pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_LENGTH, 2);
1487 eth_type = ntohs((unsigned short) eth_type);
1504 u16 eth_type, len; local
1520 /* eth_type = (psnap_type[0] << 8) | psnap_type[1]; */
1524 /* eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || */
1536 eth_type = ntohs(be_tmp); /* pattrib->ether_type */
1537 pattrib->eth_type
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_macsec.c702 pre_class_record.eth_type = ETH_P_MACSEC;
1522 tx_ctlf_rec.eth_type = ctl_ether_types[index];
1523 tx_ctlf_rec.match_type = 4; /* Match eth_type only */
1524 tx_ctlf_rec.match_mask = 0xf; /* match for eth_type */
1530 rx_prectlf_rec.eth_type = ctl_ether_types[index];
1531 rx_prectlf_rec.match_type = 4; /* Match eth_type only */
1532 rx_prectlf_rec.match_mask = 0xf; /* match for eth_type */
/linux-master/drivers/staging/rtl8723bs/include/
H A Drtw_recv.h143 u16 eth_type; member in struct:rx_pkt_attrib
/linux-master/drivers/net/ethernet/rocker/
H A Drocker_ofdpa.c47 __be16 eth_type; member in struct:ofdpa_flow_tbl_key::__anon1881::__anon1884
56 __be16 eth_type; member in struct:ofdpa_flow_tbl_key::__anon1881::__anon1885
80 __be16 eth_type; member in struct:ofdpa_flow_tbl_key::__anon1881::__anon1887
356 entry->key.term_mac.eth_type))
386 entry->key.ucast_routing.eth_type))
461 entry->key.acl.eth_type))
470 switch (ntohs(entry->key.acl.eth_type)) {
882 __be16 eth_type, const u8 *eth_dst,
906 entry->key.term_mac.eth_type = eth_type;
880 ofdpa_flow_tbl_term_mac(struct ofdpa_port *ofdpa_port, 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) argument
970 ofdpa_flow_tbl_ucast4_routing(struct ofdpa_port *ofdpa_port, __be16 eth_type, __be32 dst, __be32 dst_mask, u32 priority, enum rocker_of_dpa_table_id goto_tbl, u32 group_id, struct fib_info *fi, int flags) argument
997 ofdpa_flow_tbl_acl(struct ofdpa_port *ofdpa_port, 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) argument
1266 __be16 eth_type = htons(ETH_P_IP); local
1546 __be16 eth_type; member in struct:ofdpa_ctrl
2022 __be16 eth_type; local
2273 __be16 eth_type = htons(ETH_P_IP); local
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_api.c276 packed_record[3] = rec->eth_type & 0xFFFF;
329 rec->eth_type = packed_record[3];
372 packed_record[5] = rec->eth_type & 0xFFFF;
486 rec->eth_type = packed_record[5];
887 packed_record[2] = rec->eth_type & 0xFFFF;
991 rec->eth_type = packed_record[2];
1076 packed_record[3] = rec->eth_type & 0xFFFF;
1130 rec->eth_type = packed_record[3];
1167 packed_record[3] = rec->eth_type & 0xFFFF;
1217 rec->eth_type
[all...]
H A Dmacsec_struct.h20 u32 eth_type; member in struct:aq_mss_egress_ctlf_record
67 u32 eth_type; member in struct:aq_mss_egress_class_record
328 u32 eth_type; member in struct:aq_mss_ingress_prectlf_record
366 u32 eth_type; member in struct:aq_mss_ingress_preclass_record
590 u32 eth_type; member in struct:aq_mss_ingress_postclass_record
678 u32 eth_type; member in struct:aq_mss_ingress_postctlf_record
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_ethtool.c228 u8 eth_type; member in struct:prestera_port_type
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;
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c1833 int eth_type; local
1838 eth_type = skb_network_offset(skb) == ETH_HLEN ?
1846 hdr->eth_type_mss = htons(MK_ETH_TYPE_MSS(eth_type,
/linux-master/include/net/
H A Derspan.h181 __be16 eth_type; member in struct:qtag_prefix
275 __be16 eth_type; member in struct:qtag_prefix
/linux-master/drivers/net/ethernet/fungible/funcore/
H A Dfun_hci.h1196 __be16 eth_type; member in struct:fun_adi_param::adi_param::fun_adi_vlan
1213 .eth_type = cpu_to_be16(_eth_type), .tci = cpu_to_be16(_tci), \
/linux-master/drivers/staging/most/net/
H A Dnet.c80 const u8 *eth_type = skb->data + 12; local
118 *buff++ = eth_type[0];
119 *buff++ = eth_type[1];
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.c1683 int eth_type; local
1687 eth_type = ntohs(ethh->h_proto);
1688 if (eth_type == ETH_P_8021Q) {
1692 eth_type = ntohs(vethh->h_vlan_encapsulated_proto);
1709 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "eth_type =%d source mac: %pM\n",
1710 eth_type, ethh->h_source);
1717 if (eth_type == ETH_P_IP) {
1731 } else if (eth_type == ETH_P_IPV6) {
1752 DP_NOTICE(p_hwfn, "Unexpected ethertype on ll2 %x\n", eth_type);

Completed in 371 milliseconds

12