diff options
author | Ido Schimmel <idosch@nvidia.com> | 2024-03-06 15:49:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-03-08 13:35:47 +0300 |
commit | 746c19a52ec50b81422fd4772254d55e588d7df6 (patch) | |
tree | 70e62b43da6c98bf450c5ddd5be208435fe5d461 /include | |
parent | 5877786fcf52d1b255afcd61832753d1619f0738 (diff) | |
download | linux-746c19a52ec50b81422fd4772254d55e588d7df6.tar.xz |
net: nexthop: Add ability to enable / disable hardware statistics
Add netlink support for enabling collection of HW statistics on nexthop
groups.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/nexthop.h | 2 | ||||
-rw-r--r-- | include/uapi/linux/nexthop.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/net/nexthop.h b/include/net/nexthop.h index 584c37120c20..1ba6d3668518 100644 --- a/include/net/nexthop.h +++ b/include/net/nexthop.h @@ -47,6 +47,8 @@ struct nh_config { bool nh_grp_res_has_idle_timer; bool nh_grp_res_has_unbalanced_timer; + bool nh_hw_stats; + struct nlattr *nh_encap; u16 nh_encap_type; diff --git a/include/uapi/linux/nexthop.h b/include/uapi/linux/nexthop.h index f4db63c17085..b86af80d4e09 100644 --- a/include/uapi/linux/nexthop.h +++ b/include/uapi/linux/nexthop.h @@ -68,6 +68,9 @@ enum { /* nested; nexthop group stats */ NHA_GROUP_STATS, + /* u32; nexthop hardware stats enable */ + NHA_HW_STATS_ENABLE, + __NHA_MAX, }; |