[PATCH v2 0/2] IB:mad Use ID allocator routines to allocate agent number
From: Hans Westgaard Ry
Date: Thu Jun 07 2018 - 06:53:00 EST
v2:
Implement ida_get_simple_cyclic and use it when allocating ib_mad_client_ids.
Hans Westgaard Ry (2):
idr: Add ida_simple_get_cyclic
IB/mad: Use ID allocator routines to allocate agent number
drivers/infiniband/core/mad.c | 24 +++++++++++++---
include/linux/idr.h | 8 ++++--
lib/idr.c | 66 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 92 insertions(+), 6 deletions(-)
--
2.14.3