From owner-freebsd-net Wed Mar 27 10:40:28 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id B761137B41F for ; Wed, 27 Mar 2002 10:40:16 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020327184016.FGQO2626.rwcrmhc51.attbi.com@InterJet.elischer.org>; Wed, 27 Mar 2002 18:40:16 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA47794; Wed, 27 Mar 2002 10:33:51 -0800 (PST) Date: Wed, 27 Mar 2002 10:33:50 -0800 (PST) From: Julian Elischer To: Archie Cobbs Cc: Luigi Rizzo , freebsd-net@FreeBSD.ORG Subject: Re: ip_output and ENOBUFS In-Reply-To: <200203271753.g2RHr0L41197@arch20m.dellroad.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 27 Mar 2002, Archie Cobbs wrote: > 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' ? You can't touch struct ifnet in a released line of systems e.g. 4.x must not touch struct ifnet of break binary compatibility with drivers written for earlier 4.x systems. (and not available in source).. it turns out that sync interface cards are the single largest set of binary drivers... > > -Archie > > __________________________________________________________________________ > Archie Cobbs * Packet Design * http://www.packetdesign.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message