]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: rework policy dump to support multiple policies
authorJohannes Berg <johannes.berg@intel.com>
Sat, 3 Oct 2020 08:44:43 +0000 (10:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2020 21:18:29 +0000 (14:18 -0700)
commitc25ca074dc0b1bc1f70b52c4fe01f5fdd02d4c5b
treec195449e729188a3f50df194b5842720d467654d
parentddd9710c4c562980e1cf0cde6b3b6537490ef5ad
netlink: rework policy dump to support multiple policies

Rework the policy dump code a bit to support adding multiple
policies to a single dump, in order to e.g. support per-op
policies in generic netlink.

v2:
 - move kernel-doc to implementation [Jakub]
 - squash the first patch to not flip-flop on the prototype
   [Jakub]
 - merge netlink_policy_dump_get_policy_idx() with the old
   get_policy_idx() we already had
 - rebase without Jakub's patch to have per-op dump

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
net/netlink/genetlink.c
net/netlink/policy.c