xen/netfront: improve truesize tracking
authorIan Campbell <Ian.Campbell@citrix.com>
Mon, 7 Jan 2013 05:32:06 +0000 (05:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2013 03:51:19 +0000 (19:51 -0800)
commitd9a58a782e396a0f04e8445b7ba3763c8a48c7fe
tree319af7e412885f2c7c9c7f45d5d7bfbc68d762cd
parent32fa10b24ef64b41e8ca17068fa9dc625427a05e
xen/netfront: improve truesize tracking

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
Cc: stable@kernel.org # 3.7.x only
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c