Commit 62e3c24a authored by Mohamad Haj Yahia's avatar Mohamad Haj Yahia Committed by David S. Miller

net/mlx5: E-Switch, always set mc_promisc for allmulti vports

Set the mc_promisc flag also in the case of adding new mc address to
existing allmulti vport.

Fixes: a35f71f2 ('net/mlx5: E-Switch, Implement promiscuous rx modes vf request handling')
Signed-off-by: default avatarMohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 23898c76
...@@ -651,6 +651,7 @@ static void update_allmulti_vports(struct mlx5_eswitch *esw, ...@@ -651,6 +651,7 @@ static void update_allmulti_vports(struct mlx5_eswitch *esw,
esw_fdb_set_vport_rule(esw, esw_fdb_set_vport_rule(esw,
mac, mac,
vport_idx); vport_idx);
iter_vaddr->mc_promisc = true;
break; break;
case MLX5_ACTION_DEL: case MLX5_ACTION_DEL:
if (!iter_vaddr) if (!iter_vaddr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment