]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5573cb3787a533972b79816c8ff70e495ebf340
tree47cb71e2663f17bdb8abea097c3c030d03c63d81
parentd074f7c6330f2c8f8f645b61574effcf6185f3d3
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