Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754857AbYCQMJh (ORCPT ); Mon, 17 Mar 2008 08:09:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752891AbYCQMJ2 (ORCPT ); Mon, 17 Mar 2008 08:09:28 -0400 Received: from srv5.dvmed.net ([207.36.208.214]:52337 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752850AbYCQMJ1 (ORCPT ); Mon, 17 Mar 2008 08:09:27 -0400 Message-ID: <47DE5F75.4030700@garzik.org> Date: Mon, 17 Mar 2008 08:09:25 -0400 From: Jeff Garzik User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Divy Le Ray CC: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, swise@opengridcomputing.com Subject: Re: [PATCH 2.6.25] - Fix transmit queue stop mechanism References: <20080313071330.10331.66058.stgit@speedy5> In-Reply-To: <20080313071330.10331.66058.stgit@speedy5> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-Spam-Report: SpamAssassin version 3.2.4 on srv5.dvmed.net summary: Content analysis details: (-4.4 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1284 Lines: 38 Divy Le Ray wrote: > From: Divy Le Ray > > The last change in the Tx queue stop mechanism opens a window > where the Tx queue might be stopped after pending credits > returned. > > Tx credits are returned via a control message generated by the HW. > It returns tx credits on demand, triggered by a completion bit > set in selective transmit packet headers. > > The current code can lead to the Tx queue stopped > with all pending credits returned, and the current frame > not triggering a credit return. The Tx queue will then never be > awaken. > > The driver could alternatively request a completion for packets > that stop the queue. It's however safer at this point to go back > to the pre-existing behaviour. > > Signed-off-by: Divy Le Ray > --- > > drivers/net/cxgb3/sge.c | 12 +++++++++--- > 1 files changed, 9 insertions(+), 3 deletions(-) applied -- please include "cxgb3: " prefix in your subject line next time. See http://linux.yyz.us/patch-format.html for more info. Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/