From owner-freebsd-smp Mon Jul 29 14:53:44 2002 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00C9D37B400 for ; Mon, 29 Jul 2002 14:53:43 -0700 (PDT) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91D8043E65 for ; Mon, 29 Jul 2002 14:53:42 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 7309 invoked from network); 29 Jul 2002 21:53:40 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 29 Jul 2002 21:53:40 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g6TLrduR051775; Mon, 29 Jul 2002 17:53:39 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <15685.46052.696385.530549@grasshopper.cs.duke.edu> Date: Mon, 29 Jul 2002 17:53:42 -0400 (EDT) From: John Baldwin To: Andrew Gallatin Subject: RE: INTR_MPSAFE network drivers Cc: freebsd-smp@freebsd.org Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 29-Jul-2002 Andrew Gallatin wrote: > > > What does a network driver need to do to mark itself INTR_MPSAFE? > Eg, do I need to get Giant before callng ether_input()? > > Why are no network drivers marked INTR_MPSAFE currently? > Is the kernel not ready for mp safe network drivers? Probably not. Also, I think most of the current driver locks in the network drivers probably aren't right. They really should be replaced with the locks on the ifnet structures associated with each instance when ifnet structure locks are added. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message