gro: fix overflow of payload length calculation
authorJiayu Hu <jiayu.hu@intel.com>
Mon, 17 Dec 2018 06:05:39 +0000 (14:05 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Dec 2018 03:29:57 +0000 (04:29 +0100)
commitf8a05885e7fffbcba1b42bf21ac61c2523943cde
tree6afa494853573eecec86ffb6a7cb3275d7ea97d9
parent0a529578f162df8b16e4eb7423e55570f3d13c97
gro: fix overflow of payload length calculation

When the packet length is smaller than the header length,
the calculated payload length will be overflowed and result
in incorrect reassembly behaviors.

Fixes: 1e4cf4d6d4fb ("gro: cleanup")
Fixes: 9e0b9d2ec0f4 ("gro: support VxLAN GRO")
Cc: stable@dpdk.org
Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
lib/librte_gro/gro_tcp4.c
lib/librte_gro/gro_vxlan_tcp4.c