Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfrm: fix GRO for !CONFIG_NETFILTER

In xfrm_input() when called from GRO, async == 0, and we end up
skipping the processing in xfrm4_transport_finish(). GRO path will
always skip the NF_HOOK, so we don't need the special-case for
!NETFILTER during GRO processing.

Fixes: 7785bba299a8 ("esp: Add a software GRO codepath")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>

authored by

Sabrina Dubroca and committed by
Steffen Klassert
cfcf99f9 35db0691

+1 -1
+1 -1
net/xfrm/xfrm_input.c
··· 395 395 if (xo) 396 396 xfrm_gro = xo->flags & XFRM_GRO; 397 397 398 - err = x->inner_mode->afinfo->transport_finish(skb, async); 398 + err = x->inner_mode->afinfo->transport_finish(skb, xfrm_gro || async); 399 399 if (xfrm_gro) { 400 400 skb_dst_drop(skb); 401 401 gro_cells_receive(&gro_cells, skb);