On Mon, Jan 14, 2019 at 08:40:16PM +0000, Jason Gunthorpe wrote: > On Mon, Jan 14, 2019 at 04:18:23PM +0200, Leon Romanovsky wrote: > > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > > > The IDs are supposed to be generated in ranges with reserved slots for > > HW management, (e.g. reserved_pd in mlx4 and hns), so provide extra > > function to set supported range. > > > > This function was names rdma_rt_* and not rdma_restrack_* to simplify > > the usage and spread across drivers. > > > > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > drivers/infiniband/core/restrack.c | 18 ++++++++++++++++++ > > include/rdma/restrack.h | 11 +++++++++++ > > 2 files changed, 29 insertions(+) > > > > diff --git a/drivers/infiniband/core/restrack.c b/drivers/infiniband/core/restrack.c > > index c50e95a82915..a3c94fe910a2 100644 > > +++ b/drivers/infiniband/core/restrack.c > > @@ -27,6 +27,14 @@ struct rdma_restrack_root { > > * @xa: Array of XArray structure to hold restrack entries. > > */ > > struct xarray xa; > > + /** > > + * @reserved: Keep aside this number of indexes > > + */ > > + u32 reserved; > > + /** > > + * @max: Maximal supported numer of indexes > > number Thanks > > Jason
Attachment:
signature.asc
Description: PGP signature