cryptodev: add sym session header size function
[dpdk.git] / lib / librte_cryptodev / rte_cryptodev.h
index 9ed173d..d0eaf00 100644 (file)
@@ -1132,6 +1132,21 @@ rte_cryptodev_asym_session_clear(uint8_t dev_id,
 unsigned int
 rte_cryptodev_sym_get_header_session_size(void);
 
+/**
+ * Get the size of the header session from created session.
+ *
+ * @param sess
+ *   The sym cryptodev session pointer
+ *
+ * @return
+ *   - If sess is not NULL, return the size of the header session including
+ *   the private data size defined within sess.
+ *   - If sess is NULL, return 0.
+ */
+unsigned int __rte_experimental
+rte_cryptodev_sym_get_existing_header_session_size(
+               struct rte_cryptodev_sym_session *sess);
+
 /**
  * Get the size of the asymmetric session header, for all registered drivers.
  *