numam-dpdk/drivers/bus/vdev
Thomas Monjalon c7ad7754f8 devargs: do not replace already inserted device
The devargs of a device can be replaced by a newly allocated one
when trying to probe again the same device (multi-process or
multi-ports scenarios). This is breaking some pointer references.

It can be avoided by copying the new content, freeing the new devargs,
and returning the already inserted pointer.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: Qi Zhang <qi.z.zhang@intel.com>
Tested-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
2018-11-12 00:10:21 +01: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_vdev_version.map
rte_bus_vdev.h remove useless constructor headers 2018-07-12 00:00:35 +02:00
vdev_logs.h
vdev_params.c bus/vdev: add iteration filter on name 2018-10-26 22:14:05 +02:00
vdev_private.h bus/vdev: implement device iteration 2018-10-03 14:22:39 +02:00
vdev.c devargs: do not replace already inserted device 2018-11-12 00:10:21 +01:00