ethdev: check device promiscuous state
[dpdk.git] / lib / librte_gro / gro_tcp4.c
index 20f2ea7..feb5855 100644 (file)
@@ -196,7 +196,7 @@ gro_tcp4_reassemble(struct rte_mbuf *pkt,
 {
        struct rte_ether_hdr *eth_hdr;
        struct rte_ipv4_hdr *ipv4_hdr;
-       struct tcp_hdr *tcp_hdr;
+       struct rte_tcp_hdr *tcp_hdr;
        uint32_t sent_seq;
        int32_t tcp_dl;
        uint16_t ip_id, hdr_len, frag_off;
@@ -217,14 +217,14 @@ gro_tcp4_reassemble(struct rte_mbuf *pkt,
 
        eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *);
        ipv4_hdr = (struct rte_ipv4_hdr *)((char *)eth_hdr + pkt->l2_len);
-       tcp_hdr = (struct tcp_hdr *)((char *)ipv4_hdr + pkt->l3_len);
+       tcp_hdr = (struct rte_tcp_hdr *)((char *)ipv4_hdr + pkt->l3_len);
        hdr_len = pkt->l2_len + pkt->l3_len + pkt->l4_len;
 
        /*
         * Don't process the packet which has FIN, SYN, RST, PSH, URG, ECE
         * or CWR set.
         */
-       if (tcp_hdr->tcp_flags != TCP_ACK_FLAG)
+       if (tcp_hdr->tcp_flags != RTE_TCP_ACK_FLAG)
                return -1;
        /*
         * Don't process the packet whose payload length is less than or