]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eventdev/rte_eventdev.c
eventdev: add implicit release disable capability
[dpdk.git] / lib / librte_eventdev / rte_eventdev.c
index 5e2c4b1a0e1f0a3ad3583c52faeda27a7be9dfbf..08a8fa6a703d09965f59e6b8f2dfeb011cf6d053 100644 (file)
@@ -658,6 +658,15 @@ rte_event_port_setup(uint8_t dev_id, uint8_t port_id,
                return -EINVAL;
        }
 
+       if (port_conf && port_conf->disable_implicit_release &&
+           !(dev->data->event_dev_cap &
+             RTE_EVENT_DEV_CAP_IMPLICIT_RELEASE_DISABLE)) {
+               RTE_EDEV_LOG_ERR(
+                  "dev%d port%d Implicit release disable not supported",
+                       dev_id, port_id);
+               return -EINVAL;
+       }
+
        if (dev->data->dev_started) {
                RTE_EDEV_LOG_ERR(
                    "device %d must be stopped to allow port setup", dev_id);