From patchwork Tue Jun 29 22:54:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Casey Leedom X-Patchwork-Id: 57338 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.180.67]) by ozlabs.org (Postfix) with ESMTP id 87D29B6F06 for ; Wed, 30 Jun 2010 08:57:50 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753327Ab0F2W5n (ORCPT ); Tue, 29 Jun 2010 18:57:43 -0400 Received: from stargate.chelsio.com ([67.207.112.58]:31699 "EHLO stargate.chelsio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751950Ab0F2W5m convert rfc822-to-8bit (ORCPT ); Tue, 29 Jun 2010 18:57:42 -0400 Received: from maui.asicdesigners.com (maui.asicdesigners.com [10.192.180.15]) by stargate.chelsio.com (8.13.1/8.13.1) with SMTP id o5TMvg2s018102 for ; Tue, 29 Jun 2010 15:57:42 -0700 Received: from okham.asicdesigners.com ([10.192.164.4]) by maui.asicdesigners.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 29 Jun 2010 15:54:13 -0700 From: Casey Leedom Organization: Chelsio Communications, Inc. To: netdev@vger.kernel.org Subject: [PATCH 2/2] Use correct shift factor for extracting the SGE DMA Ingress Padding ... Date: Tue, 29 Jun 2010 15:54:12 -0700 User-Agent: KMail/1.13.2 (Linux/2.6.32-22-generic; KDE/4.4.2; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201006291554.12983.leedom@chelsio.com> X-OriginalArrivalTime: 29 Jun 2010 22:54:13.0371 (UTC) FILETIME=[FE6934B0:01CB17DD] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From d9aed637fc8a9f1bf1bccf6f23aed0342870f868 Mon Sep 17 00:00:00 2001 From: Casey Leedom Date: Tue, 29 Jun 2010 15:15:11 -0700 Subject: [PATCH 2/2] Use correct shift factor for extracting the SGE DMA Ingress Padding Boundary. Was accidentally using the register field's shift which was close enough (4 instead of the propper value of 5) that it actually sort of worked for various packet sizes ... Signed-off-by: Casey Leedom --- drivers/net/cxgb4vf/sge.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/cxgb4vf/sge.c b/drivers/net/cxgb4vf/sge.c index 5c4a81d..3a7c02f 100644 --- a/drivers/net/cxgb4vf/sge.c +++ b/drivers/net/cxgb4vf/sge.c @@ -2432,7 +2432,7 @@ int t4vf_sge_init(struct adapter *adapter) STAT_LEN = ((sge_params->sge_control & EGRSTATUSPAGESIZE) ? 128 : 64); PKTSHIFT = PKTSHIFT_GET(sge_params->sge_control); FL_ALIGN = 1 << (INGPADBOUNDARY_GET(sge_params->sge_control) + - INGPADBOUNDARY_SHIFT); + SGE_INGPADBOUNDARY_SHIFT); /* * Set up tasklet timers.