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)
commit6a8ed462f16b8455eec5ae00eb6014159a6721f0
treefa48619820077f351d2a30e3566bae0b4dcd11ba
parent6caab7b0544e83e6c160b5e80f5a4a7dd69545c7
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