From owner-freebsd-net Wed Mar 27 10: 0:11 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 947BB37B405 for ; Wed, 27 Mar 2002 10:00:02 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id JAA55601; Wed, 27 Mar 2002 09:53:23 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g2RHr0L41197; Wed, 27 Mar 2002 09:53:00 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200203271753.g2RHr0L41197@arch20m.dellroad.org> Subject: Re: ip_output and ENOBUFS In-Reply-To: <20020326231657.A16810@iguana.icir.org> "from Luigi Rizzo at Mar 26, 2002 11:16:57 pm" To: Luigi Rizzo Date: Wed, 27 Mar 2002 09:53:00 -0800 (PST) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 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' ? -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