net: add rte prefix to ether defines
[dpdk.git] / drivers / net / qede / qede_rxtx.c
index 0e8a367..235f78a 100644 (file)
@@ -963,21 +963,21 @@ static inline uint32_t qede_rx_cqe_to_pkt_type_outer(struct rte_mbuf *m)
        ethertype = rte_cpu_to_be_16(eth_hdr->ether_type);
 
         /* Note: Valid only if VLAN stripping is disabled */
-       if (ethertype == ETHER_TYPE_VLAN) {
+       if (ethertype == RTE_ETHER_TYPE_VLAN) {
                vlan_tagged = 1;
                vlan_hdr = (struct rte_vlan_hdr *)(eth_hdr + 1);
                len += sizeof(struct rte_vlan_hdr);
                ethertype = rte_cpu_to_be_16(vlan_hdr->eth_proto);
        }
 
-       if (ethertype == ETHER_TYPE_IPv4) {
+       if (ethertype == RTE_ETHER_TYPE_IPv4) {
                packet_type |= RTE_PTYPE_L3_IPV4;
                ipv4_hdr = rte_pktmbuf_mtod_offset(m, struct ipv4_hdr *, len);
                if (ipv4_hdr->next_proto_id == IPPROTO_TCP)
                        packet_type |= RTE_PTYPE_L4_TCP;
                else if (ipv4_hdr->next_proto_id == IPPROTO_UDP)
                        packet_type |= RTE_PTYPE_L4_UDP;
-       } else if (ethertype == ETHER_TYPE_IPv6) {
+       } else if (ethertype == RTE_ETHER_TYPE_IPv6) {
                packet_type |= RTE_PTYPE_L3_IPV6;
                ipv6_hdr = rte_pktmbuf_mtod_offset(m, struct ipv6_hdr *, len);
                if (ipv6_hdr->proto == IPPROTO_TCP)