From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sunset.davemloft.net (unknown [74.93.104.97]) by ozlabs.org (Postfix) with ESMTP id 58D58DDD04 for ; Thu, 26 Mar 2009 08:42:19 +1100 (EST) Date: Wed, 25 Mar 2009 14:42:07 -0700 (PDT) Message-Id: <20090325.144207.225365184.davem@davemloft.net> To: Joakim.Tjernlund@transmode.se Subject: Re: [PATCH] ucc_geth: Move freeing of TX packets to NAPI context. From: David Miller In-Reply-To: References: <1237987849.2194.9.camel@gentoo-jocke.transmode.se> <49CA39EA.6020208@cosmosbay.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Cc: linuxppc-dev@ozlabs.org, netdev@vger.kernel.org, leoli@freescale.com, dada1@cosmosbay.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Joakim Tjernlund Date: Wed, 25 Mar 2009 16:16:24 +0100 > UCC_GETH_DEV_WEIGHT needs to be a bit bigger than the number of RX > HW buffers avaliable, otherwise one won't be able to drain the whole > queue in one go. Changing weight to something bigger made a big > difference. You're not supposed to "drain the whole queue in one go", that is not the goal of the weight value. The goal of the weight value is that it is low enough such that other devices also scheduled for NAPI on the current processor can get some fair time to process packets too.