* mlx4_en: Fix loss of promiscuity
@ 2011-03-27 11:01 Herbert Xu
2011-03-27 11:21 ` Yevgeny Petrilin
2011-03-28 1:43 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Herbert Xu @ 2011-03-27 11:01 UTC (permalink / raw)
To: Yevgeny Petrilin, David S. Miller, netdev
Hi:
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 <herbert@gondor.apana.org.au>
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c
index 5762ebd..4f158ba 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);
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: mlx4_en: Fix loss of promiscuity
2011-03-27 11:01 mlx4_en: Fix loss of promiscuity Herbert Xu
@ 2011-03-27 11:21 ` Yevgeny Petrilin
2011-03-28 1:43 ` David Miller
2011-03-28 1:43 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Yevgeny Petrilin @ 2011-03-27 11:21 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, netdev@vger.kernel.org
> 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 <herbert@gondor.apana.org.au>
>
Thank you Herbert,
This patch does fix the problem you reported on.
Thanks,
Yevgeny
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mlx4_en: Fix loss of promiscuity
2011-03-27 11:21 ` Yevgeny Petrilin
@ 2011-03-28 1:43 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-03-28 1:43 UTC (permalink / raw)
To: yevgenyp; +Cc: herbert, netdev
From: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Date: Sun, 27 Mar 2011 11:21:37 +0000
>> 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 <herbert@gondor.apana.org.au>
>>
>
> Thank you Herbert,
> This patch does fix the problem you reported on.
Please ACK patches explicitly by stating:
Acked-by: ...
in your reply so that your feedback automatically ends up in the tree
when I apply his patch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mlx4_en: Fix loss of promiscuity
2011-03-27 11:01 mlx4_en: Fix loss of promiscuity Herbert Xu
2011-03-27 11:21 ` Yevgeny Petrilin
@ 2011-03-28 1:43 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2011-03-28 1:43 UTC (permalink / raw)
To: herbert; +Cc: yevgenyp, netdev
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Sun, 27 Mar 2011 19:01:26 +0800
> 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 <herbert@gondor.apana.org.au>
Applied, thanks Herbert.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-28 1:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-27 11:01 mlx4_en: Fix loss of promiscuity Herbert Xu
2011-03-27 11:21 ` Yevgeny Petrilin
2011-03-28 1:43 ` David Miller
2011-03-28 1:43 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox