Skip to content
Commit 4e43df38 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by David S. Miller
Browse files

genetlink: use idr_alloc_cyclic for family->id assignment



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: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88ef66a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment