Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 08:45:32 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r337106 - stable/11/sys/dev/mlx5/mlx5_en
Message-ID:  <201808020845.w728jW48056406@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808020845.w728jW48056406>