From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ravi Kerur Subject: [PATCH v2] Send updated port_id in vdev_init functions Date: Wed, 19 Aug 2015 12:42:21 -0700 Message-ID: <1440013341-29659-1-git-send-email-rkerur@gmail.com> To: dev@dpdk.org Return-path: Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by dpdk.org (Postfix) with ESMTP id 5EDA78D91 for ; Wed, 19 Aug 2015 21:42:27 +0200 (CEST) Received: by pawq9 with SMTP id q9so9723574paw.3 for ; Wed, 19 Aug 2015 12:42:26 -0700 (PDT) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Instead of executing following functions before and after vdev_init > rte_eth_dev_save and > rte_eth_dev_get_changed_port update following functions to return allocated port_id. > rte_eal_vdev_init > rte_eal_probe_one Thanks to Tetsuya for his valuable inputs. Ravi Kerur (1): Change rte_eal_vdev_init to update port_id drivers/net/enic/enic_ethdev.c | 2 +- lib/librte_eal/common/eal_common_dev.c | 13 ++-- lib/librte_eal/common/eal_common_pci.c | 6 +- lib/librte_eal/common/include/rte_dev.h | 36 +++++++++- lib/librte_eal/common/include/rte_pci.h | 4 +- lib/librte_ether/rte_ethdev.c | 122 +++++++++++++++++--------------- lib/librte_ether/rte_ether_version.map | 8 +++ 7 files changed, 125 insertions(+), 66 deletions(-) -- 1.9.1