From owner-freebsd-net@FreeBSD.ORG Tue May 15 08:17:19 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D49F16A408 for ; Tue, 15 May 2007 08:17:19 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by mx1.freebsd.org (Postfix) with ESMTP id EF21E13C468 for ; Tue, 15 May 2007 08:17:18 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so60044nze for ; Tue, 15 May 2007 01:17:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jHqEaj6mOZCHE4GJ4fEEXSR7mG2rV/HulrGGj9PMIIQZ80aQxpGa/T3vylDFO9trUw4ADih8Sb1rj08pDyMgDU3cl86VsBioLjnB9l+mRdEtBNcXAuQB3ox62VHWcVEctnGTfEE9IZl/BWKaNlIXoMsgsPJmIOA3ko2/FYeDhTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RGJ+ROCSjRnxU2hRXjclgljWJHMW5/CDwK2MFhEwPPMxSWPZGYxo23cu422ySpLNn1f/Hv2C6jsI3W9tf9KhtQCI4nX1ECRpu3yIsl7J/pHgUpxX7hRFmvVoCu1gdYuUh1uqtckXvAVqCSw5YK1CjV74z/1sBCHhimN/bUL+U7c= Received: by 10.114.170.1 with SMTP id s1mr1417333wae.1179217037066; Tue, 15 May 2007 01:17:17 -0700 (PDT) Received: by 10.114.126.10 with HTTP; Tue, 15 May 2007 01:17:17 -0700 (PDT) Message-ID: <2a41acea0705150117y778093ej4ecf869a2f5b1d48@mail.gmail.com> Date: Tue, 15 May 2007 01:17:17 -0700 From: "Jack Vogel" To: "sivakumar.subramani@wipro.com" In-Reply-To: <821C7AD2A9F78942B8605979226257739CFBF5@blr-m3-msg.wipro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <821C7AD2A9F78942B8605979226257739CFBF5@blr-m3-msg.wipro.com> Cc: freebsd-net@freebsd.org Subject: Re: IXGB networl driver and locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 08:17:19 -0000 On 5/14/07, sivakumar.subramani@wipro.com wrote: > > Hi all, > > Same lock is being used in ixgb_intr and ixgb_start. If we get Receive > interrupt while processing Xmit (ixgb_start), Will the calling of > ixgb_intr() handler be delayed as we will not be getting lock in > ixgb_intr since it is already locked in ixgb_start. If it is the case, > are we making it as Half duplex, I mean we are allowing either of one Tx > (or) Rx. Please clarify. What was all this garbled URLs in your message, something is messing with your content. In any case, the device only has ONE interrupt registered, it can be caused by either RX or TX or whatever. This as well as the em driver has always had a single lock as well, and, while it could be made more sophisticated, it has been adequate. The em driver in CURRENT handles some interrupts without the lock. In any case, the hardware operates independently of the driver to some extent, processing RX from the wire, and doing the DMA to memory without the driver being in control, it interrupts when it gets done with an packet, and even then it can continue. So, I dont know what your real issue is, but the single adapter lock does not make things half duplex. Jack