xen-netfront: refactor making Tx requests
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 13 Jan 2015 17:16:44 +0000 (17:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jan 2015 05:22:01 +0000 (00:22 -0500)
Eliminate all the duplicate code for making Tx requests by
consolidating them into a single xennet_make_one_txreq() function.

xennet_make_one_txreq() and xennet_make_txreqs() work with pages and
offsets so it will be easier to make netfront handle highmem frags in
the future.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c

Simple merge