octeon_ep: update tx/rx stats locally for persistence

[ Upstream commit 10fad79846 ]

Update tx/rx stats locally, so that ndo_get_stats64()
can use that and not rely on per queue resources to obtain statistics.
The latter used to cause race conditions when the device stopped.

Signed-off-by: Shinas Rasheed <srasheed@marvell.com>
Link: https://patch.msgid.link/20250117094653.2588578-3-srasheed@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Shinas Rasheed 2025-01-17 01:46:51 -08:00 • committed by Greg Kroah-Hartman
commit 09c86dc2ad
7 changed files with 45 additions and 47 deletions