[dpdk-dev] [PATCH V22 0/4] add device event monitor framework
Thomas Monjalon
thomas at monjalon.net
Fri Apr 13 12:03:38 CEST 2018
13/04/2018 10:30, Jeff Guo:
> About hot plug in dpdk, We already have proactive way to add/remove devices
> through APIs (rte_eal_hotplug_add/remove), and also have fail-safe driver
> to offload the fail-safe work from the app user. But there are still lack
> of a general mechanism to monitor hotplug event for all driver, now the
> hotplug interrupt event is diversity between each device and driver, such
> as mlx4, pci driver and others.
>
> Use the hot removal event for example, pci drivers not all exposure the
> remove interrupt, so in order to make user to easy use the hot plug
> feature for pci driver, something must be done to detect the remove event
> at the kernel level and offer a new line of interrupt to the user land.
>
> Base on the uevent of kobject mechanism in kernel, we could use it to
> benefit for monitoring the hot plug status of the device which not only
> uio/vfio of pci bus devices, but also other, such as cpu/usb/pci-express bus devices.
[...]
> Jeff Guo (4):
> eal: add device event handle in interrupt thread
> eal: add device event monitor framework
> eal/linux: uevent parse and process
> app/testpmd: enable device hotplug monitoring
Applied, thanks
More information about the dev
mailing list