DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/2] expose device states for hot-unplug
@ 2018-11-07  9:41 Jeff Guo
  2018-11-07  9:41 ` [dpdk-dev] [PATCH 1/2] eal: expose device states in rte device Jeff Guo
  2018-11-07  9:41 ` [dpdk-dev] [PATCH 2/2] but/pci: fix fd close for hot-unplug Jeff Guo
  0 siblings, 2 replies; 9+ messages in thread
From: Jeff Guo @ 2018-11-07  9:41 UTC (permalink / raw)
  To: ferruh.yigit, konstantin.ananyev, anatoly.burakov, thomas,
	bernard.iremonger
  Cc: dev, jia.guo, helin.zhang, stephen, gaetan.rivet, qi.z.zhang,
	arybchenko, bruce.richardson, matan, shaopeng.he

Since the hotplug API and device event API have make public, so in order
to let applications or driver deal with device directly, it would be
helpful if the states of device could be exposed. Especially for hotplug
process, when device is hot-unplugged, some invalid process should be
skipped by checking the device status. It will avoid some error occur and
unnecessary loading.

So it is proposed that let eal framework take the control of device, it
provide device control APIs and device status checking. Something like
the rte_eth_dev_state for ethernet device could be delete later if it is
no specific usage and could be covered by the common rte device state.

Jeff Guo (2):
  eal: expose device states in rte device
  but/pci: fix fd close for hot-unplug

 drivers/bus/pci/linux/pci_uio.c         |  3 +++
 drivers/bus/pci/pci_common_uio.c        | 16 +++++++++-------
 lib/librte_eal/common/include/rte_dev.h | 13 +++++++++++++
 lib/librte_eal/linuxapp/eal/eal_dev.c   |  1 +
 4 files changed, 26 insertions(+), 7 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-11-09  7:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-07  9:41 [dpdk-dev] [PATCH 0/2] expose device states for hot-unplug Jeff Guo
2018-11-07  9:41 ` [dpdk-dev] [PATCH 1/2] eal: expose device states in rte device Jeff Guo
2018-11-07 19:32   ` Stephen Hemminger
2018-11-09  7:35     ` Jeff Guo
2018-11-07  9:41 ` [dpdk-dev] [PATCH 2/2] but/pci: fix fd close for hot-unplug Jeff Guo
2018-11-07 19:33   ` Stephen Hemminger
2018-11-08  3:10     ` Jeff Guo
2018-11-08 21:55       ` Stephen Hemminger
2018-11-09  3:26         ` Jeff Guo

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).