virtio: introduce the consistent-qp feature 97/41797/3
authorMohammed Hawari <mohammed@hawari.fr>
Wed, 30 Oct 2024 18:17:07 +0000 (19:17 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 31 Oct 2024 19:47:58 +0000 (19:47 +0000)
commitbd32d6234cad2af5bc220c6976aa84a758131427
treee992d9597bec3891a45902bc85f529be74e381e4
parentbfad6b7a8f0a88531923e39f50b70cb5be6d52d7
virtio: introduce the consistent-qp feature

In certain usecases related to Linux legacy pinning of flows on queue
pairs, it is desirable that, for a given index, the rx and tx virtio
queue be handled by the same worker. This change introduces a flag for
virtio and tap interfaces that allow such a mapping.
Example with two workers rxq 0 and txq 0 on worker 0
         rxq 1 and txq 1 on worker 1
         txq 2 on main thread

Change-Id: I1b74a4788843fd1d0e8dcb4e9da30e609e088fe3
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Type: improvement
src/vnet/devices/tap/cli.c
src/vnet/devices/tap/tap.c
src/vnet/devices/tap/tap.h
src/vnet/devices/virtio/cli.c
src/vnet/devices/virtio/pci.c
src/vnet/devices/virtio/pci.h
src/vnet/devices/virtio/virtio.c
src/vnet/devices/virtio/virtio.h