Date: Tue, 26 Dec 2017 09:55:36 +0000 (UTC) From: Konstantin Belousov <kib@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: r327193 - stable/11/sys/dev/mlx5/mlx5_en Message-ID: <201712260955.vBQ9taIL008323@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712260955.vBQ9taIL008323>