svn commit: r327193 - stable/11/sys/dev/mlx5/mlx5_en

Konstantin Belousov kib at FreeBSD.org
Tue Dec 26 09:55:37 UTC 2017


Author: kib
Date: Tue Dec 26 09:55:36 2017
New Revision: 327193
URL: https://svnweb.freebsd.org/changeset/base/327193

Log:
  MFC r326977:
  mlx5en: Avoid SFENCe on x86.

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

Modified: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c	Tue Dec 26 08:33:02 2017	(r327192)
+++ stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c	Tue Dec 26 09:55:36 2017	(r327193)
@@ -90,7 +90,7 @@ mlx5e_post_rx_wqes(struct mlx5e_rq *rq)
 	}
 
 	/* ensure wqes are visible to device before updating doorbell record */
-	wmb();
+	atomic_thread_fence_rel();
 
 	mlx5_wq_ll_update_db_record(&rq->wq);
 }
@@ -391,7 +391,7 @@ wq_ll_pop:
 	mlx5_cqwq_update_db_record(&rq->cq.wq);
 
 	/* ensure cq space is freed before enabling more cqes */
-	wmb();
+	atomic_thread_fence_rel();
 	return (i);
 }
 


More information about the svn-src-all mailing list