summaryrefslogtreecommitdiff
path: root/scripts/mod
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-06-11 21:33:36 -0700
committerDavid S. Miller <davem@davemloft.net>2018-06-12 15:18:28 -0700
commit29f534c4bbfc1f66faec04575148be80def66c2b (patch)
tree88d80d9e155624f6aecad4597e957dd0060e3b41 /scripts/mod
parentf8d0efb112275444c03b76ee2376f0055d12aeba (diff)
nfp: include all ring counters in interface stats
We are gathering software statistics on per-ring basis. .ndo_get_stats64 handler adds the rings up. Unfortunately we are currently only adding up active rings, which means that if user decreases the number of active rings the statistics from deactivated rings will no longer be counted and total interface statistics may go backwards. Always sum all possible rings, the stats are allocated statically for max number of rings, so we don't have to worry about them being removed. We could add the stats up when user changes the ring count, but it seems unnecessary.. Adding up inactive rings will be very quick since no datapath will be touching them. Fixes: 164d1e9e5d52 ("nfp: add support for ethtool .set_channels") Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/mod')
0 files changed, 0 insertions, 0 deletions