]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited273b77de9c15161f8431cae8aa07e0792228cf
tree6ef31a69ef832a78efc2e40bb148a414f5f7480c
parent58327022b82ecc667b265d501bb4453a16d8958e
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