mlx4: use READ_ONCE/WRITE_ONCE for ring indexes
authorJakub Kicinski <kuba@kernel.org>
Wed, 12 Apr 2023 01:50:38 +0000 (18:50 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 13 Apr 2023 11:30:22 +0000 (13:30 +0200)
commit9a714997386ba110154dc444cdd0279f966151b2
tree9269f15ccde69661ceecafbb02bac705b14d7b3f
parent36647b206c014a0bf3ab17bc88f2c840eefd796c
mlx4: use READ_ONCE/WRITE_ONCE for ring indexes

Eric points out that we should make sure that ring index updates
are wrapped in the appropriate READ_ONCE/WRITE_ONCE macros.

Suggested-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx4/en_tx.c