xen-netfront: Add support for multiple queues
authorAndrew J. Bennieston <andrew.bennieston@citrix.com>
Wed, 4 Jun 2014 09:30:45 +0000 (10:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jun 2014 21:48:17 +0000 (14:48 -0700)
commit50ee60611bf0c7328e5cae438ea5c26590f3f747
tree25c371c319d39bee985cc50dd378bff191e7e2d4
parent2688fcb79498246d45a0fa5900e415bc97661b6f
xen-netfront: Add support for multiple queues

Build on the refactoring of the previous patch to implement multiple
queues between xen-netfront and xen-netback.

Check XenStore for multi-queue support, and set up the rings and event
channels accordingly.

Write ring references and event channels to XenStore in a queue
hierarchy if appropriate, or flat when using only one queue.

Update the xennet_select_queue() function to choose the queue on which
to transmit a packet based on the skb hash result.

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