summaryrefslogtreecommitdiff
path: root/net/batman-adv/netlink.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-11-04 22:13:31 +0300
committerDavid S. Miller <davem@davemloft.net>2022-11-07 15:30:16 +0300
commitff14adbd8779f098576ffdb98381809ed8e40dfe (patch)
treee5ce47940111da476dd6e4dcc2ebb78f1ec0b9b7 /net/batman-adv/netlink.c
parente2dbda0fd2aec4ff43f5772b1b251786d257f407 (diff)
downloadlinux-ff14adbd8779f098576ffdb98381809ed8e40dfe.tar.xz
genetlink: refactor the cmd <> policy mapping dump
The code at the top of ctrl_dumppolicy() dumps mappings between ops and policies. It supports dumping both the entire family and single op if dump is filtered. But both of those cases are handled inside a loop, which makes the logic harder to follow and change. Refactor to split the two cases more clearly. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/netlink.c')
0 files changed, 0 insertions, 0 deletions