mirror of
https://github.com/torvalds/linux.git
synced 2026-11-10 17:11:02 +01:00
net/mlx5: HWS, Remove unneeded WRITE_ONCE in post send
Remove the unneeded WRITE_ONCE, for two reasons: a) This write is erroneous - it just writes to a local variable and doesn't have any effect. b) This code originated from another place (copy-paste bug), where there was actually a CQ polling right after this line, and the WRITE_ONCE was writing to another place. Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Reviewed-by: Erez Shitrit <erezsh@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260915111912.3926585-7-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
03d41926d0
commit
889f1d8c0e
|
|
@ -111,9 +111,6 @@ static void hws_send_engine_post_ring(struct mlx5hws_send_ring_sq *sq,
|
|||
wmb();
|
||||
|
||||
mlx5_write64((__be32 *)doorbell_cseg, sq->uar_map);
|
||||
|
||||
/* Ensure doorbell is written on uar_page before poll_cq */
|
||||
WRITE_ONCE(doorbell_cseg, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user