OSDN Git Service

virtio: Make vp_set_vq_affinity() take a mask.
authorCaleb Raitto <caraitto@google.com>
Fri, 10 Aug 2018 01:18:28 +0000 (18:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 19:02:18 +0000 (12:02 -0700)
commit19e226e8cc5da02f17ed119f9137036c0f0f5d80
treeb5c1ac64ee439a15a3dd0c9e056acc676b8590b0
parent07624df1c9efd4b7f2f6762581587c590b03c7a2
virtio: Make vp_set_vq_affinity() take a mask.

Make vp_set_vq_affinity() take a cpumask instead of taking a single CPU.

If there are fewer queues than cores, queue affinity should be able to
map to multiple cores.

Link: https://patchwork.ozlabs.org/patch/948149/
Suggested-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Caleb Raitto <caraitto@google.com>
Acked-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/virtio/virtio_crypto_core.c
drivers/net/virtio_net.c
drivers/virtio/virtio_pci_common.c
drivers/virtio/virtio_pci_common.h
include/linux/virtio_config.h