linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs_enet: restore promiscuous and multicast settings in restart()
@ 2008-06-18 15:07 Laurent Pinchart
  2008-06-18 18:45 ` Matvejchikov Ilya
  2008-06-20  3:01 ` Bill Fink
  0 siblings, 2 replies; 11+ messages in thread
From: Laurent Pinchart @ 2008-06-18 15:07 UTC (permalink / raw)
  To: linuxppc-dev, netdev, pantelis.antoniou, vbordug

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]

The restart() function is called when the link state changes and resets
multicast and promiscous settings. This patch restores those settings at the
end of restart().

Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
---
 drivers/net/fs_enet/mac-fcc.c     |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/net/fs_enet/mac-fcc.c b/drivers/net/fs_enet/mac-fcc.c
index ce40cf9..1a95cf1 100644
--- a/drivers/net/fs_enet/mac-fcc.c
+++ b/drivers/net/fs_enet/mac-fcc.c
@@ -464,6 +464,9 @@ static void restart(struct net_device *dev)
 		C32(fccp, fcc_fpsmr, FCC_PSMR_FDE | FCC_PSMR_LPB);
 
 	S32(fccp, fcc_gfmr, FCC_GFMR_ENR | FCC_GFMR_ENT);
+
+	/* Restore multicast and promiscous settings */
+	set_multicast_list(dev);
 }
 
 static void stop(struct net_device *dev)
-- 
1.5.0

-- 
Laurent Pinchart
CSE Semaphore Belgium

Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-06-26  9:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-18 15:07 [PATCH] fs_enet: restore promiscuous and multicast settings in restart() Laurent Pinchart
2008-06-18 18:45 ` Matvejchikov Ilya
2008-06-19 18:20   ` Vitaly Bordug
2008-06-19 18:47     ` Jon Loeliger
2008-06-19 19:15       ` Olof Johansson
2008-06-19 19:41     ` Matvejchikov Ilya
2008-06-20  3:01 ` Bill Fink
2008-06-20  8:25   ` Laurent Pinchart
2008-06-20  8:55     ` Matvejchikov Ilya
2008-06-26  9:38       ` Laurent Pinchart
2008-06-20 17:50     ` Bill Fink

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).