]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: Eliminate kmalloc in netlink dump operation.
authorPravin B Shelar <pshelar@nicira.com>
Thu, 15 Aug 2013 22:31:06 +0000 (15:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2013 22:51:20 +0000 (15:51 -0700)
commit285ec1599c508dde0a026ead5ef970f35d0f95ea
treeb18d6ba0555291573c237dea733a39f03b6b5192
parenta13294ae7c5aff8e25f0478e1d999322badf82bc
netlink: Eliminate kmalloc in netlink dump operation.

Following patch stores struct netlink_callback in netlink_sock
to avoid allocating and freeing it on every netlink dump msg.
Only one dump operation is allowed for a given socket at a time
therefore we can safely convert cb pointer to cb struct inside
netlink_sock.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c
net/netlink/af_netlink.h