xen: netback: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 5 Oct 2011 00:28:46 +0000 (00:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Oct 2011 21:36:00 +0000 (17:36 -0400)
commitea066ad158631f5a31b1a5b636cf68120494ed23
tree0b308b59b41b4d612ec1c6d9d38c23bf61127383
parent94d60a7bc700f50720286e423ab1540ffedd5c15
xen: netback: convert to SKB paged frag API.

netback currently uses frag->page to store a temporary index reference while
processing incoming requests. Since frag->page is to become opaque switch
instead to using page_offset. Add a wrapper to tidy this up and propagate the
fact that the indexes are only u16 through the code (this was already true in
practice but unsigned long and in were inconsistently used as variable and
parameter types)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: xen-devel@lists.xensource.com
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c