From owner-freebsd-mobile Thu Jun 7 12:12:16 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152]) by hub.freebsd.org (Postfix) with ESMTP id 028B437B403 for ; Thu, 7 Jun 2001 12:12:09 -0700 (PDT) (envelope-from raj@cisco.com) Received: from mira-sjcm-2.cisco.com (mira-sjcm-2.cisco.com [171.69.24.14]) by sj-msg-core-3.cisco.com (8.11.3/8.9.1) with ESMTP id f57JAWF10156; Thu, 7 Jun 2001 12:10:32 -0700 (PDT) Received: from kitab.cisco.com (kitab.cisco.com [171.69.187.233]) by mira-sjcm-2.cisco.com (Mirapoint) with ESMTP id ADU01592; Thu, 7 Jun 2001 12:11:47 -0700 (PDT) Received: (from raj@localhost) by kitab.cisco.com (8.11.0/8.9.2) id f57JBjN18142; Thu, 7 Jun 2001 12:11:45 -0700 (PDT) (envelope-from raj) From: Richard Johnson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15135.53743.221860.713885@kitab.cisco.com> Date: Thu, 7 Jun 2001 12:11:43 -0700 To: Tom Gwilt Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: Cisco 350 In-Reply-To: References: X-Mailer: VM 6.90 under 20.4 "Emerald" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I thought 4.3 had this fix, but maybe not. I think Doug Abrisko's fixes (http://www.ambrisko.com:/doug/an/) include it, however. At any rate, I think you need something like this: *** if_an.c.no-local-fixes Thu Nov 30 00:53:55 2000 --- if_an.c Thu Nov 30 02:14:13 2000 *************** *** 470,475 **** --- 470,476 ---- { struct ifnet *ifp; int id; + int i; /* TX DONE enable lan monitor DJA an_enable_sniff(); *************** *** 487,498 **** } else ifp->if_opackets++; ! if (id != sc->an_rdata.an_tx_ring[sc->an_rdata.an_tx_cons]) ! printf("an%d: id mismatch: expected %x, got %x\n", ! sc->an_unit, ! sc->an_rdata.an_tx_ring[sc->an_rdata.an_tx_cons], id); - sc->an_rdata.an_tx_ring[sc->an_rdata.an_tx_cons] = 0; AN_INC(sc->an_rdata.an_tx_cons, AN_TX_RING_CNT); return; --- 488,500 ---- } else ifp->if_opackets++; ! for (i = 0; i < AN_TX_RING_CNT; i++ ) { ! if (id == sc->an_rdata.an_tx_ring[i]) { ! sc->an_rdata.an_tx_ring[i] = 0; ! break; ! } ! } AN_INC(sc->an_rdata.an_tx_cons, AN_TX_RING_CNT); return; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message