diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2025-09-05 17:49:33 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-09-09 21:13:59 +0200 |
| commit | 62399155319479f86b07d259b284f6a2991aaba7 (patch) | |
| tree | 685948151c4e513c1da29f7c0633f47ddb311efd /test | |
| parent | f9ee749cbb9bb1b962b37d6fd4655683b9953c13 (diff) | |
| download | passt-62399155319479f86b07d259b284f6a2991aaba7.tar passt-62399155319479f86b07d259b284f6a2991aaba7.tar.gz passt-62399155319479f86b07d259b284f6a2991aaba7.tar.bz2 passt-62399155319479f86b07d259b284f6a2991aaba7.tar.lz passt-62399155319479f86b07d259b284f6a2991aaba7.tar.xz passt-62399155319479f86b07d259b284f6a2991aaba7.tar.zst passt-62399155319479f86b07d259b284f6a2991aaba7.zip | |
vhost-user: Fix VHOST_USER_GET_QUEUE_NUM to return number of queues
The vhost-user specification states that VHOST_USER_GET_QUEUE_NUM should
return the maximum number of queues supported by the back-end, not the
number of virtqueues. Since each queue pair consists of RX and TX
virtqueues, we need to divide VHOST_USER_MAX_QUEUES by 2 to get the
correct queue count.
Also rename VHOST_USER_MAX_QUEUES to VHOST_USER_MAX_VQS throughout the
codebase to better reflect that it represents the maximum number of
virtqueues, not queue pairs.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
