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)
commita55e8bb8fb89c90b33791861e59859a39e57ba30
tree47cb71e2663f17bdb8abea097c3c030d03c63d81
parente84448d52190413400663736067f826f28a04ad6
xen-netfront: refactor making Tx requests

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