diff options
author | Mohsin Bashir <mohsin.bashr@gmail.com> | 2025-08-01 19:46:36 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-05 16:01:45 -0700 |
commit | 53abd9c86fd086d8448ceec4e9ffbd65b6c17a37 (patch) | |
tree | 75e7afe5baab8b321b46dc8a9c269ef77bc5194c /scripts/lib | |
parent | 2972395d8fad7f4efc8555348f2f988d4941d797 (diff) |
eth: fbnic: Lock the tx_dropped update
Wrap copying of drop stats on TX path from fbd->hw_stats by the
hw_stats_lock. Currently, it is being performed outside the lock and
another thread accessing fbd->hw_stats can lead to inconsistencies.
Fixes: 5f8bd2ce8269 ("eth: fbnic: add support for TMI stats")
Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250802024636.679317-3-mohsin.bashr@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions