public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/3] This series contains fixes and improvements to the vhost-user implementation
@ 2025-09-05 15:49 Laurent Vivier
  2025-09-05 15:49 ` [PATCH 1/3] vhost-user: Fix VHOST_USER_GET_QUEUE_NUM to return number of queues Laurent Vivier
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Laurent Vivier @ 2025-09-05 15:49 UTC (permalink / raw)
  To: passt-dev; +Cc: Laurent Vivier


The first patch fixes a protocol compliance issue where VHOST_USER_GET_QUEUE_NUM
was incorrectly returning the number of virtqueues instead of queue pairs. The
vhost-user specification clearly states this should return the maximum number
of queues supported by the backend. Since each queue consists of an RX/TX pair,
the correct value is VHOST_USER_MAX_VQS / 2. This patch also renames the
constant to better reflect its meaning.

The second and third patches address virtqueue handling in the UDP and TCP
receive paths. These changes pass the virtqueue pointer explicitly to the
receive functions, enabling proper queue selection for future multiqueue
support. This ensures packets are processed on the same virtqueue as the
caller.

These changes lay the groundwork for full multiqueue support while fixing
existing protocol compliance issues.

Laurent Vivier (3):
  vhost-user: Fix VHOST_USER_GET_QUEUE_NUM to return number of queues
  udp_vu: Pass virtqueue pointer to udp_vu_sock_recv()
  tcp_vu: Pass virtqueue pointer to tcp_vu_sock_recv()

 tcp_vu.c     |  8 ++++----
 udp_vu.c     |  9 +++++----
 vhost_user.c | 16 +++++++++-------
 virtio.h     |  4 ++--
 4 files changed, 20 insertions(+), 17 deletions(-)

-- 
2.50.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-09 20:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-05 15:49 [PATCH 0/3] This series contains fixes and improvements to the vhost-user implementation Laurent Vivier
2025-09-05 15:49 ` [PATCH 1/3] vhost-user: Fix VHOST_USER_GET_QUEUE_NUM to return number of queues Laurent Vivier
2025-09-08  1:58   ` David Gibson
2025-09-05 15:49 ` [PATCH 2/3] udp_vu: Pass virtqueue pointer to udp_vu_sock_recv() Laurent Vivier
2025-09-08  1:59   ` David Gibson
2025-09-05 15:49 ` [PATCH 3/3] tcp_vu: Pass virtqueue pointer to tcp_vu_sock_recv() Laurent Vivier
2025-09-08  2:00   ` David Gibson
2025-09-09 20:24 ` [PATCH 0/3] This series contains fixes and improvements to the vhost-user implementation Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).