ethdev: introduce device removal event
authorGaetan Rivet <gaetan.rivet@6wind.com>
Tue, 18 Apr 2017 12:17:38 +0000 (14:17 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Apr 2017 23:01:35 +0000 (01:01 +0200)
commitb5ece772125f5f979f621b35b09e78ad97f45599
tree0711fb6adb8bbb5c7e7d4d88b9fe8522db74335b
parent923419333f5af7af3124318e4f1c511305a9fc80
ethdev: introduce device removal event

This new API allows reacting to a device removal.
A device removal is the sudden disappearance of a device from its
bus.

PMDs implementing support for this notification guarantee that the removal
of the underlying device does not incur a risk to the application.

In particular, Rx/Tx bursts and all other functions can still be called
(albeit likely returning errors) without triggering a crash, irrespective
of an application handling this event.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Signed-off-by: Elad Persiko <eladpe@mellanox.com>
doc/guides/nics/features/default.ini
doc/guides/prog_guide/env_abstraction_layer.rst
lib/librte_eal/common/include/rte_pci.h
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ethdev_pci.h