svn commit: r347731 - stable/12/sys/dev/mlx5/mlx5_en

Hans Petter Selasky hselasky at FreeBSD.org
Thu May 16 15:57:15 UTC 2019


Author: hselasky
Date: Thu May 16 15:57:14 2019
New Revision: 347731
URL: https://svnweb.freebsd.org/changeset/base/347731

Log:
  MFC r347267:
  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.
  
  Sponsored by:	Mellanox Technologies

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

Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c	Thu May 16 15:56:30 2019	(r347730)
+++ stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c	Thu May 16 15:57:14 2019	(r347731)
@@ -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:


More information about the svn-src-all mailing list