diff options
author | Moon Yeounsu <yyyynoom@gmail.com> | 2025-05-15 16:53:31 +0900 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-05-16 15:58:13 -0700 |
commit | 12889ce926e9a9baf6b83d809ba316af539b89e2 (patch) | |
tree | 02079834503d8931d808c33dcca139dc1d4ef95f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b66b76a82c8879d764ab89adc21ee855ffd292d5 (diff) |
net: dlink: add synchronization for stats update
This patch synchronizes code that accesses from both user-space
and IRQ contexts. The `get_stats()` function can be called from both
context.
`dev->stats.tx_errors` and `dev->stats.collisions` are also updated
in the `tx_errors()` function. Therefore, these fields must also be
protected by synchronized.
There is no code that accessses `dev->stats.tx_errors` between the
previous and updated lines, so the updating point can be moved.
Signed-off-by: Moon Yeounsu <yyyynoom@gmail.com>
Link: https://patch.msgid.link/20250515075333.48290-1-yyyynoom@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions