Re: [PATCH net-next 9/9] genetlink: allow dumping command-specific policy

2020-10-01 Thread Jakub Kicinski
On Thu, 01 Oct 2020 23:03:01 +0200 Johannes Berg wrote: > On Thu, 2020-10-01 at 11:30 -0700, Jakub Kicinski wrote: > > > > +++ b/net/netlink/genetlink.c > > @@ -1119,6 +1119,7 @@ static const struct nla_policy ctrl_policy_policy[] = > > { > > [CTRL_ATTR_FAMILY_ID] = { .type = NLA_U16 }, > >

Re: [PATCH net-next 9/9] genetlink: allow dumping command-specific policy

2020-10-01 Thread Johannes Berg
On Thu, 2020-10-01 at 11:30 -0700, Jakub Kicinski wrote: > > +++ b/net/netlink/genetlink.c > @@ -1119,6 +1119,7 @@ static const struct nla_policy ctrl_policy_policy[] = { > [CTRL_ATTR_FAMILY_ID] = { .type = NLA_U16 }, > [CTRL_ATTR_FAMILY_NAME] = { .type = NLA_NUL_STRING, >

[PATCH net-next 9/9] genetlink: allow dumping command-specific policy

2020-10-01 Thread Jakub Kicinski
Right now CTRL_CMD_GETPOLICY can only dump the family-wide policy. Support dumping policy of a specific op. v1: - don't echo op in the output in a naive way, this should make it cleaner to extend the output format for dumping policies for all the commands at once in the future. Signed-off-