From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id BF5665955 for ; Tue, 5 Jul 2016 15:38:35 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id z126so76017168wme.0 for ; Tue, 05 Jul 2016 06:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=wGrxgCuqhAixs4mrlre6QoeAcELjLouWPFQcc3eWoRU=; b=pVvGygOdeAcXQ85vwhkpBmMAReSQitor8VObrd2ILCfvFJ1FXl/eINJvf7+XFWuiIz Z20rh4S5kaBtVxOZREV0Rwt/OQmtB6v5wwXCzqPbtd7q9NQaP5TeL9X3T13F6qo6ItqY Tckuc0RezqA8sOntjdLlFAF/zt3IaRNP+dg5mgiAgqUonYayWLwPTpJkXnQn14T+6Rqa lmv5hkVJFNLOa19+NozFho50kpRm/UTGg984Tzqxv3CDHzZ1CEQ/6GsNH3jCH7IAY8w2 qpfmt+pq6zBcFtV3567Tf6++RJaCH8heZ+7/tmyOlPTGVUeMb6AVc02zws2l7VF8HMhn 6wdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=wGrxgCuqhAixs4mrlre6QoeAcELjLouWPFQcc3eWoRU=; b=QXJ2jA7RNY/CNhvqzi2p7+xALVUyFwB37hfp5b3GJDUg2a2/czx6nu/CzIoppAWWF3 zUJM4sT7Y5PaXRZLfdVXSzqhZqyl+qSMZgUJYl8wjxTEXertWA4qyzbyirHH6sSOLJZ9 S9Or3PwK/KxRbB58pLDj/EXFcpPOHcDYFIh3emexRnSet7LdDGmudy/q55iotF+zaMVI VdHN3TwVx2SAgzuQBDaI8NSH/Xjr9RHcDDK/oRgNkYgKhr39iaQU3HTyq1o2vhxT5ONr hulEc/IdW3SscO6DG146mzxk9VLKLqV8et9oVimN9bzEDQIM62+Fbp992j31btC1Hcs6 crZA== X-Gm-Message-State: ALyK8tJh/N1pCvl62/Y9Yd/giGx5zvLiC8tEWKTRLiVYWiESib1zxXXWV0lDtSZXnaSj9cRA X-Received: by 10.28.126.2 with SMTP id z2mr16474288wmc.73.1467725915536; Tue, 05 Jul 2016 06:38:35 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id x83sm4156265wmx.9.2016.07.05.06.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jul 2016 06:38:34 -0700 (PDT) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org, Pablo de Lara , john.mcnamara@intel.com Date: Tue, 05 Jul 2016 15:38:33 +0200 Message-ID: <2208144.gyRL4FDPKl@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <577BB05B.3070203@intel.com> References: <1467643848-14780-1-git-send-email-pablo.de.lara.guarch@intel.com> <577BB05B.3070203@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] doc: announce API change for virtual device initialization 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: Tue, 05 Jul 2016 13:38:35 -0000 2016-07-05 14:04, Ferruh Yigit: > On 7/4/2016 3:50 PM, Pablo de Lara wrote: > > +* The rte_eal_vdev_init function will be changed in 16.11 to return > > + the port/device id of the device created, instead of 0, when it has been > > + initialized successfully, so user can use the returned value straight away > > + to call all the device functions that require that parameter. > > There is another API rte_eth_dev_attach(), which returns port_id, and is > a common wrapper both for pdev and vdev. > So with proper devargs this API calls rte_eal_vdev_init() and returns > port_id (set in argument) without any extra side effect. I think rte_eth_dev_attach() should be removed from ethdev. Hotplugging a device belongs to device management, i.e. EAL.