mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 20:13:02 -04:00
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:
parent
f5233a73d8
commit
39c6d43ee5
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue