cryptodev: do not use AAD in wireless algorithms
[dpdk.git] / drivers / crypto / kasumi / rte_kasumi_pmd_ops.c
index da5854e..d4a02d8 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 kasumi_pmd_capabilities[] = {
                                        .max = 4,
                                        .increment = 0
                                },
-                               .aad_size = {
-                                       .min = 9,
-                                       .max = 9,
+                               .iv_size = {
+                                       .min = 8,
+                                       .max = 8,
                                        .increment = 0
-                               }
+                               },
+                               .aad_size = { 0 }
                        }, }
                }, }
        },
@@ -89,7 +90,8 @@ static const struct rte_cryptodev_capabilities kasumi_pmd_capabilities[] = {
 
 /** Configure device */
 static int
-kasumi_pmd_config(__rte_unused struct rte_cryptodev *dev)
+kasumi_pmd_config(__rte_unused struct rte_cryptodev *dev,
+               __rte_unused struct rte_cryptodev_config *config)
 {
        return 0;
 }
@@ -201,7 +203,7 @@ kasumi_pmd_qp_create_processed_ops_ring(struct kasumi_qp *qp,
 
        r = rte_ring_lookup(qp->name);
        if (r) {
-               if (r->prod.size == ring_size) {
+               if (rte_ring_get_size(r) == ring_size) {
                        KASUMI_LOG_INFO("Reusing existing ring %s"
                                        " for processed packets",
                                         qp->name);