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 },
> >
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,
>
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-