]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netfront: use __pskb_pull_tail to ensure linear area is big enough on RX
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 22 Aug 2012 00:26:47 +0000 (00:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2012 16:24:04 +0000 (12:24 -0400)
commit0c706a5c4cf18b4f201230a798439c1478915b61
tree6e17dc053bb49af826f9b4a00293f717833dad5b
parentef3f099df169183b185bda2a3da37958f6a0f7bb
xen-netfront: use __pskb_pull_tail to ensure linear area is big enough on RX

I'm slightly concerned by the "only in exceptional circumstances"
comment on __pskb_pull_tail but the structure of an skb just created
by netfront shouldn't hit any of the especially slow cases.

This approach still does slightly more work than the old way, since if
we pull up the entire first frag we now have to shuffle everything
down where before we just received into the right place in the first
place.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: xen-devel@lists.xensource.com
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c