gro: fix identifying fragmented packets
authorKumara Parameshwaran <kumaraparamesh92@gmail.com>
Mon, 27 Jun 2022 10:31:14 +0000 (16:01 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 5 Jul 2022 16:30:38 +0000 (18:30 +0200)
commitbdf2f895a66044bc643e98a7262d70c245252927
treec44e85a13b2a30f2bd989c132c6608fffa9b1e98
parent6550113be62d1bd27b2f2dc07d7a888ad9499006
gro: fix identifying fragmented packets

A packet with RTE_PTYPE_L4_FRAG(0x300) contains both RTE_PTYPE_L4_TCP
(0x100) & RTE_PTYPE_L4_UDP (0x200). A fragmented packet as defined in
rte_mbuf_ptype.h cannot be recognized as other L4 types and hence the
GRO layer should not use IS_IPV4_TCP_PKT or IS_IPV4_UDP_PKT for
RTE_PTYPE_L4_FRAG. Hence, if the packet type is RTE_PTYPE_L4_FRAG the
IP header should be parsed to recognize the appropriate IP type and
invoke the respective gro handler.

Fixes: 1ca5e6740852 ("gro: support UDP/IPv4")
Cc: stable@dpdk.org
Signed-off-by: Kumara Parameshwaran <kumaraparamesh92@gmail.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
lib/gro/rte_gro.c