netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pekka Pietikainen <pp@ee.oulu.fi>
To: James Hubbard <jameshubbard@gmail.com>
Cc: netdev@oss.sgi.com
Subject: Re: Multicast on b44
Date: Sun, 16 Jan 2005 02:08:09 +0200	[thread overview]
Message-ID: <20050116000809.GB5334@ee.oulu.fi> (raw)
In-Reply-To: <20050115233836.GA5334@ee.oulu.fi>

On Sun, Jan 16, 2005 at 01:38:36AM +0200, Pekka Pietikainen wrote:
> It looks like the b44 driver is limited to 32 entries (B44_MCAST_TABLE_SIZE)
> whereas bcm4400 goes up to 63. It's just a #define so you should be able to
> up it to that and be safe, might be worth upping it to that in b44 by
> default. 
> 
> If you need more than that you're stuck with allmulti, which if I remember
> correctly didn't work. Yup, from a previous mail of mine I did test it at
> one point:
> 
> "Ok, after some digging around ALLMULTI breaking is not a bug, the
> vendor-provided driver seems to break in similar ways, at least on 2.6,
> so that's a feature unless they fix it in theirs so I can copy the fix :-)"
> 
But do try with RXCONFIG_ALLMULTI instead of _PROMISC. Anyway, here's
something totally untested:

X-It-Compiles-Lets-Ship-It-By: pp@ee.oulu.fi
--- ./b44.h.2	2005-01-16 02:00:27.000000000 +0200
+++ ./b44.h	2005-01-16 02:00:52.000000000 +0200
@@ -358,7 +358,7 @@
 	DECLARE_PCI_UNMAP_ADDR(mapping);
 };
 
-#define B44_MCAST_TABLE_SIZE	32
+#define B44_MCAST_TABLE_SIZE	63
 #define B44_BOUNCEBUF_SHIFT	3
 #define B44_NUM_BOUNCEBUFS	(1 << B44_BOUNCEBUF_SHIFT)
 
--- ./b44.c.2	2005-01-16 02:00:25.000000000 +0200
+++ ./b44.c	2005-01-16 02:04:06.000000000 +0200
@@ -1425,12 +1425,14 @@
 	} else {
 		__b44_set_mac_addr(bp);
 
-		if (dev->flags & IFF_ALLMULTI)
-			val |= RXCONFIG_ALLMULTI;
+		if ((dev->flags & IFF_ALLMULTI) || (dev->mc_count > B44_MCAST_TABLE_SIZE))
+			/* RXCONFIG_ALLMULTI seems to disable unicast packets :-( */
+			val |= RXCONFIG_PROMISC;
 		else
 			i=__b44_load_mcast(bp, dev);
 		
-		for(;i<64;i++) {
+		/* Fill in remaining entries with zero */
+		for(;i<B44_MCAST_TABLE_SIZE+1;i++) {
 			__b44_cam_write(bp, zero, i);			
 		}
 		bw32(bp, B44_RXCONFIG, val);

      reply	other threads:[~2005-01-16  0:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f3ddc6d305011320416635914@mail.gmail.com>
2005-01-15 23:38 ` Multicast on b44 Pekka Pietikainen
2005-01-16  0:08   ` Pekka Pietikainen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050116000809.GB5334@ee.oulu.fi \
    --to=pp@ee.oulu.fi \
    --cc=jameshubbard@gmail.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).