diff options
author | Eric Dumazet | 2012-07-10 12:03:41 +0200 |
---|---|---|
committer | David S. Miller | 2012-07-11 08:33:12 +0200 |
commit | b28ba72665356438e3a6e3be365c3c3071496840 (patch) | |
tree | 2cf9ff84993f821cd4819db7dd609db1ccbf38f6 /net/sched | |
parent | net: Fix memory leak - vlan_info struct (diff) | |
download | kernel-qcow2-linux-b28ba72665356438e3a6e3be365c3c3071496840.tar.gz kernel-qcow2-linux-b28ba72665356438e3a6e3be365c3c3071496840.tar.xz kernel-qcow2-linux-b28ba72665356438e3a6e3be365c3c3071496840.zip |
IPoIB: fix skb truesize underestimatiom
Or Gerlitz reported triggering of WARN_ON_ONCE(delta < len); in
skb_try_coalesce()
This warning tracks drivers that incorrectly set skb->truesize
IPoIB indeed allocates a full page to store a fragment, but only
accounts in skb->truesize the used part of the page (frame length)
This patch fixes skb truesize underestimation, and
also fixes a performance issue, because RX skbs have not enough tailroom
to allow IP and TCP stacks to pull their header in skb linear part
without an expensive call to pskb_expand_head()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Erez Shitrit <erezsh@mellanox.com>
Cc: Shlomo Pongartz <shlomop@mellanox.com>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions