]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: ipnexthop: Support dumping next hop group HW stats
authorPetr Machata <petrm@nvidia.com>
Thu, 14 Mar 2024 14:52:14 +0000 (15:52 +0100)
committerDavid Ahern <dsahern@kernel.org>
Fri, 15 Mar 2024 15:03:34 +0000 (15:03 +0000)
commita50655e730ff28102e4e28bd54e2f12c381e5f1d
treeff8ed72a3498aea63afb4a2c3d5de17c2b0e862a
parent529ada74c401f0f80adcba12dfc023bf84eedc82
ip: ipnexthop: Support dumping next hop group HW stats

Besides SW datapath stats, the kernel also support collecting statistics
from HW datapath, for nexthop groups offloaded to HW. Request that these be
collected when ip is given "-s -s", similarly to how "ip link" shows more
statistics in that case.

Besides the statistics themselves, also show whether the collection of HW
statistics was in fact requested, and whether any driver actually
implemented the request.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipnexthop.c
ip/nh_common.h