[dpdk-dev] [PATCH v7 13/15] eal: add hotplug add/remove functions
Jan Blunck
jblunck at infradead.org
Fri Jun 30 17:12:13 CEST 2017
On Fri, Jun 30, 2017 at 2:54 PM, Thomas Monjalon <thomas at monjalon.net> wrote:
> It seems a function is missing in this patch:
>
> 29/06/2017 20:22, Jan Blunck:
>> +int rte_eal_hotplug_add(const char *busname, const char *devname,
>> + const char *devargs)
>> +{
>> + struct rte_bus *bus;
>> + struct rte_device *dev;
>> + int ret;
>> +
>> + bus = rte_bus_find_by_name(busname);
>> + if (!bus) {
>> + RTE_LOG(ERR, EAL, "Cannot find bus (%s)\n", busname);
>> + return -ENOENT;
>> + }
>> +
>> + if (!bus->plug) {
>> + RTE_LOG(ERR, EAL, "Function plug not supported by bus (%s)\n",
>> + bus->name);
>> + return -ENOTSUP;
>> + }
>> +
>> + ret = bus->scan();
>> + if (ret)
>> + return ret;
>> +
>> + dev = bus->find_device(NULL, cmp_detached_dev_name, devname);
>
> fatal error: use of undeclared identifier 'cmp_detached_dev_name'
>
Sorry. I'll make them bisectable with the next drop today.
More information about the dev
mailing list