Re: [PATCH net-next V8 06/14] devlink: Allow parent dev for rate-set and rate-new
From: Cosmin Ratiu
Date: Tue Mar 24 2026 - 15:31:19 EST
On Tue, 2026-03-24 at 14:28 +0200, Tariq Toukan wrote:
> From: Cosmin Ratiu <cratiu@xxxxxxxxxx>
> diff --git a/net/devlink/netlink_gen.c b/net/devlink/netlink_gen.c
> index eb35e80e01d1..f47a965972a0 100644
> --- a/net/devlink/netlink_gen.c
> +++ b/net/devlink/netlink_gen.c
> @@ -44,6 +44,12 @@ devlink_attr_param_type_validate(const struct
> nlattr *attr,
> }
>
> /* Common nested types */
> +const struct nla_policy
> devlink_dl_parent_dev_nl_policy[DEVLINK_ATTR_INDEX + 1] = {
> + [DEVLINK_ATTR_BUS_NAME] = { .type = NLA_NUL_STRING, },
> + [DEVLINK_ATTR_DEV_NAME] = { .type = NLA_NUL_STRING, },
> + [DEVLINK_ATTR_INDEX] = { .type = NLA_UINT, },
> +};
> +
It seems this hunk was not updated after a newer version of Jiri's
shared devlink patches was applied as base, and as a result there are
netlink_gen diffs.
We will fix and repost properly in v9.
But please keep any other comments coming.
Cosmin.