Go to file
Jeff Guo fb73e09611 app/testpmd: enable device hotplug monitoring
Use testpmd for example, to show how an application uses device event
APIs to monitor the hotplug events, including both hot removal event
and hot insertion event.

The process is that, testpmd first enable hotplug by below commands,

E.g. ./build/app/testpmd -c 0x3 --n 4 -- -i --hot-plug

then testpmd starts the device event monitor by calling the new API
(rte_dev_event_monitor_start) and register the user's callback by call
the API (rte_dev_event_callback_register), when device being hotplug
insertion or hotplug removal, the device event monitor detects the event
and call user's callbacks, user could process the event in the callback
accordingly.

This patch only shows the event monitoring, device attach/detach would
not be involved here, will add from other hotplug patch set.

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
2018-04-13 12:01:19 +02:00
app app/testpmd: enable device hotplug monitoring 2018-04-13 12:01:19 +02:00
buildtools buildtools: output build failure reason to stderr 2018-02-08 22:25:37 +01:00
config mem: replace memseg with memseg lists 2018-04-11 19:55:39 +02:00
devtools eal: support strlcpy function 2018-04-04 17:33:08 +02:00
doc app/testpmd: enable device hotplug monitoring 2018-04-13 12:01:19 +02:00
drivers vfio: export some internal functions 2018-04-13 01:06:57 +02:00
examples examples/ip_pipeline: skip in FreeBSD build 2018-04-10 14:41:01 +02:00
kernel igb_uio: bind error if PCIe bridge 2018-04-11 23:39:46 +02:00
lib eal/linux: add uevent parse and process 2018-04-13 12:00:31 +02:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk use SPDX tag for RehiveTech copyright files 2018-04-11 01:47:43 +02:00
pkg version: 18.02.0 2018-02-14 19:11:02 +01:00
test eal: add device event handle in interrupt thread 2018-04-13 10:49:26 +02:00
usertools usertools: change to SPDX license identifier 2018-04-11 01:48:12 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore devtools: add tags and cscope index generation 2017-04-30 12:57:04 +02:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS maintainers: call out subtree committers 2018-04-11 00:52:51 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt test: build app with meson as dpdk-test 2018-01-30 21:58:59 +01:00
meson.build move kernel modules directories 2018-03-21 23:04:21 +01:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org