]> git.droids-corp.org - dpdk.git/commitdiff
cryptodev: remove unused cryptodev session structure
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 5 Jul 2017 05:26:09 +0000 (06:26 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 6 Jul 2017 20:34:54 +0000 (22:34 +0200)
Cryptodev session structure was a duplication of the
cryptodev symmetric structure.
It was used by some PMDs that should use the symmetric
structure instead.

Since this structure was internal, there is no deprecation
notice required.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/kasumi/rte_kasumi_pmd.c
drivers/crypto/null/null_crypto_pmd.c
drivers/crypto/snow3g/rte_snow3g_pmd.c
drivers/crypto/zuc/rte_zuc_pmd.c
examples/ipsec-secgw/ipsec.h
lib/librte_cryptodev/rte_cryptodev_pmd.h

index 6c8da1777f08f59f50dee4715ccb63092892c446..37ca2ccdc91f5dde9875b6afc3cfbb6d5f52c27c 100644 (file)
@@ -172,7 +172,7 @@ kasumi_get_session(struct kasumi_qp *qp, struct rte_crypto_op *op)
 
                sess = (struct kasumi_session *)op->sym->session->_private;
        } else  {
-               struct rte_cryptodev_session *c_sess = NULL;
+               struct rte_cryptodev_sym_session *c_sess = NULL;
 
                if (rte_mempool_get(qp->sess_mp, (void **)&c_sess))
                        return NULL;
index 84280ae9631028ba050147d433861ea8ee7cfa65..da6259206d46898769a5647071437b4080a32110 100644 (file)
@@ -105,7 +105,7 @@ get_session(struct null_crypto_qp *qp, struct rte_crypto_op *op)
 
                sess = (struct null_crypto_session *)sym_op->session->_private;
        } else  {
-               struct rte_cryptodev_session *c_sess = NULL;
+               struct rte_cryptodev_sym_session *c_sess = NULL;
 
                if (rte_mempool_get(qp->sess_mp, (void **)&c_sess))
                        return NULL;
index 18b6f86167af21f82d4726ed736a88b63515b0ce..0c65b2d96da5f4d12df247c464f0d66fa788a6c8 100644 (file)
@@ -172,7 +172,7 @@ snow3g_get_session(struct snow3g_qp *qp, struct rte_crypto_op *op)
 
                sess = (struct snow3g_session *)op->sym->session->_private;
        } else  {
-               struct rte_cryptodev_session *c_sess = NULL;
+               struct rte_cryptodev_sym_session *c_sess = NULL;
 
                if (rte_mempool_get(qp->sess_mp, (void **)&c_sess))
                        return NULL;
index 7d2e37ca4c994ecf9e0c45c4c7a3cbe110351f39..82710d3cc8786050020f3ef4f53302e4dc8370f6 100644 (file)
@@ -171,7 +171,7 @@ zuc_get_session(struct zuc_qp *qp, struct rte_crypto_op *op)
 
                sess = (struct zuc_session *)op->sym->session->_private;
        } else  {
-               struct rte_cryptodev_session *c_sess = NULL;
+               struct rte_cryptodev_sym_session *c_sess = NULL;
 
                if (rte_mempool_get(qp->sess_mp, (void **)&c_sess))
                        return NULL;
index 0ef68ed1c8ca83560b830a68e354faae8ada058b..ccd0aa86160b78ea83b5c5f026638f6917d45bc1 100644 (file)
@@ -75,7 +75,6 @@
 
 struct rte_crypto_xform;
 struct ipsec_xform;
-struct rte_cryptodev_session;
 struct rte_mbuf;
 
 struct ipsec_sa;
index f6aa84dd5e93270cd197be15db01ed75ed561b2c..5911b838b7c95fd0ea751e8eaf6e88fe32ad6aa7 100644 (file)
@@ -56,17 +56,6 @@ extern "C" {
 #include "rte_crypto.h"
 #include "rte_cryptodev.h"
 
-struct rte_cryptodev_session {
-       RTE_STD_C11
-       struct {
-               uint8_t dev_id;
-               uint8_t driver_id;
-               struct rte_mempool *mp;
-       } __rte_aligned(8);
-
-       __extension__ char _private[0];
-};
-
 /** Global structure used for maintaining state of allocated crypto devices */
 struct rte_cryptodev_global {
        struct rte_cryptodev *devs;     /**< Device information array */