From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=nCvDrby/ZY5nJDRQGhVCXevFsLPsApF/zRMlf8jBowo=; b=KLPXyFTSC/24wH0U+RDML9Jdi6DKZ67dJddPTIgZNZFgg4/1zKD+/k53toInJ9OfkL PnXzga7oz45HpPjoTXaXa2lF4Fg6RJZLx5StTk6bCbR/tFKp9zkvBY+dWeMI3BR72OHz ZdxIvEgFckj+uthnEijAtD1eF5k6vH4VCAtmiX5sFqU20rih+ukq3sONQ1x3RH3lQXVR ZVB+FoO/K5OZ7thvmrdt/tDxz9JPKxQLt22auW1+wDBQYGArS2BeSCetcqjhNt1PM7zk ReUYDaVQJfHAROGmK4RGi19QTpYLWY8zTMY2HnyJ9nd4d+qr6JAkFi790BdlwTzBxeJs eqbw== X-Received: by 10.68.95.68 with SMTP id di4mr28231457pbb.36.1440013346830; Wed, 19 Aug 2015 12:42:26 -0700 (PDT) Received: from user-PC.hsd1.ca.comcast.net (c-24-4-155-27.hsd1.ca.comcast.net. [24.4.155.27]) by smtp.gmail.com with ESMTPSA id os7sm1778513pbb.23.2015.08.19.12.42.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Aug 2015 12:42:25 -0700 (PDT) From: Ravi Kerur To: dev@dpdk.org Date: Wed, 19 Aug 2015 12:42:21 -0700 Message-Id: <1440013341-29659-1-git-send-email-rkerur@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH v2] Send updated port_id in vdev_init functions 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: Wed, 19 Aug 2015 19:42:27 -0000 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