]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen/netfront: improve truesize tracking
authorIan Campbell <Ian.Campbell@citrix.com>
Mon, 7 Jan 2013 05:32:06 +0000 (05:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:22 +0000 (08:46 -0800)
commit077264613be71c5698ccb7ff6f97ec8cf3f41317
tree571734b08be4fd62ad2a380516e16042d8a889f9
parent2edbcdd71ca6c7751171221a559efcc3694c3694
xen/netfront: improve truesize tracking

commit d9a58a782e396a0f04e8445b7ba3763c8a48c7fe upstream.

Using RX_COPY_THRESHOLD is incorrect if the SKB is actually smaller
than that. We have already accounted for this in
NETFRONT_SKB_CB(skb)->pull_to so use that instead.

Fixes WARN_ON from skb_try_coalesce.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Sander Eikelenboom <linux@eikelenboom.it>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: annie li <annie.li@oracle.com>
Cc: xen-devel@lists.xen.org
Cc: netdev@vger.kernel.org
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netfront.c