numam-dpdk/drivers/bus/ifpga
Thomas Monjalon e9d159c3d5 eal: allow probing a device again
In the devargs syntax for device representors, it is possible to add
several devices at once: -w dbdf,representor=[0-3]
It will become a more frequent case when introducing wildcards
and ranges in the new devargs syntax.

If a devargs string is provided for probing, and updated with a bigger
range for a new probing, then we do not want it to fail because
part of this range was already probed previously.
There can be new ports to create from an existing rte_device.

That's why the check for an already probed device
is moved as bus responsibility.
In the case of vdev, a global check is kept in insert_vdev(),
assuming that a vdev will always have only one port.
In the case of ifpga and vmbus, already probed devices are checked.
In the case of NXP buses, the probing is done only once (no hotplug),
though a check is added at bus level for consistency.
In the case of PCI, a driver flag is added to allow PMD probing again.
Only the PMD knows the ports attached to one rte_device.

As another consequence of being able to probe in several steps,
the field rte_device.devargs must not be considered as a full
representation of the rte_device, but only the latest probing args.
Anyway, the field rte_device.devargs is used only for probing.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Tested-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-10-18 01:49:52 +02:00
..
ifpga_bus.c eal: allow probing a device again 2018-10-18 01:49:52 +02:00
ifpga_common.c bus/ifpga: add Intel FPGA bus library 2018-05-11 17:08:32 +02:00
ifpga_common.h bus/ifpga: add Intel FPGA bus library 2018-05-11 17:08:32 +02:00
ifpga_logs.h bus/ifpga: add Intel FPGA bus library 2018-05-11 17:08:32 +02:00
Makefile eal: add bus pointer in device structure 2018-10-11 14:09:24 +02:00
meson.build eal: add bus pointer in device structure 2018-10-11 14:09:24 +02:00
rte_bus_ifpga_version.map bus/ifpga: add Intel FPGA bus library 2018-05-11 17:08:32 +02:00
rte_bus_ifpga.h bus/ifpga: remove useless driver cast 2018-09-27 14:43:47 +02:00