diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2023-06-09 16:59:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-06-12 09:43:30 +0100 |
commit | f1e668d29c57499f734a291bfb96a82142322f41 (patch) | |
tree | 5b78b7449f3f543febf835799a078ee86aaa5407 /net/unix/af_unix.c | |
parent | 2b84960fc5dd38a19241388fb33f20936cb217e2 (diff) | |
download | linux-f1e668d29c57499f734a291bfb96a82142322f41.tar.gz linux-f1e668d29c57499f734a291bfb96a82142322f41.tar.bz2 linux-f1e668d29c57499f734a291bfb96a82142322f41.zip |
net: enetc: reset taprio stats when taprio is deleted
Currently, the window_drop stats persist even if an incorrect Qdisc was
removed from the interface and a new one is installed. This is because
the enetc driver keeps the state, and that is persistent across multiple
Qdiscs.
To resolve the issue, clear all win_drop counters from all TX queues
when the currently active Qdisc is removed. These counters are zero
by default. The counters visible in ethtool -S are also affected,
but I don't care very much about preserving those enough to keep them
monotonically incrementing.
Fixes: 4802fca8d1af ("net: enetc: report statistics counters for taprio")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions