Skip to contentSkip to conversation

net: fs_enet: set back promiscuity mode after restart

PATCH Applied Christophe Leroy 2 participants 2 messages Oct 22, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fs_enet: set back promiscuity mode after restart

After interface restart (eg: after link disconnection/reconnection), the bridge function doesn't work anymore. This is due to the promiscuous mode being cleared by the restart.

The mac-fcc already includes code to set the promiscuous mode back during the restart. This patch adds the same handling to mac-fec and mac-scc.

Tested with bridge function on MPC885 with FEC.

---
 drivers/net/ethernet/freescale/fs_enet/mac-fec.c | 3 +++
 drivers/net/ethernet/freescale/fs_enet/mac-scc.c | 3 +++
 2 files changed, 6 insertions(+)
drivers/net/ethernet/freescale/fs_enet/mac-fec.c +3 -0
index 3d4e08b..b34214e 100644
@@ -341,6 +341,9 @@ static void restart(struct net_device *dev)
 		FC(fecp, x_cntrl, FEC_TCNTRL_FDEN);	/* FD disable */
 	}
 
+	/* Restore multicast and promiscuous settings */
+	set_multicast_list(dev);
+
 	/*
 	 * Enable interrupts we wish to service.
 	 */
drivers/net/ethernet/freescale/fs_enet/mac-scc.c +3 -0
index f30411f..7a184e8 100644
@@ -355,6 +355,9 @@ static void restart(struct net_device *dev)
 	if (fep->phydev->duplex)
 		S16(sccp, scc_psmr, SCC_PSMR_LPB | SCC_PSMR_FDE);
 
+	/* Restore multicast and promiscuous settings */
+	set_multicast_list(dev);
+
 	S32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT);
 }
 
Signature · 1 line
2.1.0
maintainer Applied
#1 lore raw

From: Christophe Leroy <[email protected]>
Date: Wed, 22 Oct 2014 09:05:47 +0200 (CEST)

Quoted 11 lines

After interface restart (eg: after link disconnection/reconnection), the bridge function doesn't work anymore. This is due to the promiscuous mode being cleared by the restart.

The mac-fcc already includes code to set the promiscuous mode back during the restart. This patch adds the same handling to mac-fec and mac-scc.

Tested with bridge function on MPC885 with FEC.

Applied, thanks.