net: add rte prefix to ip structure
[dpdk.git] / drivers / net / vmxnet3 / vmxnet3_rxtx.c
index ca3b1ef..3cc4343 100644 (file)
@@ -665,7 +665,7 @@ vmxnet3_guess_mss(struct vmxnet3_hw *hw, const Vmxnet3_RxCompDesc *rcd,
                struct rte_mbuf *rxm)
 {
        uint32_t hlen, slen;
-       struct ipv4_hdr *ipv4_hdr;
+       struct rte_ipv4_hdr *ipv4_hdr;
        struct ipv6_hdr *ipv6_hdr;
        struct tcp_hdr *tcp_hdr;
        char *ptr;
@@ -677,11 +677,11 @@ vmxnet3_guess_mss(struct vmxnet3_hw *hw, const Vmxnet3_RxCompDesc *rcd,
        hlen = sizeof(struct rte_ether_hdr);
 
        if (rcd->v4) {
-               if (unlikely(slen < hlen + sizeof(struct ipv4_hdr)))
-                       return hw->mtu - sizeof(struct ipv4_hdr)
+               if (unlikely(slen < hlen + sizeof(struct rte_ipv4_hdr)))
+                       return hw->mtu - sizeof(struct rte_ipv4_hdr)
                                        - sizeof(struct tcp_hdr);
 
-               ipv4_hdr = (struct ipv4_hdr *)(ptr + hlen);
+               ipv4_hdr = (struct rte_ipv4_hdr *)(ptr + hlen);
                hlen += (ipv4_hdr->version_ihl & IPV4_HDR_IHL_MASK) *
                                IPV4_IHL_MULTIPLIER;
        } else if (rcd->v6) {