]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r312865:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 3 Aug 2017 14:09:36 +0000 (14:09 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 3 Aug 2017 14:09:36 +0000 (14:09 +0000)
commit3d1f3c6e713156b6296734efa3248a5cf5ee787d
tree44f5b8712f664d2bf78fc54f91bbaf9e37dbad90
parent76968f4a38389c64708ed2cb81e6566fa4b11dd5
MFC r312865:
Enforce reading the consumer and producer counters once to ensure
consistent return values from the mlx5e_sq_has_room_for()
function. The two counters are incremented by different threads under
different locks.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@322005 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mlx5/mlx5_en/en.h