From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <michael.qiu@intel.com>
Received: from mga02.intel.com (mga02.intel.com [134.134.136.20])
 by dpdk.org (Postfix) with ESMTP id A9ABF58E8
 for <dev@dpdk.org>; Mon,  9 Feb 2015 09:52:32 +0100 (CET)
Received: from orsmga003.jf.intel.com ([10.7.209.27])
 by orsmga101.jf.intel.com with ESMTP; 09 Feb 2015 00:52:31 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.09,542,1418112000"; d="scan'208";a="524660006"
Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91])
 by orsmga003.jf.intel.com with ESMTP; 09 Feb 2015 00:44:30 -0800
Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by
 PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS)
 id 14.3.195.1; Mon, 9 Feb 2015 16:52:14 +0800
Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.192]) by
 SHSMSX103.ccr.corp.intel.com ([169.254.4.197]) with mapi id 14.03.0195.001;
 Mon, 9 Feb 2015 16:52:13 +0800
From: "Qiu, Michael" <michael.qiu@intel.com>
To: Tetsuya Mukawa <mukawa@igel.co.jp>, "dev@dpdk.org" <dev@dpdk.org>
Thread-Topic: [PATCH v7 03/14] eal/pci,ethdev: Remove assumption that port
 will not be detached
Thread-Index: AQHQRELTTsJeGfklukabRgkyY3dEQg==
Date: Mon, 9 Feb 2015 08:52:14 +0000
Message-ID: <533710CFB86FA344BFBF2D6802E60286CE70C7@SHSMSX101.ccr.corp.intel.com>
References: <1422763322-13742-4-git-send-email-mukawa@igel.co.jp>
 <1423470639-15744-1-git-send-email-mukawa@igel.co.jp>
 <1423470639-15744-4-git-send-email-mukawa@igel.co.jp>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.239.127.40]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [dpdk-dev] [PATCH v7 03/14] eal/pci,
 ethdev: Remove assumption that port will not be detached
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Feb 2015 08:52:33 -0000

On 2/9/2015 4:31 PM, Tetsuya Mukawa wrote:=0A=
> To remove assumption, do like followings.=0A=
=0A=
[...]=0A=
=0A=
>  struct rte_eth_dev_sriov {=0A=
> @@ -1604,6 +1605,10 @@ extern struct rte_eth_dev rte_eth_devices[];=0A=
>   * initialized by the [matching] Ethernet driver during the PCI probing =
phase.=0A=
>   * All devices whose port identifier is in the range=0A=
>   * [0,  rte_eth_dev_count() - 1] can be operated on by network applicati=
ons.=0A=
> + * immediately after invoking rte_eal_init().=0A=
> + * If the application unplugs a port using hotplug function, The enabled=
 port=0A=
> + * numbers may be noncontiguous. In the case, the applications need to m=
anage=0A=
> + * enabled port by themselves.=0A=
>   *=0A=
>   * @return=0A=
>   *   - The total number of usable Ethernet devices.=0A=
=0A=
Acked-by: Michael Qiu <michael.qiu@intel.com>=0A=