From owner-freebsd-arch@FreeBSD.ORG Mon May 22 13:56:00 2006 Return-Path: X-Original-To: arch@FreeBSD.org 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 3D89D16ABE8; Mon, 22 May 2006 13:56:00 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B13A243D48; Mon, 22 May 2006 13:55:59 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.33.193]) by relay-er5.mbrd.ru with esmtpa (Exim 4.x) id 1FiAt2-000ClT-EO; Mon, 22 May 2006 17:55:56 +0400 Message-ID: <4471C2ED.3080703@FreeBSD.org> Date: Mon, 22 May 2006 17:55:57 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Robert Watson References: <20060522144542.T21787@fledge.watson.org> In-Reply-To: <20060522144542.T21787@fledge.watson.org> X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: arch@FreeBSD.org, freebsd-usb@freebsd.org Subject: Re: Resend with subject: No more non-MPSAFE network device drivers, please! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 May 2006 13:56:04 -0000 Robert Watson wrote: > This e-mail is just to remind device driver authors of something that I hope they were already aware of: as FreeBSD has been shipping with a network stack largely capable of running without Giant since the 5.x series, we will no longer be accepting new network device drivers that require Giant compatibility to function. This is true both for UP and SMP systems. > > Non-MPSAFE network device driver compatibility adds significant overhead to the operation of the network stack, and non-MPSAFE network device drivers pay a very high overhead to operate in the current environment. The compatibility code also complicates calling components which do not hold Giant, especially with regard to management ioctls. > > We have also discussed requiring that all network device drivers in the system for 7.0 be able to operate MPSAFE. This runs into some issues due to non-MPSAFEty of some key device driver subsystems, including Firewire, USB, and the TTY subsystem. Poul-Henning is in the process of working on MPSAFE tty support, and I hope that people will step up to the plate to work on the remaining subsystems in the near future. That way we will be able to remove the compatibility code, and continue cleanup and optimization work. > > Thanks, > > Robert N M Watson Looks like there are no developers right now who could rewrite USB stack to be MPSAFE. So all USB-Ethernet are broken. I gald if I mistake. -- Dixi. Sem.