batman-adv: Move common genl doit code pre/post hooks
authorSven Eckelmann <sven@narfation.org>
Fri, 23 Nov 2018 11:00:28 +0000 (12:00 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 9 Feb 2019 13:28:13 +0000 (14:28 +0100)
commitc4a7a8d9bb8f9e712d0e4c90c3d11b4388b621ba
tree6e5dd2f692ca71ad7244294512f833eb7b852237
parent180cf62cec0418a64dade18b3575047af46c6335
batman-adv: Move common genl doit code pre/post hooks

The commit ff4c92d85c6f ("genetlink: introduce pre_doit/post_doit hooks")
intoduced a mechanism to run specific code for doit hooks before/after the
hooks are run. Since all doit hooks are requiring the batadv softif, it
should be retrieved/freed in these helpers to simplify the code.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/netlink.c