drivers/event: invoke probing finish function
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Mon, 18 Oct 2021 23:36:00 +0000 (05:06 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 21 Oct 2021 08:14:50 +0000 (10:14 +0200)
Invoke event_dev_probing_finish() function at the end of probing,
this function sets the function pointers in the fp_ops flat array.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/event/dpaa/dpaa_eventdev.c
drivers/event/dpaa2/dpaa2_eventdev.c
drivers/event/dsw/dsw_evdev.c
drivers/event/octeontx/ssovf_evdev.c
drivers/event/opdl/opdl_evdev.c
drivers/event/skeleton/skeleton_eventdev.c
drivers/event/sw/sw_evdev.c

index 9f14390..14ca341 100644 (file)
@@ -1026,10 +1026,12 @@ dpaa_event_dev_create(const char *name, const char *params)
 
        /* For secondary processes, the primary has done all the work */
        if (rte_eal_process_type() != RTE_PROC_PRIMARY)
-               return 0;
+               goto done;
 
        priv->max_event_queues = DPAA_EVENT_MAX_QUEUES;
 
+done:
+       event_dev_probing_finish(eventdev);
        return 0;
 fail:
        return -EFAULT;
index d577f64..1d3ad8f 100644 (file)
@@ -1110,7 +1110,7 @@ dpaa2_eventdev_create(const char *name)
 
        /* For secondary processes, the primary has done all the work */
        if (rte_eal_process_type() != RTE_PROC_PRIMARY)
-               return 0;
+               goto done;
 
        priv = eventdev->data->dev_private;
        priv->max_event_queues = 0;
@@ -1139,6 +1139,8 @@ dpaa2_eventdev_create(const char *name)
 
        RTE_LOG(INFO, PMD, "%s eventdev created\n", name);
 
+done:
+       event_dev_probing_finish(eventdev);
        return 0;
 fail:
        return -EFAULT;
index 01f060f..1756896 100644 (file)
@@ -448,6 +448,7 @@ dsw_probe(struct rte_vdev_device *vdev)
        dsw = dev->data->dev_private;
        dsw->data = dev->data;
 
+       event_dev_probing_finish(dev);
        return 0;
 }
 
index 4a8c6a1..eb80eea 100644 (file)
@@ -933,6 +933,7 @@ ssovf_vdev_probe(struct rte_vdev_device *vdev)
                        edev->max_event_ports);
 
        ssovf_init_once = 1;
+       event_dev_probing_finish(eventdev);
        return 0;
 
 error:
index 739dc64..5007e9a 100644 (file)
@@ -720,7 +720,7 @@ opdl_probe(struct rte_vdev_device *vdev)
        dev->dequeue_burst = opdl_event_dequeue_burst;
 
        if (rte_eal_process_type() != RTE_PROC_PRIMARY)
-               return 0;
+               goto done;
 
        opdl = dev->data->dev_private;
        opdl->data = dev->data;
@@ -733,6 +733,8 @@ opdl_probe(struct rte_vdev_device *vdev)
        if (do_test == 1)
                test_result =  opdl_selftest();
 
+done:
+       event_dev_probing_finish(dev);
        return test_result;
 }
 
index c9e17e7..af0efb3 100644 (file)
@@ -443,6 +443,7 @@ skeleton_eventdev_create(const char *name, int socket_id)
        eventdev->dequeue       = skeleton_eventdev_dequeue;
        eventdev->dequeue_burst = skeleton_eventdev_dequeue_burst;
 
+       event_dev_probing_finish(eventdev);
        return 0;
 fail:
        return -EFAULT;
index 9b72073..e99b47a 100644 (file)
@@ -1124,6 +1124,8 @@ sw_probe(struct rte_vdev_device *vdev)
        dev->data->service_inited = 1;
        dev->data->service_id = sw->service_id;
 
+       event_dev_probing_finish(dev);
+
        return 0;
 }