diff options
| author | Mark Starovoytov <mstarovoitov@marvell.com> | 2020-07-20 21:32:36 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2020-07-20 18:07:38 -0700 |
| commit | d7d8bb9286134bcc57941c38ed2d69c50fc59511 (patch) | |
| tree | ef2de013ce741f71b758a8fc3fc15722d892fac8 /scripts/patch-kernel | |
| parent | 508f2e3dce454843ffd689bb2cf0739a954dd1e9 (diff) | |
| download | cachepc-linux-d7d8bb9286134bcc57941c38ed2d69c50fc59511.tar.gz cachepc-linux-d7d8bb9286134bcc57941c38ed2d69c50fc59511.zip | |
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 <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
