RE: [PATCH for-rc] RDMA/vmw_pvrdma: Fix network_hdr_type reported in WC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jason Gunthorpe <jgg@xxxxxxxxxx>
Sent: Friday, January 15, 2021 8:51 PM
> On Fri, Jan 15, 2021 at 04:58:58AM +0000, Bryan Tan wrote:
> > > From: Jason Gunthorpe <jgg@xxxxxxxxxx>
> > > Sent: Friday, January 15, 2021 1:24 AM
> > > On Thu, Jan 14, 2021 at 06:26:48AM -0800, Bryan Tan wrote:
> > > > The PVRDMA device defines network_hdr_type according to an old
> > > > definition of the rdma_network_type enum that has since changed,
> > > > resulting in the wrong rdma_network_type being reported. Fix this by
> > > > explicitly defining the enum used by the PVRDMA device and adding a
> > > > function to convert the pvrdma_network_type to rdma_network_type enum.
> > >
> > > How come I can't find anything reading this in rdma-core?
> > >
> > > $ ~/oss/rdma-core#git grep network_hdr_type
> > > kernel-headers/rdma/vmw_pvrdma-abi.h: __u8 network_hdr_type;
> > >
> > > ??
> >
> > network_hdr_type isn't exposed in the userspace WC ibv_wc.
> 
> So this is "HW" API then?
> <snip>
> Well, the struct that holds the value is in a uapi header, so the
> definition should be too. If you are defining HW data in uapi then may
> as well define all of it.

Yes, the pvrdma_cqe struct is populated by the HW. Both the driver and
the userspace library use this struct to populate the corresponding WCs.
That makes sense, let me move them into the uapi header. Apologies if
this is answered somewhere, couldn't find any info--am I responsible for
updating the header in rdma-core then?

Bryan




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux