alistair23-linux/net/netlink
Johannes Berg 2ae0f17df1 genetlink: use idr to track families
Since generic netlink family IDs are small integers, allocated
densely, IDR is an ideal match for lookups. Replace the existing
hand-written hash-table with IDR for allocation and lookup.

This lets the families only be written to once, during register,
since the list_head can be removed and removal of a family won't
cause any writes.

It also slightly reduces the code size (by about 1.3k on x86-64).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-27 16:16:09 -04:00
..
af_netlink.c netlink: do not enter direct reclaim from netlink_dump() 2016-10-06 20:53:13 -04:00
af_netlink.h net/netlink/af_netlink.h: Remove unused structure. 2016-06-09 22:26:24 -07:00
diag.c netlink: don't forget to release a rhashtable_iter structure 2016-09-07 17:29:38 -07:00
genetlink.c genetlink: use idr to track families 2016-10-27 16:16:09 -04:00
Kconfig netlink: remove mmapped netlink support 2016-02-18 11:42:18 -05:00
Makefile