[dpdk-dev] [PATCH v2 4/8] eal: fix hotplug add / remove

Thomas Monjalon thomas at monjalon.net
Wed Jul 12 00:18:35 CEST 2017


11/07/2017 01:19, Gaetan Rivet:
> New device should be represented by an rte_devargs prior to being
> plugged.

Why this assumption?
Please start by stated the issue to solve.

> Device parameters are available to rte_devices via their devargs field.
> This field should be set up as soon as possible, as central information
> are stored within, such as the device name which is used to search
> the newly scanned device before plugging it in.
> 
> When a device is introduced using the hotplug API, it is implicitly
> whitelisted. As such, it can conflict with existing bus configuration.
> The new rte_devargs uses the new rte_eal_devargs_insert function that
> supersedes previous rte_devargs, allowing to force the insertion of new
> devices.

I cannot parse this sentence. I probably need to sleep and read it again ;)


More information about the dev mailing list