Re: [PATCH] net/mlx5: Add sysfs entry for vhca to /sys/class/infiniband/mlx5

From: Leon Romanovsky
Date: Wed May 18 2022 - 00:50:10 EST


On Sun, May 15, 2022 at 10:36:07AM +0300, Mark Bloch wrote:
>
>
> On 5/14/2022 08:09, Leon Romanovsky wrote:
> > On Fri, May 13, 2022 at 05:46:16PM +0000, Rohit Sajan Kumar wrote:
> >> Hey,
> >>
> >> Sending this as a gentle reminder to review the patch sent earlier this week which can be found in this email chain.
> >
> > Patches that sent in HTML format, to wrong addresses and not visible
> > in patchworks/ML, without target net-next/rdma-next/e.t.c., with wrong
> > title are generally ignored.
> >
> > Why vhca_id that returned from MLX5_IB_METHOD_QUERY_PORT is not enough?
>
> The driver returns that only when in switchdev mode.
> I don't see why that can't be changed but that's the state today.

My guess is that it is not needed outside of switchdev mode. This is why
I would like to know why current solution is not enough.

Thanks