From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 08/16] myri10ge: clean up unnecessary MSI/MSI-X capability find Date: Fri, 09 Aug 2013 13:50:43 -0700 (PDT) Message-ID: <20130809.135043.251900707970096428.davem@davemloft.net> References: <1375966964-24156-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, gallatin@myri.com, netdev@vger.kernel.org To: wangyijing@huawei.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:51546 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031089Ab3HIUuo (ORCPT ); Fri, 9 Aug 2013 16:50:44 -0400 In-Reply-To: <1375966964-24156-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:44 +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.