From owner-freebsd-current@FreeBSD.ORG Sun Aug 15 19:25:43 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9854D16A953 for ; Sun, 15 Aug 2004 19:25:43 +0000 (GMT) Received: from mail.ambrisko.com (adsl-64-174-51-43.dsl.snfc21.pacbell.net [64.174.51.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AD9243D31 for ; Sun, 15 Aug 2004 19:25:43 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) (192.168.1.2) by mail.ambrisko.com with ESMTP; 15 Aug 2004 12:25:43 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.9p2/8.12.9) with ESMTP id i7FJPYSU070942; Sun, 15 Aug 2004 12:25:34 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.9p2/8.12.9/Submit) id i7FJPY77070941; Sun, 15 Aug 2004 12:25:34 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200408151925.i7FJPY77070941@ambrisko.com> In-Reply-To: To: "George V. Neville-Neil" Date: Sun, 15 Aug 2004 12:25:34 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: Vitaly Markitantov cc: current@freebsd.org Subject: Re: lnc0 in VmWare doesn't work X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 19:25:43 -0000 FYI, if you are using a newer version of vmware we ran into a bug in which the virtual NICs are reset as the system boots up. So once interrupts are enabled you get a "storm" of packets ignored by driver. Here is a patch for -stable that should be close for -current etc. Index: sys/i386/isa/if_lnc.c =================================================================== RCS file: /usr/local/cvsroot/freebsd/src/sys/i386/isa/Attic/if_lnc.c,v retrieving revision 1.68.2.5 diff -u -p -r1.68.2.5 if_lnc.c --- sys/i386/isa/if_lnc.c 13 Feb 2002 00:43:10 -0000 1.68.2.5 +++ sys/i386/isa/if_lnc.c 24 Mar 2004 16:12:00 -0000 @@ -1244,6 +1244,8 @@ lnc_attach_sc(struct lnc_softc *sc, int ether_ifattach(&sc->arpcom.ac_if, ETHER_BPF_SUPPORTED); + lnc_init(sc); + printf("lnc%d: ", unit); if (sc->nic.ic == LANCE || sc->nic.ic == C_LANCE) printf("%s (%s)", @@ -1338,6 +1340,8 @@ lnc_init(xsc) s = splimp(); lnc_stop(sc); + inw(sc->rdp + PCNET_RESET - PCNET_RDP); + outw(sc->rdp + PCNET_RESET - PCNET_RDP, 0); sc->arpcom.ac_if.if_flags |= IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; /* XXX??? */ /* Doug A.