[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200323114648.192e4bef@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Mon, 23 Mar 2020 11:46:48 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Ido Schimmel <idosch@...sch.org>
Cc: netdev@...r.kernel.org, davem@...emloft.net, jiri@...lanox.com,
mlxsw@...lanox.com, Ido Schimmel <idosch@...lanox.com>
Subject: Re: [PATCH net-next 0/5] devlink: Preparations for trap policers
support
On Sun, 22 Mar 2020 20:48:25 +0200 Ido Schimmel wrote:
> From: Ido Schimmel <idosch@...lanox.com>
>
> This patch set prepares the code for devlink-trap policer support in a
> follow-up patch set [1][2]. No functional changes intended.
>
> Policers are going to be added as attributes of packet trap groups,
> which are entities used to aggregate logically related packet traps.
> This will allow users, for example, to limit all the packets that
> encountered an exception during routing to 10Kpps.
>
> However, currently, device drivers register their packet trap groups
> implicitly when they register their packet traps via
> devlink_traps_register(). This makes it difficult to pass additional
> attributes for the groups. For example, the policer bound to the group.
>
> Therefore, this patch set converts device drivers to explicitly register
> their packet trap groups. This will later allow these drivers to
> register the group with additional attributes, if any.
Acked-by: Jakub Kicinski <kuba@...nel.org>
Powered by blists - more mailing lists