From owner-freebsd-arch@FreeBSD.ORG Mon Aug 30 20:40:30 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E932416A4CF; Mon, 30 Aug 2004 20:40:30 +0000 (GMT) Received: from athena.softcardsystems.com (mail.softcardsystems.com [12.34.136.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EB0743D5F; Mon, 30 Aug 2004 20:40:30 +0000 (GMT) (envelope-from sah@softcardsystems.com) Received: from athena (athena [12.34.136.114])i7ULdBB2008658; Mon, 30 Aug 2004 16:39:11 -0500 Date: Mon, 30 Aug 2004 16:39:11 -0500 (EST) From: Sam X-X-Sender: sah@athena To: Scott Long In-Reply-To: <41336DC8.7080808@freebsd.org> Message-ID: References: <20040830.102606.130865377.imp@bsdimp.com> <20040830.111428.56562495.imp@bsdimp.com> <4133682D.3000403@freebsd.org> <20040830.120124.28086427.imp@bsdimp.com> <41336DC8.7080808@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-arch@freebsd.org Subject: Re: splxxx level? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 20:40:31 -0000 Wow guys, this is great stuff, thanks! Here's what I've discovered so far and again, correct me if I'm wrong. In strategy, I need to protect from my callout and netisr running. In my netisr, I need to protect from my callout running. In my callout, I need to protect from my netisr running. It looks like I can use splnet() everywhere *except* where I'm pulling mbufs off of the mbuf queue in the netisr routine. There I'll have to use splimp() to keep from banging heads with the hardware. I think this is the optimum spl-ing as it will allow the network hardware to keep queueing up packets as I process them. Comments? Sam