From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B106DE5D for ; Mon, 30 Apr 2018 17:41:04 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Apr 2018 08:41:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,346,1520924400"; d="scan'208";a="35737812" Received: from dwdohert-ws.ir.intel.com ([163.33.210.60]) by fmsmga007.fm.intel.com with ESMTP; 30 Apr 2018 08:41:02 -0700 From: Declan Doherty To: dev@dpdk.org Cc: Declan Doherty Date: Mon, 30 Apr 2018 16:32:56 +0100 Message-Id: <20180430153258.1101-1-declan.doherty@intel.com> X-Mailer: git-send-email 2.14.3 Subject: [dpdk-dev] [PATCH 1/3] net/ixgbe: revert default PF PMD device name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 15:41:05 -0000 Changes introduced by cf80ba6e2038 modified the default name generated for the IXGBE PF PMD, this patch reverts the default name to the original PCI BDBF. Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports") Signed-off-by: Declan Doherty --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 6088c7e48..0ccf55dc8 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -1736,10 +1736,7 @@ eth_ixgbe_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, return retval; } - /* physical port net_bdf_port */ - snprintf(name, sizeof(name), "net_%s_%d", pci_dev->device.name, 0); - - retval = rte_eth_dev_create(&pci_dev->device, name, + retval = rte_eth_dev_create(&pci_dev->device, pci_dev->device.name, sizeof(struct ixgbe_adapter), eth_dev_pci_specific_init, pci_dev, eth_ixgbe_dev_init, NULL); @@ -1748,7 +1745,8 @@ eth_ixgbe_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, return retval; /* probe VF representor ports */ - struct rte_eth_dev *pf_ethdev = rte_eth_dev_allocated(name); + struct rte_eth_dev *pf_ethdev = rte_eth_dev_allocated( + pci_dev->device.name); for (i = 0; i < eth_da.nb_representor_ports; i++) { struct ixgbe_vf_info *vfinfo; -- 2.14.3