]> git.baikalelectronics.ru Git - kernel.git/commit
gro: fix aggregation for skb using frag_list
authorEric Dumazet <edumazet@google.com>
Mon, 29 Sep 2014 17:34:29 +0000 (10:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Sep 2014 19:17:59 +0000 (15:17 -0400)
commit385ba03cf4a00a7d15045f275346a5fa7969ad9a
tree338dec69893e9e9b6726f314a2d5e7e4e6b0ba1c
parent15217faa34363c13238b351a6f5e09da90fa2e1d
gro: fix aggregation for skb using frag_list

In commit 1bd5a74eff79 ("net: gro: allow to build full sized skb")
I added a regression for linear skb that traditionally force GRO
to use the frag_list fallback.

Erez Shitrit found that at most two segments were aggregated and
the "if (skb_gro_len(p) != pinfo->gso_size)" test was failing.

This is because pinfo at this spot still points to the last skb in the
chain, instead of the first one, where we find the correct gso_size
information.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 1bd5a74eff79 ("net: gro: allow to build full sized skb")
Reported-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c