net/mlx5: handle Rx CQE compression
[dpdk.git] / drivers / crypto / null / null_crypto_pmd.c
index a4bb152..bdaf13c 100644 (file)
@@ -114,9 +114,9 @@ get_session(struct null_crypto_qp *qp, struct rte_crypto_sym_op *op)
 {
        struct null_crypto_session *sess;
 
-       if (op->type == RTE_CRYPTO_SYM_OP_WITH_SESSION) {
+       if (op->sess_type == RTE_CRYPTO_SYM_OP_WITH_SESSION) {
                if (unlikely(op->session == NULL ||
-                               op->session->type != RTE_CRYPTODEV_NULL_PMD))
+                            op->session->dev_type != RTE_CRYPTODEV_NULL_PMD))
                        return NULL;
 
                sess = (struct null_crypto_session *)op->session->_private;
@@ -215,6 +215,9 @@ cryptodev_null_create(const char *name,
        dev->dequeue_burst = null_crypto_pmd_dequeue_burst;
        dev->enqueue_burst = null_crypto_pmd_enqueue_burst;
 
+       dev->feature_flags = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO |
+                       RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING;
+
        internals = dev->data->dev_private;
 
        internals->max_nb_qpairs = init_params->max_nb_queue_pairs;