crypto/cnxk: prevent out-of-bound access in capabilities
[dpdk.git] / drivers / event / octeontx / ssovf_evdev.c
index 4a8c6a1..9e14e35 100644 (file)
@@ -5,7 +5,7 @@
 #include <inttypes.h>
 
 #include <rte_common.h>
-#include <rte_cryptodev.h>
+#include <cryptodev_pmd.h>
 #include <rte_debug.h>
 #include <rte_dev.h>
 #include <rte_eal.h>
@@ -155,7 +155,8 @@ ssovf_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *dev_info)
                                        RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK |
                                        RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT |
                                        RTE_EVENT_DEV_CAP_NONSEQ_MODE |
-                                       RTE_EVENT_DEV_CAP_CARRY_FLOW_ID;
+                                       RTE_EVENT_DEV_CAP_CARRY_FLOW_ID |
+                                       RTE_EVENT_DEV_CAP_MAINTENANCE_FREE;
 
 }
 
@@ -721,7 +722,7 @@ ssovf_parsekv(const char *key __rte_unused, const char *value, void *opaque)
 
 static int
 ssovf_timvf_caps_get(const struct rte_eventdev *dev, uint64_t flags,
-               uint32_t *caps, const struct rte_event_timer_adapter_ops **ops)
+                    uint32_t *caps, const struct event_timer_adapter_ops **ops)
 {
        return timvf_timer_adapter_caps_get(dev, flags, caps, ops,
                        timvf_enable_stats);
@@ -933,6 +934,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: