From owner-freebsd-net Wed Feb 20 2:46:36 2002 Delivered-To: freebsd-net@freebsd.org Received: from smtp.nettoll.com (matrix.nettoll.net [212.155.143.61]) by hub.freebsd.org (Postfix) with ESMTP id 80F6637B402 for ; Wed, 20 Feb 2002 02:46:32 -0800 (PST) Received: by smtp.nettoll.com; Wed, 20 Feb 2002 11:45:21 +0100 (MET) Date: Wed, 20 Feb 2002 11:46:09 +0100 (CET) From: Nicolas Fritsch X-X-Sender: nfritsch@mexico.nettoll.com To: freebsd-net@freebsd.org Subject: Interrupts / No interrupts Message-ID: <20020220114202.T64112-100000@mexico.nettoll.com> 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 Hi! I'm working on an IP encapsulation protocol, a la IPSec. Since I need to manage sessions, I have "shared datum" among several IP packets, so I need to splnet() / splx() the code. A simple way to do it is just to protect my whole code inside a splnet(), and then splx() when it exits. I that a bad idea? Should I only protect some portions, and why? Thanks Nicolas Fritsch Software Engineer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message