From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 0BCC98E7A for ; Fri, 4 Dec 2015 16:15:00 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 04 Dec 2015 07:14:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,380,1444719600"; d="scan'208";a="853961238" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 04 Dec 2015 07:14:31 -0800 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id tB4FEUjQ011086; Fri, 4 Dec 2015 15:14:30 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id tB4FEUKI027298; Fri, 4 Dec 2015 15:14:30 GMT Received: (from bairemon@localhost) by sivswdev01.ir.intel.com with id tB4FEU8v027293; Fri, 4 Dec 2015 15:14:30 GMT From: Bernard Iremonger To: dev@dpdk.org Date: Fri, 4 Dec 2015 15:14:26 +0000 Message-Id: <1449242066-27257-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: Subject: [dpdk-dev] [PATCH 1/1] virtio: call rte_eth_copy_pci_info() later X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 15:15:01 -0000 call rte_eth_copy_pci_info() after the RTE_PCI_DRV_INTR_LSC has been initialised. Fixes: eeefe73f0af1("drivers: copy PCI device info to ethdev data") Reported-by: Stephen Hemminger Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 74c00ee..ae7c281 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1289,8 +1289,6 @@ eth_virtio_dev_init(struct rte_eth_dev *eth_dev) pci_dev = eth_dev->pci_dev; - rte_eth_copy_pci_info(eth_dev, pci_dev); - if (virtio_resource_init(pci_dev) < 0) return -1; @@ -1311,6 +1309,8 @@ eth_virtio_dev_init(struct rte_eth_dev *eth_dev) if (!vtpci_with_feature(hw, VIRTIO_NET_F_STATUS)) pci_dev->driver->drv_flags &= ~RTE_PCI_DRV_INTR_LSC; + rte_eth_copy_pci_info(eth_dev, pci_dev); + rx_func_get(eth_dev); /* Setting up rx_header size for the device */ -- 1.9.1