svn commit: r347322 - head/sys/dev/mlx5/mlx5_en

Hans Petter Selasky hselasky at FreeBSD.org
Wed May 8 11:08:22 UTC 2019


Author: hselasky
Date: Wed May  8 11:08:21 2019
New Revision: 347322
URL: https://svnweb.freebsd.org/changeset/base/347322

Log:
  Ensure the flowtable rules are not freed twice in mlx5en(4).
  This can happen when re-loading the driver.
  
  MFC after:	3 days
  Sponsored by:	Mellanox Technologies

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

Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c	Wed May  8 11:08:01 2019	(r347321)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c	Wed May  8 11:08:21 2019	(r347322)
@@ -131,6 +131,9 @@ mlx5e_del_eth_addr_from_flow_table(struct mlx5e_priv *
 
 	if (ai->tt_vec & (1 << MLX5E_TT_ANY))
 		mlx5_del_flow_rule(ai->ft_rule[MLX5E_TT_ANY]);
+
+	/* ensure the rules are not freed again */
+	ai->tt_vec = 0;
 }
 
 static int


More information about the svn-src-head mailing list