From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by dpdk.org (Postfix) with ESMTP id EC4F55A51 for ; Thu, 6 Aug 2015 19:49:32 +0200 (CEST) Received: by pabyb7 with SMTP id yb7so35616829pab.0 for ; Thu, 06 Aug 2015 10:49:32 -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=hu9ybSYtZ8RV0l3sqWOd90ofKLGdTj1TNWEmIFZFDJg=; b=Axub/q0dpdHlhqH4vhefcDQg07VglQ0WT8ci6pYZ70WC+8QiU13ILnRzZWIgqyAiiZ OFxTGRldGfJOg0ky0xTeNQ1ACsH6p5ZPnQCvR3fZeHtz8UD8aMOC/1Y1bdvQ9DEPZq2+ f7J/sefnfgX01/EWYIuGGLbI7DqkvibVrca3m1hgxbOEEGUKK1mjCaKSYA2V4K/yfBd3 mn3Bez2dbVCUr/KLOEfvgosjiAA+n5htOTJ8LSaoVas4xQQMMSO2R390QhQdKeOKZq1u DWFfI3EuPcZus/bnkpC7TIxSubw5TvhCqPjDo3IGEEiIEn4DnPz7mwv+r07cr2quOxXE K/cA== X-Received: by 10.68.194.170 with SMTP id hx10mr5761862pbc.64.1438883372304; Thu, 06 Aug 2015 10:49:32 -0700 (PDT) Received: from user-PC.hsd1.ca.comcast.net (c-98-234-176-9.hsd1.ca.comcast.net. [98.234.176.9]) by smtp.gmail.com with ESMTPSA id ob15sm3395215pdb.52.2015.08.06.10.49.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Aug 2015 10:49:31 -0700 (PDT) From: Ravi Kerur To: dev@dpdk.org Date: Thu, 6 Aug 2015 10:49:20 -0700 Message-Id: <1438883360-15298-1-git-send-email-rkerur@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH v1] 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: Thu, 06 Aug 2015 17:49:33 -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 +- drivers/net/mpipe/mpipe_tilegx.c | 1 + lib/librte_eal/common/eal_common_dev.c | 14 ++-- 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 | 119 +++++++++++++++++--------------- lib/librte_ether/rte_ether_version.map | 2 + 8 files changed, 118 insertions(+), 66 deletions(-) -- 1.9.1