net: add rte prefix to ip structure
[dpdk.git] / lib / librte_vhost / virtio_net.c
index e62fdf2..10272d8 100644 (file)
@@ -264,9 +264,9 @@ virtio_enqueue_offload(struct rte_mbuf *m_buf, struct virtio_net_hdr *net_hdr)
 
        /* IP cksum verification cannot be bypassed, then calculate here */
        if (m_buf->ol_flags & PKT_TX_IP_CKSUM) {
-               struct ipv4_hdr *ipv4_hdr;
+               struct rte_ipv4_hdr *ipv4_hdr;
 
-               ipv4_hdr = rte_pktmbuf_mtod_offset(m_buf, struct ipv4_hdr *,
+               ipv4_hdr = rte_pktmbuf_mtod_offset(m_buf, struct rte_ipv4_hdr *,
                                                   m_buf->l2_len);
                ipv4_hdr->hdr_checksum = rte_ipv4_cksum(ipv4_hdr);
        }
@@ -966,7 +966,7 @@ virtio_net_with_host_offload(struct virtio_net *dev)
 static void
 parse_ethernet(struct rte_mbuf *m, uint16_t *l4_proto, void **l4_hdr)
 {
-       struct ipv4_hdr *ipv4_hdr;
+       struct rte_ipv4_hdr *ipv4_hdr;
        struct ipv6_hdr *ipv6_hdr;
        void *l3_hdr = NULL;
        struct rte_ether_hdr *eth_hdr;