[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200324203723.1187ab10@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Tue, 24 Mar 2020 20:37:23 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Ido Schimmel <idosch@...sch.org>
Cc: netdev@...r.kernel.org, davem@...emloft.net, jiri@...lanox.com,
andrew@...n.ch, f.fainelli@...il.com, vivien.didelot@...il.com,
roopa@...ulusnetworks.com, nikolay@...ulusnetworks.com,
mlxsw@...lanox.com, Ido Schimmel <idosch@...lanox.com>
Subject: Re: [PATCH net-next 01/15] devlink: Add packet trap policers
support
On Tue, 24 Mar 2020 21:32:36 +0200 Ido Schimmel wrote:
> static const struct nla_policy devlink_nl_policy[DEVLINK_ATTR_MAX + 1] = {
Hm. looks like devlink doesn't have .strict_start_type set, yet.
Should we set it?
> [DEVLINK_ATTR_BUS_NAME] = { .type = NLA_NUL_STRING },
> [DEVLINK_ATTR_DEV_NAME] = { .type = NLA_NUL_STRING },
> @@ -6064,6 +6309,9 @@ static const struct nla_policy devlink_nl_policy[DEVLINK_ATTR_MAX + 1] = {
> [DEVLINK_ATTR_NETNS_PID] = { .type = NLA_U32 },
> [DEVLINK_ATTR_NETNS_FD] = { .type = NLA_U32 },
> [DEVLINK_ATTR_NETNS_ID] = { .type = NLA_U32 },
> + [DEVLINK_ATTR_TRAP_POLICER_ID] = { .type = NLA_U32 },
> + [DEVLINK_ATTR_TRAP_POLICER_RATE] = { .type = NLA_U64 },
> + [DEVLINK_ATTR_TRAP_POLICER_BURST] = { .type = NLA_U64 },
> };
Powered by blists - more mailing lists