]> git.ipfire.org Git - thirdparty/linux.git/commit
net: nexthop: Expose nexthop group stats to user space
authorIdo Schimmel <idosch@nvidia.com>
Wed, 6 Mar 2024 12:49:18 +0000 (13:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2024 10:35:47 +0000 (10:35 +0000)
commit95fedd7685912f96304615efe50485588b1c3567
tree2cbe1e76b6a7f0d77872c383ef3430f71dbc3006
parentf4676ea74b8549cd88dbfe2a592ce4530039e61f
net: nexthop: Expose nexthop group stats to user space

Add netlink support for reading NH group stats.

This data is only for statistics of the traffic in the SW datapath. HW
nexthop group statistics will be added in the following patches.

Emission of the stats is keyed to a new op_stats flag to avoid cluttering
the netlink message with stats if the user doesn't need them:
NHA_OP_FLAG_DUMP_STATS.

Co-developed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/nexthop.h
net/ipv4/nexthop.c