diff options
author | Steven Luong <sluong@cisco.com> | 2021-08-23 14:31:16 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-08-26 14:48:54 +0000 |
commit | ce5075823f8c3629d8233994d129a6835e7226a0 (patch) | |
tree | bb6841667774512f2cb473147d8a918d6272d5c4 /src/vnet/devices/virtio/vhost_user.h | |
parent | 1eaaba41982861b59f0b70470604f6d111c68fa6 (diff) |
vhost: migrate to new TX infra
Take advantage of the new TX infra and support manual thread placement
Type: improvement
Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Id8023846a2eb59125fcf2f80f4f11eb681cf14dc
Diffstat (limited to 'src/vnet/devices/virtio/vhost_user.h')
-rw-r--r-- | src/vnet/devices/virtio/vhost_user.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/vnet/devices/virtio/vhost_user.h b/src/vnet/devices/virtio/vhost_user.h index 8ecf4a3aca7..59db5b4c592 100644 --- a/src/vnet/devices/virtio/vhost_user.h +++ b/src/vnet/devices/virtio/vhost_user.h @@ -30,8 +30,8 @@ * The max number for q pair is naturally 128. */ #define VHOST_VRING_MAX_MQ_PAIR_SZ 128 -#define VHOST_VRING_IDX_RX(qid) (2*qid) -#define VHOST_VRING_IDX_TX(qid) (2*qid + 1) +#define VHOST_VRING_IDX_RX(qid) (2 * (qid)) +#define VHOST_VRING_IDX_TX(qid) (2 * (qid) + 1) #define VHOST_USER_VRING_NOFD_MASK 0x100 @@ -279,10 +279,6 @@ typedef struct void *log_base_addr; u64 log_size; - /* Whether to use spinlock or per_cpu_tx_qid assignment */ - u8 use_tx_spinlock; - u16 *per_cpu_tx_qid; - u8 enable_gso; /* Packed ring configured */ |