]> git.baikalelectronics.ru Git - kernel.git/commit
genetlink: use idr_alloc_cyclic for family->id assignment
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 24 Apr 2019 20:18:53 +0000 (22:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 15:59:58 +0000 (11:59 -0400)
commit89065f38a37500bdfe385ed99dadd3584aa70838
tree766d8b19f5cbd48926efce04fda517e1554b8ad8
parent3ce2d2d1c193acf57fc4cd4bb78788be394581e2
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: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c