From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 01/16] bnx2: clean up unnecessary MSI/MSI-X capability find Date: Fri, 09 Aug 2013 13:50:33 -0700 (PDT) Message-ID: <20130809.135033.469551802157578492.davem@davemloft.net> References: <1375966942-2052-1-git-send-email-wangyijing@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: guohanjun@huawei.com, jiang.liu@huawei.com, mchan@broadcom.com, netdev@vger.kernel.org To: wangyijing@huawei.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:51535 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030942Ab3HIUue (ORCPT ); Fri, 9 Aug 2013 16:50:34 -0400 In-Reply-To: <1375966942-2052-1-git-send-email-wangyijing@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Yijing Wang Date: Thu, 8 Aug 2013 21:02:22 +0800 > PCI core will initialize device MSI/MSI-X capability in > pci_msi_init_pci_dev(). So device driver should use > pci_dev->msi_cap/msix_cap to determine whether the device > support MSI/MSI-X instead of using > pci_find_capability(pci_dev, PCI_CAP_ID_MSI/MSIX). > Access to PCIe device config space again will consume more time. > > Signed-off-by: Yijing Wang Applied.