gro: fix overflow of payload length calculation
[dpdk.git] / lib / librte_gro / gro_vxlan_tcp4.c
index ca86f01..955ae4b 100644 (file)
@@ -295,7 +295,8 @@ gro_vxlan_tcp4_reassemble(struct rte_mbuf *pkt,
        struct udp_hdr *udp_hdr;
        struct vxlan_hdr *vxlan_hdr;
        uint32_t sent_seq;
-       uint16_t tcp_dl, frag_off, outer_ip_id, ip_id;
+       int32_t tcp_dl;
+       uint16_t frag_off, outer_ip_id, ip_id;
        uint8_t outer_is_atomic, is_atomic;
 
        struct vxlan_tcp4_flow_key key;