From owner-freebsd-net Mon Jul 22 12: 0:23 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31DED37B400 for ; Mon, 22 Jul 2002 12:00:19 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96F7643E5E for ; Mon, 22 Jul 2002 12:00:18 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020722190017.OXBP8192.sccrmhc01.attbi.com@InterJet.elischer.org>; Mon, 22 Jul 2002 19:00:17 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA05548; Mon, 22 Jul 2002 11:42:55 -0700 (PDT) Date: Mon, 22 Jul 2002 11:42:53 -0700 (PDT) From: Julian Elischer To: freebsd Cc: net@freebsd.org Subject: Re: Multi-threaded drivers? In-Reply-To: <200207221338.g6MDc4200667@exchange.epx.com> Message-ID: 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 Yes and no.. it has 2 'threads' (if you decide to interpret it that way). One runs at the time of the interrupt. and receives the packet, and possibly gets another to transmit if the transmit buffer has room. The other runs at other times and passes the packet through the IP stack. It also queues packets ready to transmit.. it's not actually a threaded driver, but it has some of the characteristics of one. The two threads of control are independent and need to have locking to stop them colliding. The locking is in th e form of spl() calls in -stable. In -current it's more complicated.. On Mon, 22 Jul 2002, freebsd wrote: > Sorry, I'm not a programmer. Can anyone tell me if the 'dc' driver is > multithreaded? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message