public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH] skge: restore device multicast membership after link down/up
@ 2006-11-30 16:35 Andy Gospodarek
  2006-12-01 19:41 ` [PATCH] skge: don't clear MC state on link down Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Gospodarek @ 2006-11-30 16:35 UTC (permalink / raw)
  To: netdev, shemminger


Yukon hardware will lose multicast membership data and promiscuous mode 
information if a link is disconnected and reconnected without taking the
interface down.  A call to yukon_reset in yukon_link_down will clear the
hardware's multicast list, so it needs to be added back on link_up.

It does not appear that Genesis hardware needs a similar patch is needed
since it does not seem to clear multicast membership when taking the
link down.

Signed-off-by: Andy Gospodarek <andy@greyhouse•net>
---

 skge.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index 3f1b72e..c02e1f1 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -1922,6 +1922,10 @@ static void yukon_link_up(struct skge_po
 	gma_write16(hw, port, GM_GP_CTRL, reg);
 
 	gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_IS_DEF_MSK);
+
+	/* reset multicast list */
+	yukon_set_multicast(skge->netdev);
+
 	skge_link_up(skge);
 }
 

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

end of thread, other threads:[~2006-12-01 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 16:35 [PATCH] skge: restore device multicast membership after link down/up Andy Gospodarek
2006-12-01 19:41 ` [PATCH] skge: don't clear MC state on link down Stephen Hemminger
2006-12-01 21:03   ` Andy Gospodarek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox