cryptodev: remove crypto device type enumeration
[dpdk.git] / drivers / crypto / zuc / rte_zuc_pmd_ops.c
index 2c886d5..abfa0e2 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2016 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2016-2017 Intel Corporation. All rights reserved.
  *
  *   Redistribution and use in source and binary forms, with or without
  *   modification, are permitted provided that the following conditions
@@ -56,11 +56,12 @@ static const struct rte_cryptodev_capabilities zuc_pmd_capabilities[] = {
                                        .max = 4,
                                        .increment = 0
                                },
-                               .aad_size = {
+                               .iv_size = {
                                        .min = 16,
                                        .max = 16,
                                        .increment = 0
-                               }
+                               },
+                               .aad_size = { 0 }
                        }, }
                }, }
        },
@@ -80,7 +81,7 @@ static const struct rte_cryptodev_capabilities zuc_pmd_capabilities[] = {
                                        .min = 16,
                                        .max = 16,
                                        .increment = 0
-                               }
+                               },
                        }, }
                }, }
        },
@@ -89,7 +90,8 @@ static const struct rte_cryptodev_capabilities zuc_pmd_capabilities[] = {
 
 /** Configure device */
 static int
-zuc_pmd_config(__rte_unused struct rte_cryptodev *dev)
+zuc_pmd_config(__rte_unused struct rte_cryptodev *dev,
+               __rte_unused struct rte_cryptodev_config *config)
 {
        return 0;
 }
@@ -155,7 +157,7 @@ zuc_pmd_info_get(struct rte_cryptodev *dev,
        struct zuc_private *internals = dev->data->dev_private;
 
        if (dev_info != NULL) {
-               dev_info->dev_type = dev->dev_type;
+               dev_info->driver_id = dev->driver_id;
                dev_info->max_nb_queue_pairs = internals->max_nb_queue_pairs;
                dev_info->sym.max_nb_sessions = internals->max_nb_sessions;
                dev_info->feature_flags = dev->feature_flags;
@@ -198,7 +200,7 @@ zuc_pmd_qp_create_processed_ops_ring(struct zuc_qp *qp,
 
        r = rte_ring_lookup(qp->name);
        if (r) {
-               if (r->prod.size >= ring_size) {
+               if (rte_ring_get_size(r) >= ring_size) {
                        ZUC_LOG_INFO("Reusing existing ring %s"
                                        " for processed packets",
                                         qp->name);