]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Randomize the delay when waiting for VSC flag in mlx5core.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 2 Oct 2019 10:59:44 +0000 (10:59 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 2 Oct 2019 10:59:44 +0000 (10:59 +0000)
commit7bf46a63ce25ae5c118691ad4b63806ce66c69a5
tree85887e0a7e420a6783814d14028bd1073bf5a7ff
parenteff4361d8864b68f990a54b4f7eb4b46d564f7ba
Randomize the delay when waiting for VSC flag in mlx5core.

The PRM suggests random 0 - 10ms to prevent multiple waiters on the same
interval in order to avoid starvation.

Submitted by: slavash@
MFC after: 3 days
Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_core/mlx5_vsc.c