netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dm9601: Fix multicast hash table handling
@ 2008-03-18 22:16 Peter Korsgaard
  2008-03-18 22:16 ` [PATCH] dm9601: add Hirose USB-100 device ID Peter Korsgaard
  2008-03-26  3:20 ` [PATCH] dm9601: Fix multicast hash table handling Jeff Garzik
  0 siblings, 2 replies; 10+ messages in thread
From: Peter Korsgaard @ 2008-03-18 22:16 UTC (permalink / raw)
  To: jeff, netdev; +Cc: Peter Korsgaard

The loop forgot to walk the net->mc_list list, so only the first
multicast address was programmed into the hash table.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 drivers/net/usb/dm9601.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c
index 4b131a6..96082fd 100644
--- a/drivers/net/usb/dm9601.c
+++ b/drivers/net/usb/dm9601.c
@@ -354,7 +354,7 @@ static void dm9601_set_multicast(struct net_device *net)
 		struct dev_mc_list *mc_list = net->mc_list;
 		int i;
 
-		for (i = 0; i < net->mc_count; i++) {
+		for (i = 0; i < net->mc_count; i++, mlist = mlist->next) {
 			u32 crc = ether_crc(ETH_ALEN, mc_list->dmi_addr) >> 26;
 			hashes[crc >> 3] |= 1 << (crc & 0x7);
 		}
-- 
1.5.4.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH] dm9601: Fix multicast hash table handling
@ 2008-03-28 21:25 Peter Korsgaard
  2008-03-29  1:53 ` Jeff Garzik
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2008-03-28 21:25 UTC (permalink / raw)
  To: jeff, netdev

The loop forgot to walk the net->mc_list list, so only the first
multicast address was programmed into the hash table.
---
Jeff, I would like to get this patch in 2.6.25 if possible.

 drivers/net/usb/dm9601.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c
index 0343b00..01660f6 100644
--- a/drivers/net/usb/dm9601.c
+++ b/drivers/net/usb/dm9601.c
@@ -354,7 +354,7 @@ static void dm9601_set_multicast(struct net_device *net)
 		struct dev_mc_list *mc_list = net->mc_list;
 		int i;
 
-		for (i = 0; i < net->mc_count; i++) {
+		for (i = 0; i < net->mc_count; i++, mc_list = mc_list->next) {
 			u32 crc = ether_crc(ETH_ALEN, mc_list->dmi_addr) >> 26;
 			hashes[crc >> 3] |= 1 << (crc & 0x7);
 		}
-- 
1.5.4.4


-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2008-03-29 11:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-18 22:16 [PATCH] dm9601: Fix multicast hash table handling Peter Korsgaard
2008-03-18 22:16 ` [PATCH] dm9601: add Hirose USB-100 device ID Peter Korsgaard
2008-03-18 22:16   ` [PATCH] dm9601: configure MAC to drop invalid (crc/length) packets Peter Korsgaard
2008-03-26  3:20 ` [PATCH] dm9601: Fix multicast hash table handling Jeff Garzik
2008-03-26  3:33   ` Jeff Garzik
2008-03-26  7:51     ` Peter Korsgaard
2008-03-26  7:34   ` Peter Korsgaard
  -- strict thread matches above, loose matches on Subject: below --
2008-03-28 21:25 Peter Korsgaard
2008-03-29  1:53 ` Jeff Garzik
2008-03-29  9:23   ` Peter Korsgaard

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).