Re: [PATCH] genetlink: use idr_alloc_cyclic for family->id assignment

2019-04-26 Thread David Miller
From: Marcel Holtmann Date: Wed, 24 Apr 2019 22:18:53 +0200 > When allocating the next family->id it makes more sense to use > idr_alloc_cyclic to avoid re-using a previously used family->id as much > as possible. > > Signed-off-by: Marcel Holtmann Applied, thanks Marcel.

[PATCH] genetlink: use idr_alloc_cyclic for family->id assignment

2019-04-24 Thread Marcel Holtmann
When allocating the next family->id it makes more sense to use idr_alloc_cyclic to avoid re-using a previously used family->id as much as possible. Signed-off-by: Marcel Holtmann --- net/netlink/genetlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netlink/genet