NetBSD Problem Report #8268

Received: (qmail 14057 invoked from network); 24 Aug 1999 20:03:58 -0000
Message-Id: <199908242003.WAA22988@horn.ics.muni.cz>
Date: Tue, 24 Aug 1999 22:03:50 +0200 (MEST)
From: salvet@ics.muni.cz
Reply-To: salvet@ics.muni.cz
To: gnats-bugs@gnats.netbsd.org
Subject: epic ethernet card can't receive multicast packets
X-Send-Pr-Version: 3.95

>Number:         8268
>Category:       kern
>Synopsis:       epic ethernet card can't receive multicast packets
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thorpej
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 24 13:05:00 +0000 1999
>Closed-Date:    Thu Mar 08 12:39:16 +0000 2001
>Last-Modified:  Thu Mar 08 12:39:16 +0000 2001
>Originator:     Zdenek Salvet
>Release:        1.4
>Organization:
Masaryk University
>Environment:
1.4/i386
>Description:
        The multicast address filter hardware bug seems to affect my
        EtherPower II cards even in 100Mbps mode, I suggest 

-        if (IFM_SUBTYPE(sc->sc_mii.mii_media_active) == IFM_10_T) {
+        if (1) {

        in epic_set_mchash() until we find some reasonably reliable
	way to detect the HW bug.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: thorpej 
State-Changed-When: Fri May 12 09:54:53 PDT 2000 
State-Changed-Why:  
Should be fixed in revision smc83c170.c,v 1.31 

If you need a patch against 1.4.2, please let me know. 


Responsible-Changed-From-To: kern-bug-people->thorpej 
Responsible-Changed-By: thorpej 
Responsible-Changed-When: Fri May 12 09:54:53 PDT 2000 
Responsible-Changed-Why:  
I am responsible for the EPIC driver. 

From: Zdenek Salvet <salvet@ics.muni.cz>
To: gnats-bugs@netbsd.org
Cc: thorpej@netbsd.org
Subject: Re: kern/8268 (epic ethernet card can't receive multicast packets)
Date: Wed, 8 Nov 2000 15:11:28 +0100 (MET)

 Sorry for delay in feedback. I did some more tests today.
 This appears to work correctly:


 --- smc83c170.c.orig    Wed Nov  8 05:42:09 2000
 +++ smc83c170.c Wed Nov  8 05:43:01 2000
 @@ -1361,7 +1361,8 @@
                         goto allmulti;
                 }

 -               hash = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) & 0x3f;
 +               hash = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN);
 +               hash >>= 26;

                 /* Set the corresponding bit in the hash table. */
                 mchash[hash >> 4] |= 1 << (hash & 0xf);


 Zdenek Salvet                                              salvet@ics.muni.cz 
 Institute of Computer Science of Masaryk University, Brno, Czech Republic
 Phone: ++420-5-41 512 257                           Fax: ++420-5-41 212 747
 ----------------------------------------------------------------------------
            If God had meant for us to be in the Army,
          we would have been born with green, baggy skin.

From: Jason R Thorpe <thorpej@zembu.com>
To: Zdenek Salvet <salvet@ics.muni.cz>
Cc: gnats-bugs@netbsd.org
Subject: Re: kern/8268 (epic ethernet card can't receive multicast packets)
Date: Wed, 8 Nov 2000 07:21:10 -0800

 On Wed, Nov 08, 2000 at 03:11:28PM +0100, Zdenek Salvet wrote:

 Great!  I've committed the change, and am going to ask that it get
 pulled into netbsd-1-5.

 Thank you VERY much for working on this!  I only just found my EPIC cards
 in the attic yesterday (they've been lost since I changed jobs).

  > Sorry for delay in feedback. I did some more tests today.
  > This appears to work correctly:
  > 
  > 
  > --- smc83c170.c.orig    Wed Nov  8 05:42:09 2000
  > +++ smc83c170.c Wed Nov  8 05:43:01 2000
  > @@ -1361,7 +1361,8 @@
  >                         goto allmulti;
  >                 }
  >  
  > -               hash = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) & 0x3f;
  > +               hash = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN);
  > +               hash >>= 26;
  >  
  >                 /* Set the corresponding bit in the hash table. */
  >                 mchash[hash >> 4] |= 1 << (hash & 0xf);
  > 
  > 
  > Zdenek Salvet                                              salvet@ics.muni.cz 
  > Institute of Computer Science of Masaryk University, Brno, Czech Republic
  > Phone: ++420-5-41 512 257                           Fax: ++420-5-41 212 747
  > ----------------------------------------------------------------------------
  >            If God had meant for us to be in the Army,
  >          we would have been born with green, baggy skin.
  > 

 -- 
         -- Jason R. Thorpe <thorpej@zembu.com>

From: Tim Rightnour <root@garbled.net>
To: salvet@ics.muni.cz
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/8268
Date: Wed, 07 Mar 2001 16:47:19 -0700 (MST)

 The comments in this PR from you and Jason lead one to believe it should be
 closed.  This has been sitting in the feedback state for awhile now.. are you
 still having this problem?  Can I close this PR?

 ---
 Tim Rightnour <root@garbled.net>
 NetBSD: Free multi-architecture OS http://www.netbsd.org/
 NetBSD supported hardware database: http://mail-index.netbsd.org/cgi-bin/hw.cgi
State-Changed-From-To: feedback->closed 
State-Changed-By: garbled 
State-Changed-When: Thu Mar 8 04:38:44 PST 2001 
State-Changed-Why:  
Closed per discussion with originator. 

Tim 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.