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
This commit is contained in:
hselasky 2019-05-08 11:08:21 +00:00
parent 78b95badaf
commit b67f93bdbe

View File

@ -131,6 +131,9 @@ mlx5e_del_eth_addr_from_flow_table(struct mlx5e_priv *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