common/mlx5: fix default devargs initialization
[dpdk.git] / drivers / crypto / nitrox / nitrox_sym.c
index fe3ee6e..cb5393d 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <stdbool.h>
 
-#include <rte_cryptodev_pmd.h>
+#include <cryptodev_pmd.h>
 #include <rte_crypto.h>
 
 #include "nitrox_sym.h"
@@ -550,6 +550,9 @@ nitrox_sym_dev_sess_configure(struct rte_cryptodev *cdev,
        ctx = mp_obj;
        ctx->nitrox_chain = get_crypto_chain_order(xform);
        switch (ctx->nitrox_chain) {
+       case NITROX_CHAIN_CIPHER_ONLY:
+               cipher_xform = &xform->cipher;
+               break;
        case NITROX_CHAIN_CIPHER_AUTH:
                cipher_xform = &xform->cipher;
                auth_xform = &xform->next->auth;
@@ -780,6 +783,9 @@ nitrox_sym_pmd_create(struct nitrox_device *ndev)
        ndev->sym_dev = cdev->data->dev_private;
        ndev->sym_dev->cdev = cdev;
        ndev->sym_dev->ndev = ndev;
+
+       rte_cryptodev_pmd_probing_finish(cdev);
+
        NITROX_LOG(DEBUG, "Created cryptodev '%s', dev_id %d, drv_id %d\n",
                   cdev->data->name, cdev->data->dev_id, nitrox_sym_drv_id);
        return 0;