xen-netfront: Factor queue-specific data into queue struct.
authorAndrew J. Bennieston <andrew.bennieston@citrix.com>
Wed, 4 Jun 2014 09:30:44 +0000 (10:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jun 2014 21:48:17 +0000 (14:48 -0700)
commit2688fcb79498246d45a0fa5900e415bc97661b6f
tree16df8085b09f6b6d530c1aef577d45a38223d2eb
parent8d3d53b3e43363e79ab9a9ecc149b06c1314b25d
xen-netfront: Factor queue-specific data into queue struct.

In preparation for multi-queue support in xen-netfront, move the
queue-specific data from struct netfront_info to struct netfront_queue,
and update the rest of the code to use this.

Also adds loops over queues where appropriate, even though only one is
configured at this point, and uses alloc_etherdev_mq() and the
corresponding multi-queue netif wake/start/stop functions in preparation
for multiple active queues.

Finally, implements a trivial queue selection function suitable for
ndo_select_queue, which simply returns 0, selecting the first (and
only) queue.

Signed-off-by: Andrew J. Bennieston <andrew.bennieston@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c