Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2019 10:37:31 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347267 - head/sys/dev/mlx5/mlx5_en
Message-ID:  <201905081037.x48AbV6x045322@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed May  8 10:37:31 2019
New Revision: 347267
URL: https://svnweb.freebsd.org/changeset/base/347267

Log:
  Make sure the running variable is properly set for ratelimited SQs in mlx5en(4).
  
  Else the SQs won't be properly released when closing rate-limited connections
  leading to wrong state transitions on the SQ.
  
  MFC after:	3 days
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c

Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c	Wed May  8 10:37:03 2019	(r347266)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c	Wed May  8 10:37:31 2019	(r347267)
@@ -176,6 +176,8 @@ mlx5e_rl_open_sq(struct mlx5e_priv *priv, struct mlx5e
 	if (err)
 		goto err_disable_sq;
 
+	WRITE_ONCE(sq->running, 1);
+
 	return (0);
 
 err_disable_sq:



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