From: Fan Zhang Date: Thu, 10 Jan 2019 14:50:22 +0000 (+0000) Subject: cryptodev: add opaque data field to symmetric session X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b1d978fc7b33e2581429e8cbcbc96478e904a608;p=dpdk.git cryptodev: add opaque data field to symmetric session This patch adds a opaque data field to cryptodev symmetric session. Signed-off-by: Fan Zhang Acked-by: Fiona Trahe Acked-by: Akhil Goyal --- diff --git a/doc/guides/prog_guide/img/cryptodev_sym_sess.svg b/doc/guides/prog_guide/img/cryptodev_sym_sess.svg index 7d7052c38e..9b522458c8 100644 --- a/doc/guides/prog_guide/img/cryptodev_sym_sess.svg +++ b/doc/guides/prog_guide/img/cryptodev_sym_sess.svg @@ -315,6 +315,13 @@ class="st2" y="129.23468" x="-204.95244">uint16_t refcnt; +uint64_t opaque_data; nb_drivers = pool_priv->nb_drivers; sess->user_data_sz = pool_priv->user_data_sz; + sess->opaque_data = 0; /* Clear device session pointer. * Include the flag indicating presence of user data diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 0a3e7239a1..a0bbcf932c 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -953,6 +953,8 @@ rte_cryptodev_enqueue_burst(uint8_t dev_id, uint16_t qp_id, * has a fixed algo, key, op-type, digest_len etc. */ struct rte_cryptodev_sym_session { + uint64_t opaque_data; + /**< Can be used for external metadata */ uint16_t nb_drivers; /**< number of elements in sess_data array */ uint16_t user_data_sz;