Skip to content

Commit

Permalink
xen-netfront: Factor queue-specific data into queue struct.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew J. Bennieston authored and David S. Miller committed Jun 4, 2014
1 parent 8d3d53b commit 2688fcb
Showing 1 changed file with 579 additions and 393 deletions.
Loading

0 comments on commit 2688fcb

Please sign in to comment.