From owner-freebsd-questions Tue Nov 10 12:13:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA08678 for freebsd-questions-outgoing; Tue, 10 Nov 1998 12:13:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from postoffice2.direcpc.com (mail.direcpc.com [198.77.116.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA08661 for ; Tue, 10 Nov 1998 12:13:48 -0800 (PST) (envelope-from snowfox@newtoy.com) Received: from newtoy ([206.71.119.54]) by postoffice2.direcpc.com (Post.Office MTA v3.1.2 release (PO203-101c) ID# 0-45425U50000L50000S0) with SMTP id AAA18980 for ; Tue, 10 Nov 1998 15:13:55 -0500 Message-ID: <001a01be0ce7$66047760$7c000080@newtoy.com> From: "SnowFox" To: Subject: Slow ed revisited - D-Link DE-220P & if_ed.c multibuffering Date: Tue, 10 Nov 1998 14:19:15 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I wrote about 120-130k/s transfer rates with a D-Link DE-220P NE2000 compatible card - cable wiggling and all didn't seem to help, so I went spelunking in the code today. (*Huge hugs for open source - I learned how network cards work today... this if fun!*) =) Okay, if_ed.c detects the card as an NE2000 compatible and assigns it a 16k buffer. This much is nice. Unfortunately, ed_probe_Novell_generic defaults to creating two transmission buffers, and this is what's slowing me down. Hard-coding "sc->txb_cnt = 1" gets me upper 900k/s rates. (Bonus points for anyone who can tell me why? I'd gone into the code assuming I was on an 8k buffer witch-hunt, but the specs on D-Link's page say 16k.) I'd like to get if_ed.c patched to fix this condition for future releases, however I'm not sure how to best go about detecting this specific card. I know the plug and play string ends in "DLK2201" if the card hasn't been flashed with specific port and interrupt settings and "DLK2202" if it has, but I don't see anything that looks like an ISA PnP hunt section in FreeBSD for a reference on how to cleanly use this information. Anyone know better than me on how to handle this, or has anyone seen a good ISA PnP primer? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message