virtio_net: Stripe queue affinities across cores.
authorCaleb Raitto <caraitto@google.com>
Fri, 10 Aug 2018 00:28:40 +0000 (17:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 19:02:18 +0000 (12:02 -0700)
commit2ca653d607ce59f2729173a7ea56dbfa6330ec88
tree6ef31a69ef832a78efc2e40bb148a414f5f7480c
parent19e226e8cc5da02f17ed119f9137036c0f0f5d80
virtio_net: Stripe queue affinities across cores.

Always set the affinity hint, even if #cpu != #vq.

Handle the case where #cpu > #vq (including when #cpu % #vq != 0) and
when #vq > #cpu (including when #vq % #cpu != 0).

Signed-off-by: Caleb Raitto <caraitto@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Jon Olson <jonolson@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c