Thread (12 messages) 12 messages, 5 authors, 2024-03-09

Re: [PATCH net-next v4 2/7] net: nexthop: Add NHA_OP_FLAGS

From: Ido Schimmel <idosch@nvidia.com>
Date: 2024-03-06 17:22:21

On Wed, Mar 06, 2024 at 01:49:16PM +0100, Petr Machata wrote:
In order to add per-nexthop statistics, but still not increase netlink
message size for consumers that do not care about them, there needs to be a
toggle through which the user indicates their desire to get the statistics.
To that end, add a new attribute, NHA_OP_FLAGS. The idea is to be able to
use the attribute for carrying of arbitrary operation-specific flags, i.e.
not make it specific for get / dump.

Add the new attribute to get and dump policies, but do not actually allow
any flags yet -- those will come later as the flags themselves are defined.
Add the necessary parsing code.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help