Jakub Kicinski ff14adbd87 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>
2022-11-07 12:30:16 +00:00
..
2022-11-03 15:16:50 +01:00
2022-11-02 11:58:13 +00:00
2022-10-28 18:31:40 -07:00
2022-08-22 14:26:30 +01:00
2022-08-22 14:26:30 +01:00