From: Slawomir Mrozowicz Date: Wed, 5 Jul 2017 05:26:14 +0000 (+0100) Subject: cryptodev: remove device id from session X-Git-Tag: spdx-start~2652 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=78543080471100eb66dcead1f65214c7809eec58;p=dpdk.git cryptodev: remove device id from session Device id is necessary in the crypto session, as it was only used for the functions that attach/detach a session to a queue pair. Since the session is not going to be attached to a device anymore, this is field is no longer necessary. Signed-off-by: Slawomir Mrozowicz Signed-off-by: Pablo de Lara Acked-by: Declan Doherty Acked-by: Akhil Goyal --- diff --git a/doc/guides/rel_notes/release_17_08.rst b/doc/guides/rel_notes/release_17_08.rst index 136a9b0760..2bd2b26535 100644 --- a/doc/guides/rel_notes/release_17_08.rst +++ b/doc/guides/rel_notes/release_17_08.rst @@ -108,6 +108,13 @@ New Features * Removed the field ``opaque_data``. * Pointer to ``rte_crypto_sym_op`` has been replaced with a zero length array. +* **Reorganized the crypto symmetric session structure.** + + The crypto symmetric session structure (``rte_cryptodev_sym_session``) has + been reorganized as follows: + + * ``dev_id`` field has been removed. + * **Updated cryptodev library.** * Added AEAD algorithm specific functions and structures, so it is not @@ -242,6 +249,11 @@ ABI Changes Some fields have been modified in the ``rte_crypto_op`` and ``rte_crypto_sym_op`` structures, as described in the `New Features`_ section. +* **Reorganized the crypto symmetric session structure.** + + Some fields have been modified in the ``rte_cryptodev_sym_session`` + structure, as described in the `New Features`_ section. + * **Reorganized the ``rte_crypto_sym_cipher_xform`` structure.** * Added cipher IV length and offset parameters. @@ -254,8 +266,7 @@ ABI Changes * Removed AAD length. * Replaced ``dev_type`` enumeration with uint8_t ``driver_id`` in - ``rte_cryptodev_info``, ``rte_cryptodev`` and ``rte_cryptodev_sym_session`` - structures. + ``rte_cryptodev_info`` and ``rte_cryptodev`` structures. * Removed ``session_mp`` from ``rte_cryptodev_config``. diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 078e26bb59..cb773c7151 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -1087,7 +1087,6 @@ rte_cryptodev_sym_session_init(struct rte_mempool *mp, { memset(sess, 0, mp->elt_size); - sess->dev_id = dev->data->dev_id; sess->driver_id = dev->driver_id; sess->mp = mp; diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 0ade05ec71..d1e7c2fc7a 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -884,8 +884,6 @@ rte_cryptodev_enqueue_burst(uint8_t dev_id, uint16_t qp_id, struct rte_cryptodev_sym_session { RTE_STD_C11 struct { - uint8_t dev_id; - /**< Device Id */ uint8_t driver_id; /** Crypto driver identifier session created on */ struct rte_mempool *mp;