]> git.droids-corp.org - dpdk.git/commitdiff
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 9f14390d28f4c20daad15e9f5d1a8a0db7bbae02..14ca3418295929bc248826f9fa1da75d4a782e4d 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 d577f64824884766e75543ff181cf657dcba790a..1d3ad8ffd659a82d5359a58f6df769f6e0725ed7 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 01f060fff31102479a08a7d35e2607b49aaa4202..17568967bec6863e8a41ad8005691ca8d9188794 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 4a8c6a13a57428601366c88f2f1d6da09a0ab8df..eb80eeafe1c15d33482e3ddf859f121aa662eb89 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 739dc64c823b78e98174bb47c59a4e5e73d3f348..5007e9a7bf3cbd55d45cf704ce6e450d0fabb75c 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 c9e17e7cb1376c675d3d258ef271609d5c376066..af0efb3302a4d4f96e2bb6b531719b51a6b4c77f 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 9b720733223a2803ae1b4eafe9edb8c1dca36186..e99b47afbe119af382ab9f12f9f84c8d8915cf19 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;
 }