RE: [EXT] Re: [PATCH rdma-next] RDMA/qedr: Add kernel capability flags for dpm enabled mode

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

 



> From: Jason Gunthorpe <jgg@xxxxxxxx>
> Sent: Wednesday, November 20, 2019 6:53 PM
> 
> External Email
> 
> ----------------------------------------------------------------------
> On Wed, Nov 20, 2019 at 03:20:09PM +0200, Michal Kalderon wrote:
> > diff --git a/include/uapi/rdma/qedr-abi.h
> > b/include/uapi/rdma/qedr-abi.h index c022ee26089b..a0b83c9d4498
> 100644
> > +++ b/include/uapi/rdma/qedr-abi.h
> > @@ -48,6 +48,18 @@ struct qedr_alloc_ucontext_req {
> >  	__u32 reserved;
> >  };
> >
> > +#define QEDR_LDPM_MAX_SIZE	(8192)
> > +#define QEDR_EDPM_TRANS_SIZE	(64)
> > +
> > +enum qedr_rdma_dpm_type {
> > +	QEDR_DPM_TYPE_NONE		= 0,
> > +	QEDR_DPM_TYPE_ROCE_ENHANCED	= 1 << 0,
> > +	QEDR_DPM_TYPE_ROCE_LEGACY	= 1 << 1,
> > +	QEDR_DPM_TYPE_IWARP_LEGACY	= 1 << 2,
> > +	QEDR_DPM_TYPE_RESERVED		= 1 << 3,
> > +	QEDR_DPM_SIZES_SET		= 1 << 4,
> > +};
> > +
> >  struct qedr_alloc_ucontext_resp {
> >  	__aligned_u64 db_pa;
> >  	__u32 db_size;
> > @@ -59,10 +71,12 @@ struct qedr_alloc_ucontext_resp {
> >  	__u32 sges_per_recv_wr;
> >  	__u32 sges_per_srq_wr;
> >  	__u32 max_cqes;
> > -	__u8 dpm_enabled;
> > +	__u8 dpm_flags;
> 
> Is this redefinition backwards compatible with old user space?
> That should be described in the commit message
>
Yes it is, I'll add to the commit message, thanks,
 
> Jason




[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