net: Fix truesize accounting in skb_gro_receive()
authorEric Dumazet <edumazet@google.com>
Wed, 2 May 2012 23:33:21 +0000 (23:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2012 17:18:37 +0000 (13:18 -0400)
commit715dc1f342713816d1be1c37643a2c9e6ee181a7
tree493d46be738d5cacba3ba110c2aa35e58e53cb93
parentaf94bf6db1d58d26f1cdab145b6312ad363254a6
net: Fix truesize accounting in skb_gro_receive()

GRO is very optimistic in skb truesize estimates, only taking into
account the used part of fragments.

Be conservative, and use more precise computation, so that bloated GRO
skbs can be collapsed eventually.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Alexander Duyck <alexander.h.duyck@intel.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c