[PATCH v2] vhost: restrict set max queue pair API to VDUSE

Maxime Coquelin maxime.coquelin at redhat.com
Mon Oct 7 09:29:31 CEST 2024



On 10/3/24 10:11, Maxime Coquelin wrote:
> In order to avoid breaking Vhost-user live-migration, we want the
> rte_vhost_driver_set_max_queue_num API to only be effective with
> VDUSE.
> 
> Furthermore, this API is only really needed for VDUSE where the
> device number of queues is defined by the backend. For Vhost-user,
> this is defined by the frontend (e.g. QEMU), so the advantages of
> restricting more the maximum number of queue pairs is limited to
> a small memory gain (a handful of pointers).
> 
> Fixes: 4aa1f88ac13d ("vhost: add API to set max queue pairs")
> Cc: stable at dpdk.org
> 
> Reported-by: Yu Jiang <yux.jiang at intel.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
> 
> Changes in v2:
> ==============
> - Document the change in the API (David)
> 
> ---
> 
>   lib/vhost/rte_vhost.h |  2 ++
>   lib/vhost/socket.c    | 12 ++++++++++++
>   2 files changed, 14 insertions(+)
> 


Applied to next-virtio/for-next-net

Thanks,
Maxime



More information about the dev mailing list