[dpdk-dev] [v2] vdpa/mlx5: fix event queue number query

David Marchand david.marchand at redhat.com
Tue Jul 28 14:05:17 CEST 2020


On Tue, Jul 28, 2020 at 11:23 AM Xueming Li <xuemingl at mellanox.com> wrote:
>
> With latest rte api, vdpa example failed on vq setup, the api to get
> event queue of specified core failed.
>
> After
> commit 67ae5936c4fc36 ("eal: fix lcore accessors for non-EAL threads"),
> code of "vhost-event" thread to get current cpu id returns -1.
>

This is how you figured this problem, but the first part of the
commitlog gives the impression there is a regression in the EAL.
I would prefer it is removed (maybe simply when applying?).


> On the other hand, internal api devx_query_eqn expects index of event
> queue vectors, no need to use cpu id. As the doorbell handling thread is
> per device, it's sufficient to use default event queue.
>
> This patch uses the default id(0) as event queue index.
>
> Fixes: 8395927cdfaf ("vdpa/mlx5: prepare HW queues")
>
> Signed-off-by: Xueming Li <xuemingl at mellanox.com>
> Acked-by: Matan Azrad <matan at mellanox.com>


Thanks.

-- 
David Marchand



More information about the dev mailing list