[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180919111048.092376b2@redhat.com>
Date: Wed, 19 Sep 2018 11:10:48 +0200
From: Jiri Benc <jbenc@...hat.com>
To: Johannes Berg <johannes@...solutions.net>
Cc: netdev@...r.kernel.org, Johannes Berg <johannes.berg@...el.com>
Subject: Re: [RFC 4/5] netlink: prepare validate extack setting for
recursion
On Tue, 18 Sep 2018 15:12:11 +0200, Johannes Berg wrote:
> static int validate_nla(const struct nlattr *nla, int maxtype,
> const struct nla_policy *policy,
> - const char **error_msg)
> + struct netlink_ext_ack *extack, bool *extack_set)
Can't the extack_set be included in the struct netlink_ext_ack? One less
parameter to pass around and the NL_SET_* macros could check this on
their own.
This way, it can be also easily turned to a more complex mechanism,
such as the one Marcelo proposed.
Thanks,
Jiri
Powered by blists - more mailing lists