[PATCH net-next v3 08/13] tools: ynl-gen: only validate nested array payload
Jakub Kicinski
kuba at kernel.org
Sat Sep 13 00:27:42 UTC 2025
On Thu, 11 Sep 2025 20:05:01 +0000 Asbjørn Sloth Tønnesen wrote:
> +int ynl_attr_validate_payload(struct ynl_parse_arg *yarg,
> + const struct nlattr *attr, unsigned int type)
> +{
> + return __ynl_attr_validate(yarg, attr, type);
> +}
Why not expose __ynl_attr_validate() to the callers?
I don't think the _payload() suffix is crystal clear, we're still
validating attr, _payload() makes it sound like we're validating
what's inside attr?
More information about the WireGuard
mailing list