From patchwork Mon Nov 23 14:31:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Kagstrom X-Patchwork-Id: 39055 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 495E4B6EDD for ; Tue, 24 Nov 2009 01:31:40 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754367AbZKWOb2 (ORCPT ); Mon, 23 Nov 2009 09:31:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754088AbZKWOb1 (ORCPT ); Mon, 23 Nov 2009 09:31:27 -0500 Received: from ernst.netinsight.se ([194.16.221.21]:37145 "HELO ernst.netinsight.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753967AbZKWOb1 (ORCPT ); Mon, 23 Nov 2009 09:31:27 -0500 Received: from marrow.netinsight.se (unverified [10.100.3.78]) by ernst.netinsight.se (EMWAC SMTPRS 0.83) with SMTP id ; Mon, 23 Nov 2009 15:31:25 +0100 Date: Mon, 23 Nov 2009 15:31:26 +0100 From: Simon Kagstrom To: netdev@vger.kernel.org Cc: davem@davemloft.net, davej@redhat.com, shemminger@vyatta.com, romieu@fr.zoreil.com Subject: [PATCH v2 4/7] via-velocity: Change DMA_LENGTH_DEF (from the VIA driver) Message-ID: <20091123153126.4ed0b907@marrow.netinsight.se> In-Reply-To: <20091123152724.2871cf4d@marrow.netinsight.se> References: <20091120160633.77b7aee0@marrow.netinsight.se> <20091123152724.2871cf4d@marrow.netinsight.se> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.16.1; i486-pc-linux-gnu) Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The VIA driver has changed the default for the DMA_LENGTH_DEF parameter. Together with adaptive interrupt supression and NAPI support, this improves performance quite a bit Signed-off-by: Simon Kagstrom --- drivers/net/via-velocity.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index 668cdf6..06a6d80 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c @@ -275,7 +275,7 @@ VELOCITY_PARAM(rx_thresh, "Receive fifo threshold"); #define DMA_LENGTH_MIN 0 #define DMA_LENGTH_MAX 7 -#define DMA_LENGTH_DEF 0 +#define DMA_LENGTH_DEF 6 /* DMA_length[] is used for controlling the DMA length 0: 8 DWORDs