.probe_device is called from EAL, that already evaluated if the device
is blocklisted.
Fixes: be29c42523d8 ("bus: implement probe in EAL")
Signed-off-by: David Marchand <[email protected]>
---
drivers/bus/auxiliary/auxiliary_common.c | 7 -------
drivers/bus/fslmc/fslmc_bus.c | 7 -------
drivers/bus/pci/pci_common.c | 7 -------
drivers/bus/vmbus/vmbus_common.c | 7 -------
4 files changed, 28 deletions(-)
diff --git a/drivers/bus/auxiliary/auxiliary_common.c
b/drivers/bus/auxiliary/auxiliary_common.c
index 80b90a4961..016d124f0b 100644
--- a/drivers/bus/auxiliary/auxiliary_common.c
+++ b/drivers/bus/auxiliary/auxiliary_common.c
@@ -84,13 +84,6 @@ auxiliary_probe_device(struct rte_driver *drv, struct
rte_device *dev)
if (!auxiliary_dev_exists(dev->name))
return -ENOENT;
- /* No initialization when marked as blocked, return without error. */
- if (aux_dev->device.devargs != NULL &&
- aux_dev->device.devargs->policy == RTE_DEV_BLOCKED) {
- AUXILIARY_LOG(INFO, "Device is blocked, not initializing");
- return -1;
- }
-
if (aux_dev->device.numa_node < 0 && rte_socket_count() > 1)
AUXILIARY_LOG(INFO, "Device %s is not NUMA-aware",
aux_dev->name);
diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index 1a0eca30b4..3626b12316 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -513,13 +513,6 @@ fslmc_bus_probe_device(struct rte_driver *driver, struct
rte_device *rte_dev)
struct rte_dpaa2_driver *drv = RTE_BUS_DRIVER(driver, *drv);
int ret = 0;
- if (dev->device.devargs &&
- dev->device.devargs->policy == RTE_DEV_BLOCKED) {
- DPAA2_BUS_DEBUG("%s Blocked, skipping",
- dev->device.name);
- return 0;
- }
-
/* FIXME: probe_device should allocate intr_handle */
ret = drv->probe(drv, dev);
if (ret != 0) {
diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c
index 0f635e1537..dc8db80d3b 100644
--- a/drivers/bus/pci/pci_common.c
+++ b/drivers/bus/pci/pci_common.c
@@ -193,13 +193,6 @@ pci_probe_device(struct rte_driver *drv, struct rte_device
*dev)
loc->domain, loc->bus, loc->devid, loc->function,
pci_dev->device.numa_node);
- /* no initialization when marked as blocked, return without error */
- if (pci_dev->device.devargs != NULL &&
- pci_dev->device.devargs->policy == RTE_DEV_BLOCKED) {
- PCI_LOG(INFO, " Device is blocked, not initializing");
- return 1;
- }
-
if (pci_dev->device.numa_node < 0 && rte_socket_count() > 1)
PCI_LOG(INFO, "Device %s is not NUMA-aware", pci_dev->name);
diff --git a/drivers/bus/vmbus/vmbus_common.c b/drivers/bus/vmbus/vmbus_common.c
index cd6e851e4c..4c64856abb 100644
--- a/drivers/bus/vmbus/vmbus_common.c
+++ b/drivers/bus/vmbus/vmbus_common.c
@@ -93,13 +93,6 @@ vmbus_probe_device(struct rte_driver *drv, struct rte_device
*dev)
VMBUS_LOG(INFO, "VMBUS device %s on NUMA socket %i",
guid, vmbus_dev->device.numa_node);
- /* no initialization when marked as blocked, return without error */
- if (vmbus_dev->device.devargs != NULL &&
- vmbus_dev->device.devargs->policy == RTE_DEV_BLOCKED) {
- VMBUS_LOG(INFO, " Device is blocked, not initializing");
- return 1;
- }
-
/* allocate interrupt handle instance */
vmbus_dev->intr_handle =
rte_intr_instance_alloc(RTE_INTR_INSTANCE_F_PRIVATE);
--
2.54.0