genetlink: register family ops as array
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Nov 2013 16:14:44 +0000 (17:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 22:10:41 +0000 (17:10 -0500)
commitd91824c08fbcb265ec930d863fa905e8daa836a4
tree2f3c2f27b68f46e1dc5e1fc3139cd52942f818b2
parent3686ec5e84977eddc796903177e7e0a122585c11
genetlink: register family ops as array

Instead of using a linked list, use an array. This reduces
the data size needed by the users of genetlink, for example
in wireless (net/wireless/nl80211.c) on 64-bit it frees up
over 1K of data space.

Remove the attempted sending of CTRL_CMD_NEWOPS ctrl event
since genl_ctrl_event(CTRL_CMD_NEWOPS, ...) only returns
-EINVAL anyway, therefore no such event could ever be sent.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/genetlink.h
net/netlink/genetlink.c