diff options
| author | Mark Starovoytov <[email protected]> | 2020-07-20 21:32:36 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-07-20 18:07:38 -0700 |
| commit | d7d8bb9286134bcc57941c38ed2d69c50fc59511 (patch) | |
| tree | ef2de013ce741f71b758a8fc3fc15722d892fac8 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 508f2e3dce454843ffd689bb2cf0739a954dd1e9 (diff) | |
net: atlantic: use u64_stats_update_* to protect access to 64-bit stats
This patch adds u64_stats_update_* usage to protect access to 64-bit stats,
where necessary.
This is necessary for per-ring stats, because they are updated by the
driver directly, so there is a possibility for a partial read.
Other stats require no additional protection, e.g.:
* all MACSec stats are fetched directly from HW (under semaphore);
* nic/ndev stats (aq_stats_s) are fetched directly from FW (under mutex).
Signed-off-by: Mark Starovoytov <[email protected]>
Signed-off-by: Igor Russkikh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions