From owner-freebsd-net Mon Dec 10 21: 6:28 2001 Delivered-To: freebsd-net@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id D0C8B37B417 for ; Mon, 10 Dec 2001 21:06:25 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.3/8.11.1) id fBB56Ps16331; Mon, 10 Dec 2001 21:06:25 -0800 (PST) (envelope-from rizzo) Date: Mon, 10 Dec 2001 21:06:25 -0800 From: Luigi Rizzo To: net@freebsd.org Subject: do we really need NETISR_foo == AF_foo ? Message-ID: <20011210210625.A16280@iguana.aciri.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i 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 Hi, for some reasons (device polling), i need to register a couple of netisr which are executed with highest and lowest priority among network soft interrupts. In other word, i would need #define NETISR_POLL 0 #define NETISR_POLLMORE 31 Now, the former is available, so no problem. The latter is already taken by NETISR_NETGRAPH, but I can still do something like what i need by modifying swi_net() (or the equivalent piece of assembly code in -stable; speaking of which, i wonder if we can replace it with a C function). However, I was wonder if it is really necessary that NETISR_foo has the same value as AF_foo, or it is possible to shift up values and fill holes to free the last bit ? cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message