net: add rte prefix to tcp structure
[dpdk.git] / lib / librte_gro / gro_tcp4.h
index e33b650..63f06be 100644 (file)
@@ -255,7 +255,7 @@ merge_two_tcp4_packets(struct gro_tcp4_item *item,
  */
 static inline int
 check_seq_option(struct gro_tcp4_item *item,
-               struct tcp_hdr *tcph,
+               struct rte_tcp_hdr *tcph,
                uint32_t sent_seq,
                uint16_t ip_id,
                uint16_t tcp_hl,
@@ -265,16 +265,16 @@ check_seq_option(struct gro_tcp4_item *item,
 {
        struct rte_mbuf *pkt_orig = item->firstseg;
        struct rte_ipv4_hdr *iph_orig;
-       struct tcp_hdr *tcph_orig;
+       struct rte_tcp_hdr *tcph_orig;
        uint16_t len, tcp_hl_orig;
 
        iph_orig = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt_orig, char *) +
                        l2_offset + pkt_orig->l2_len);
-       tcph_orig = (struct tcp_hdr *)((char *)iph_orig + pkt_orig->l3_len);
+       tcph_orig = (struct rte_tcp_hdr *)((char *)iph_orig + pkt_orig->l3_len);
        tcp_hl_orig = pkt_orig->l4_len;
 
        /* Check if TCP option fields equal */
-       len = RTE_MAX(tcp_hl, tcp_hl_orig) - sizeof(struct tcp_hdr);
+       len = RTE_MAX(tcp_hl, tcp_hl_orig) - sizeof(struct rte_tcp_hdr);
        if ((tcp_hl != tcp_hl_orig) || ((len > 0) &&
                                (memcmp(tcph + 1, tcph_orig + 1,
                                        len) != 0)))