From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Gaetan Rivet <gaetan.rivet@6wind.com>
Cc: dev@dpdk.org, Jingjing Wu <jingjing.wu@intel.com>
Subject: Re: [dpdk-dev] [PATCH v2 0/3] clarify eth_dev state management
Date: Wed, 05 Apr 2017 22:46:59 +0200 [thread overview]
Message-ID: <6571221.TDpU4kGvc7@xps13> (raw)
In-Reply-To: <cover.1490961533.git.gaetan.rivet@6wind.com>
2017-03-31 14:04, Gaetan Rivet:
> 1. The hotplug API currently available in DPDK introduces the notion of
> device states (DEV_DETACHED, DEV_ATTACHED). These states are implicit
> and internal to the ethdev layer.
>
> 2. Device enumeration and access is done directly, without regard to the
> underlying state of a device. Applications are currently expected to cycle
> through the static rte_eth_devices array. Those using the hotplug API
> (rte_eth_dev_attach(), rte_eth_dev_detach()), are thus expected to deal
> themselves with possible discrepancies internal to the ethdev layer,
> i.e. avoid detached devices if necessary, without the state of the devices
> having been explicitly defined or exposed.
>
> 3. The hotplug API itself is not complete and cannot be used without
> introducing some bugs. Detaching a device will introduce inconsistencies in
> the device count, as explained in the related API.
> No function is exposed in the ethdev layer to permit applications to deal
> with it.
>
> This series addresses these issues so that:
>
> 1. Applications are not expected to manage the states of their devices, those
> should be kept internal to the ethdev layer.
>
> 2. The hotplug API is cleaner, with specific operations from the ethdev layer
> to be used if necessary.
>
> 3. Applications that are not interested in hotplug functionality are not concerned
> and do not require any change.
Applied, thanks
prev parent reply other threads:[~2017-04-05 20:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 15:40 [dpdk-dev] [PATCH 0/4] " Gaetan Rivet
2017-03-03 15:40 ` [dpdk-dev] [PATCH 1/4] ethdev: expose device states Gaetan Rivet
2017-03-03 15:40 ` [dpdk-dev] [PATCH 2/4] ethdev: add device iterator Gaetan Rivet
2017-03-03 15:40 ` [dpdk-dev] [PATCH 3/4] ethdev: count devices consistently Gaetan Rivet
2017-03-30 19:26 ` Thomas Monjalon
2017-03-31 9:13 ` Gaëtan Rivet
2017-03-03 15:40 ` [dpdk-dev] [PATCH 4/4] app/testpmd: use ethdev iterator to list devices Gaetan Rivet
2017-03-31 12:04 ` [dpdk-dev] [PATCH v2 0/3] clarify eth_dev state management Gaetan Rivet
2017-03-31 12:04 ` [dpdk-dev] [PATCH v2 1/3] ethdev: expose device states Gaetan Rivet
2017-03-31 12:04 ` [dpdk-dev] [PATCH v2 2/3] ethdev: add device iterator Gaetan Rivet
2017-04-05 20:42 ` Thomas Monjalon
2017-03-31 12:04 ` [dpdk-dev] [PATCH v2 3/3] app/testpmd: use ethdev iterator to list devices Gaetan Rivet
2017-04-05 20:46 ` Thomas Monjalon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6571221.TDpU4kGvc7@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=gaetan.rivet@6wind.com \
--cc=jingjing.wu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).