From: Herbert Xu Date: Sun, 27 Mar 2011 01:01:26 +0000 (+0000) Subject: mlx4_en: Fix loss of promiscuity X-Git-Tag: MMI-PSA29.97-13-9~20061^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5845f9834d8f4c79d324bc59b99dbcf0a40f428;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c index 5762ebde4455..4f158baa0246 100644 --- a/drivers/net/mlx4/en_netdev.c +++ b/drivers/net/mlx4/en_netdev.c @@ -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);