vdpa/sfc: support multi-queue
Increase the number of default Rx/Tx queue pairs to 8, and add MQ feature flag to vDPA protocol features. Signed-off-by: Abhimanyu Saini <absaini@amd.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
This commit is contained in:
parent
05308e34bf
commit
f2c0e63428
@ -286,6 +286,8 @@ sfc_vdpa_estimate_resource_limits(struct sfc_vdpa_adapter *sva)
|
||||
SFC_VDPA_ASSERT(max_queue_cnt > 0);
|
||||
|
||||
sva->max_queue_count = max_queue_cnt;
|
||||
sfc_vdpa_log_init(sva, "NIC init done with %u pair(s) of queues",
|
||||
max_queue_cnt);
|
||||
|
||||
return 0;
|
||||
|
||||
|
@ -24,14 +24,16 @@
|
||||
(1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ) | \
|
||||
(1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD) | \
|
||||
(1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \
|
||||
(1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD))
|
||||
(1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) | \
|
||||
(1ULL << VHOST_USER_PROTOCOL_F_MQ))
|
||||
|
||||
/*
|
||||
* Set of features which are enabled by default.
|
||||
* Protocol feature bit is needed to enable notification notifier ctrl.
|
||||
*/
|
||||
#define SFC_VDPA_DEFAULT_FEATURES \
|
||||
(1ULL << VHOST_USER_F_PROTOCOL_FEATURES)
|
||||
((1ULL << VHOST_USER_F_PROTOCOL_FEATURES) | \
|
||||
(1ULL << VIRTIO_NET_F_MQ))
|
||||
|
||||
#define SFC_VDPA_MSIX_IRQ_SET_BUF_LEN \
|
||||
(sizeof(struct vfio_irq_set) + \
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include <rte_vdpa.h>
|
||||
|
||||
#define SFC_VDPA_MAX_QUEUE_PAIRS 1
|
||||
#define SFC_VDPA_MAX_QUEUE_PAIRS 8
|
||||
|
||||
enum sfc_vdpa_context {
|
||||
SFC_VDPA_AS_VF
|
||||
|
Loading…
x
Reference in New Issue
Block a user