genetlink: Optimize genl_register_family()
authorKrishna Kumar <krkumar2@in.ibm.com>
Wed, 14 Oct 2009 19:54:53 +0000 (19:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Oct 2009 06:57:26 +0000 (23:57 -0700)
commit93860b08e31a3202b6e67e386811545e719a0165
tree332e0431ec85fc7109e50de6ecd8c67d55f3aa75
parent0d9a40de60a4470777913d8d42044ae548e6545d
genetlink: Optimize genl_register_family()

genl_register_family() doesn't need to call genl_family_find_byid
when GENL_ID_GENERATE is passed during register.

Patch on net-next-2.6, compile and reboot testing only.

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c