Author: hselasky
Date: Thu Aug  2 08:45:32 2018
New Revision: 337106
URL: https://svnweb.freebsd.org/changeset/base/337106

Log:
  MFC r336401:
  Correctly write atomic variable in mlx5en(4).
  
  Sponsored by:         Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c       Thu Aug  2 08:44:40 
2018        (r337105)
+++ stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c       Thu Aug  2 08:45:32 
2018        (r337106)
@@ -1232,7 +1232,7 @@ mlx5e_open_sq(struct mlx5e_channel *c,
        if (err)
                goto err_disable_sq;
 
-       atomic_store_rel_int(&sq->queue_state, MLX5E_SQ_READY);
+       WRITE_ONCE(sq->queue_state, MLX5E_SQ_READY);
 
        return (0);
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to