diff options
author | Petr Machata <[email protected]> | 2022-03-02 18:31:27 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-03-03 10:37:23 +0000 |
commit | 8d0f7d3ac6472899e6dea3b812313ee824c6745d (patch) | |
tree | 5a487b6f8f0892d2e6d688d00c5d4672e8bf65e3 /lib/test_overflow.c | |
parent | c1de13f91ee5afeec3a1eaa9d4818ab48f8f96d9 (diff) |
mlxsw: Add support for IFLA_OFFLOAD_XSTATS_L3_STATS
Spectrum machines support L3 stats by binding a counter to a RIF, a
hardware object representing a router interface. Recognize the netdevice
notifier events, NETDEV_OFFLOAD_XSTATS_*, to support enablement,
disablement, and reporting back to core.
As a netdevice gains a RIF, if L3 stats are enabled, install the counters,
and ping the core so that a userspace notification can be emitted.
Similarly, as a netdevice loses a RIF, push the as-yet-unreported
statistics to the core, so that they are not lost, and ping the core to
emit userspace notification.
Signed-off-by: Petr Machata <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions