Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5845f98 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

mlx4_en: Fix loss of promiscuity



The mlx4_en driver uses the combination stop_port/start_port
in a number of places.  Unfortunately that causes any promiscuous
mode settings on the hardware to be lost.

This patch fixes that problem.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6303e6e8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -742,6 +742,9 @@ int mlx4_en_start_port(struct net_device *dev)
				  0, MLX4_PROT_ETH))
		mlx4_warn(mdev, "Failed Attaching Broadcast\n");

	/* Must redo promiscuous mode setup. */
	priv->flags &= ~(MLX4_EN_FLAG_PROMISC | MLX4_EN_FLAG_MC_PROMISC);

	/* Schedule multicast task to populate multicast list */
	queue_work(mdev->workqueue, &priv->mcast_task);