]> git.baikalelectronics.ru Git - kernel.git/commit
genetlink: use .start callback for dumppolicy
authorJakub Kicinski <kuba@kernel.org>
Fri, 2 Oct 2020 21:49:56 +0000 (14:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2020 02:11:12 +0000 (19:11 -0700)
commitc6b31ebf46b4ee050ede7bda2090b49068de5198
treee6a957bd913b29d763dbd99773170385d480b6c4
parent1a41ec70e46c708c08de50fb6f51624efac25a25
genetlink: use .start callback for dumppolicy

The structure of ctrl_dumppolicy() is clearly split into
init and dumping. Move the init to a .start callback
for clarity, it's a more idiomatic netlink dump code structure.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c