]> git.baikalelectronics.ru Git - kernel.git/commit
xen: netback: handle compound page fragments on transmit.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 10 Oct 2012 03:48:42 +0000 (03:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2012 02:50:45 +0000 (22:50 -0400)
commitb7f47fbc1fe63c715e591b58c90de8555fe627d9
treefa48619820077f351d2a30e3566bae0b4dcd11ba
parentc1218fda3c8c25310f8d599dc06b9c1e5cc8c91e
xen: netback: handle compound page fragments on transmit.

An SKB paged fragment can consist of a compound page with order > 0.
However the netchannel protocol deals only in PAGE_SIZE frames.

Handle this in netbk_gop_frag_copy and xen_netbk_count_skb_slots by
iterating over the frames which make up the page.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Konrad Rzeszutek Wilk <konrad@kernel.org>
Cc: Sander Eikelenboom <linux@eikelenboom.it>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c