From owner-freebsd-net Wed Mar 27 10:52:13 2002 Delivered-To: freebsd-net@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 87DEA37B404 for ; Wed, 27 Mar 2002 10:52:07 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id NAA29667; Wed, 27 Mar 2002 13:52:07 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g2RIpaL73915; Wed, 27 Mar 2002 13:51:36 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15522.5304.931386.964581@grasshopper.cs.duke.edu> Date: Wed, 27 Mar 2002 13:51:36 -0500 (EST) To: Julian Elischer Cc: freebsd-net@FreeBSD.ORG Subject: Re: ip_output and ENOBUFS In-Reply-To: References: <15522.2882.479989.695082@grasshopper.cs.duke.edu> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Julian Elischer writes: > > > On Wed, 27 Mar 2002, Andrew Gallatin wrote: > > > > > Archie Cobbs writes: > > > Luigi Rizzo writes: > > > > > Is if_tx_rdy() something that can be used generally or does it only > > > > > work with dummynet ? > > > > > > > > well, the function is dummynet-specific, but I would certainly like > > > > a generic callback list to be implemented in ifnet which is > > > > invoked on tx_empty events. > > > > > > Me too :-) > > > > > > > The problem as usual is that you have to touch every single device > > > > driver... Fortunately we can leave the ifnet structure unmodified > > > > because i just discovered there is an ifindex2ifnet array which is > > > > managed and can be extended to point to additional ifnet state that > > > > does not fit in the immutable one... > > > > > > Why is it important to avoid changing 'struct ifnet' ? > > > > To maintain binary compatability for commercial network drivers. > > > > Currently, network driver modules built on 4.1.1 work on all versions > > of FreeBSD through 4.5-STABLE. > > > Not QUITE true.. > > they ar ebroken in some cases for 4.4 amd 4.5 due to a renumberring > of SYSINIT orderings, but I fixed that and they should work in 4.6 > again.. I know we hit it here with some cards we have.. > I just made a small patch in teh local trees to allow us to use them. > > Some cards may not hit this problem. I've never tried loading our driver at boot (we have customers load it manually, or via a /usr/local/etc/rc.d script very late in boot). 4.5 works fine for us. There was a bit of breakage just after 4.5 when for ARP support for variable length link level addresses was MFCed, but I caught that early.. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message