Re: [PATCH for-next] RDMA/nldev: Add parent bdf to device information dump

Jason Gunthorpe
2020-11-10T13:41:27Z

On Tue, Nov 10, 2020 at 09:49:11AM +0200, Gal Pressman wrote:
> On 09/11/2020 19:57, Jason Gunthorpe wrote:
> > On Mon, Nov 09, 2020 at 11:03:47AM +0200, Gal Pressman wrote:
> >
> >>> The thing is, is is still useless. You have to consult sysfs to
> >>> understand what bus it is scoped on to do anything further with
> >>> it. Can't just assume it is PCI.
> >>
> >> This can be solved with Parav's suggestion.
> >
> > Now you are adding more stuff.
> >
> > What is wrong with reading sysfs? sysfs is where topology information
> > lives, why do we need to denormalize things?
>
> And yet you have lspci so you don't have to dig through the sysfs files by hand
> for that topology.
> Please drop this patch.

If you want to add something to rdma tool it can read sysfs and disply it

Jason