net: add rte prefix to IP defines
[dpdk.git] / drivers / net / ena / ena_ethdev.c
index 5ed86f0..47a263a 100644 (file)
@@ -2137,7 +2137,7 @@ eth_ena_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
        uint32_t i;
        struct rte_mbuf *m;
        struct ena_ring *tx_ring = (struct ena_ring *)(tx_queue);
-       struct ipv4_hdr *ip_hdr;
+       struct rte_ipv4_hdr *ip_hdr;
        uint64_t ol_flags;
        uint16_t frag_field;
 
@@ -2154,11 +2154,11 @@ eth_ena_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
                if (unlikely(m->l2_len == 0))
                        m->l2_len = sizeof(struct rte_ether_hdr);
 
-               ip_hdr = rte_pktmbuf_mtod_offset(m, struct ipv4_hdr *,
+               ip_hdr = rte_pktmbuf_mtod_offset(m, struct rte_ipv4_hdr *,
                                                 m->l2_len);
                frag_field = rte_be_to_cpu_16(ip_hdr->fragment_offset);
 
-               if ((frag_field & IPV4_HDR_DF_FLAG) != 0) {
+               if ((frag_field & RTE_IPV4_HDR_DF_FLAG) != 0) {
                        m->packet_type |= RTE_PTYPE_L4_NONFRAG;
 
                        /* If IPv4 header has DF flag enabled and TSO support is