baseband/turbo_sw: fix memory leak in error path
[dpdk.git] / drivers / crypto / aesni_gcm / aesni_gcm_pmd_ops.c
index 2f66c7c..18dbc4c 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2016 Intel Corporation
+ * Copyright(c) 2016-2020 Intel Corporation
  */
 
 #include <string.h>
@@ -248,13 +248,6 @@ qp_setup_cleanup:
        return -1;
 }
 
-/** Return the number of allocated queue pairs */
-static uint32_t
-aesni_gcm_pmd_qp_count(struct rte_cryptodev *dev)
-{
-       return dev->data->nb_queue_pairs;
-}
-
 /** Returns the size of the aesni gcm session structure */
 static unsigned
 aesni_gcm_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)
@@ -329,7 +322,8 @@ struct rte_cryptodev_ops aesni_gcm_pmd_ops = {
 
                .queue_pair_setup       = aesni_gcm_pmd_qp_setup,
                .queue_pair_release     = aesni_gcm_pmd_qp_release,
-               .queue_pair_count       = aesni_gcm_pmd_qp_count,
+
+               .sym_cpu_process        = aesni_gcm_pmd_cpu_crypto_process,
 
                .sym_session_get_size   = aesni_gcm_pmd_sym_session_get_size,
                .sym_session_configure  = aesni_gcm_pmd_sym_session_configure,