genetlink: support split policies in ctrl_dumppolicy_put_op()
authorJakub Kicinski <kuba@kernel.org>
Fri, 4 Nov 2022 19:13:37 +0000 (12:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 12:30:16 +0000 (12:30 +0000)
commit26588edbef6094c41734b4443c2d7b4c4bd0085f
tree65e98a66116125159adfd2debe8212791dbd541a
parent92d3d9ba9bb3ab17b5bd4fd46032ced0264872c9
genetlink: support split policies in ctrl_dumppolicy_put_op()

Pass do and dump versions of the op to ctrl_dumppolicy_put_op()
so that it can provide a different policy index for the two.

Since we now look at policies, and those are set appropriately
there's no need to look at the GENL_DONT_VALIDATE_DUMP flag.

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>
net/netlink/genetlink.c