On Tue, 2018-10-02 at 11:13 +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > Changelog v0->v1: > * Add new patch which increases number of RDMA ports > * Rebase > > There is no need to do custom logic to allocate indexes while kernel > provides specific API for that. > > Thanks > > Leon Romanovsky (3): > RDMA/core: Increase total number of RDMA ports across all devices > RDMA/uverbs: Use kernel API to allocate uverbs indexes > RDMA/umad: Use kernel API to allocate umad indexes > > drivers/infiniband/core/core_priv.h | 2 +- > drivers/infiniband/core/user_mad.c | 11 +++++------ > drivers/infiniband/core/uverbs_main.c | 12 ++++++------ > 3 files changed, 12 insertions(+), 13 deletions(-) > > -- > 2.14.4 > I'm kinda with Jason on this one. Not sure I think it's all that much of an improvement. But, it doesn't hurt either and it keeps us from hand rolling something there is an API for, so I'll apply it. -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Attachment:
signature.asc
Description: This is a digitally signed message part