Subject: kern/10580: tlp driver doesn't receive on Netgear FX310ta without promiscous mode
To: None <gnats-bugs@gnats.netbsd.org>
From: None <and@genesyslab.com>
List: netbsd-bugs
Date: 07/17/2000 19:35:08
>Number:         10580
>Category:       kern
>Synopsis:       tlp driver doesn't receive on Netgear FX310ta without promiscous mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 13 15:36:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Petrov
>Release:        1.5B i386
>Organization:
>Environment:
tulip.c 1.70

>Description:
card probed correctly (i don't have dmesg but will provide on request)

tlp0 at pci0 dev 9 function 0: Lite-On 82C169 Ethernet, pass 2.0
tlp0: interrupting at irq 11

trying to access network fails untill tcpdump started,
with tcpdump card starts working, after stopping tcpdump
card stops working and nothing helps after that
>How-To-Repeat:


>Fix:
fix unknown, workaround is:
put card into promiscous mode on start 

===================================================================
RCS file: /cvsroot/syssrc/sys/dev/ic/tulip.c,v
retrieving revision 1.70
diff -c -r1.70 tulip.c
*** tulip.c     2000/07/04 04:18:17     1.70
--- tulip.c     2000/07/13 22:33:26
***************
*** 2560,2566 ****
  
        sc->sc_opmode &= ~(OPMODE_PR|OPMODE_PM);
  
!       if (ifp->if_flags & IFF_PROMISC) {
                sc->sc_opmode |= OPMODE_PR;
                goto allmulti;
        }
--- 2560,2567 ----
  
        sc->sc_opmode &= ~(OPMODE_PR|OPMODE_PM);
  
!       if (ifp->if_flags & IFF_PROMISC ||
!           sc->sc_chip == TULIP_CHIP_82C169) {
                sc->sc_opmode |= OPMODE_PR;
                goto allmulti;
        }

>Release-Note:
>Audit-Trail:
>Unformatted: