From patchwork Wed Jun 25 04:22:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangyijing X-Patchwork-Id: 32450 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 01164201EF for ; Wed, 25 Jun 2014 04:23:41 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id uo5sf5015410pbc.8 for ; Tue, 24 Jun 2014 21:23:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=dWukEnCssqiRIkyeocF2jRWAinfukofKdq46J2oSICo=; b=YAhT/mJ7YLTrjLA0WyapMB5ma8QXggagjmAThDdPiOCD9DFD/wbeHu/SxZeIq5zDgO QY9xiPdhNgqZxCo96yNOZtmougFjQBy/VLIKcZ3K6gFehQYSsKLhq145L1VIfNdHJ9xX tWFTzYWXuI19PwyeASmlpXsVb/XU7Z+MdaQsiiAM9wxKp8YjThU34osHzZuI4NR0ylvc yZ/p9miwX7otfEa+QO21wuhkpqF9XbakO/uTlkT7xCu4Pc33munzDtC39l7egnPS/7y2 D+nPQBCc5CHYUyfWCTDVJyTBmjKwJnLBMKhgWE5HlkO/wUqVy+y8E0pAo9kJRkejEv2R wDhg== X-Gm-Message-State: ALoCoQkgBnvtnnQep2p13g6k690MFpDyuRBkpImzoYoQn/ONNPFVWihvHbAph7WsT6sOzukR7qJf X-Received: by 10.66.220.34 with SMTP id pt2mr2986575pac.8.1403670220546; Tue, 24 Jun 2014 21:23:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.10 with SMTP id l10ls2574358qga.72.gmail; Tue, 24 Jun 2014 21:23:40 -0700 (PDT) X-Received: by 10.58.228.74 with SMTP id sg10mr4490577vec.6.1403670220414; Tue, 24 Jun 2014 21:23:40 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id dj5si1564143vcb.21.2014.06.24.21.23.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Jun 2014 21:23:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id il7so1342019vcb.13 for ; Tue, 24 Jun 2014 21:23:40 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr4638658vcb.0.1403670220321; Tue, 24 Jun 2014 21:23:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp260356vcb; Tue, 24 Jun 2014 21:23:39 -0700 (PDT) X-Received: by 10.69.3.196 with SMTP id by4mr1032752pbd.63.1403670219421; Tue, 24 Jun 2014 21:23:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qm6si3377306pac.8.2014.06.24.21.23.38; Tue, 24 Jun 2014 21:23:38 -0700 (PDT) Received-SPF: none (google.com: netdev-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751483AbaFYEXc (ORCPT + 3 others); Wed, 25 Jun 2014 00:23:32 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:28002 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbaFYEXc (ORCPT ); Wed, 25 Jun 2014 00:23:32 -0400 Received: from 172.24.2.119 (EHLO SZXEML454-HUB.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BVT87729; Wed, 25 Jun 2014 12:23:11 +0800 (CST) Received: from localhost (10.177.27.212) by SZXEML454-HUB.china.huawei.com (10.82.67.197) with Microsoft SMTP Server id 14.3.158.1; Wed, 25 Jun 2014 12:23:04 +0800 From: Yijing Wang To: "David S. Miller" CC: , Ariel Elior , "Yijing Wang" Subject: [PATCH] bnx2x: Fix the MSI flags Date: Wed, 25 Jun 2014 12:22:56 +0800 Message-ID: <1403670176-12072-1-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.11.msysgit.1 MIME-Version: 1.0 X-Originating-IP: [10.177.27.212] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: netdev@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangyijing@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , MSI-X should use PCI_MSIX_FLAGS not PCI_MSI_FLAGS. Signed-off-by: Yijing Wang --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 2887034..6a8b145 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -12937,7 +12937,7 @@ static int bnx2x_get_num_non_def_sbs(struct pci_dev *pdev, int cnic_cnt) * without the default SB. * For VFs there is no default SB, then we return (index+1). */ - pci_read_config_word(pdev, pdev->msix_cap + PCI_MSI_FLAGS, &control); + pci_read_config_word(pdev, pdev->msix_cap + PCI_MSIX_FLAGS, &control); index = control & PCI_MSIX_FLAGS_QSIZE;