cryptodev: remove session init internal function
Since now the private session data is initialized after the session pool is created, there is no need to keep this PMD function. 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>
This commit is contained in:
parent
f7db6f821e
commit
4451e41d47
@ -908,13 +908,6 @@ dpaa2_sec_session_get_size(struct rte_cryptodev *dev __rte_unused)
|
||||
return sizeof(dpaa2_sec_session);
|
||||
}
|
||||
|
||||
static void
|
||||
dpaa2_sec_session_initialize(struct rte_mempool *mp __rte_unused,
|
||||
void *sess __rte_unused)
|
||||
{
|
||||
PMD_INIT_FUNC_TRACE();
|
||||
}
|
||||
|
||||
static int
|
||||
dpaa2_sec_cipher_init(struct rte_cryptodev *dev,
|
||||
struct rte_crypto_sym_xform *xform,
|
||||
@ -1821,7 +1814,6 @@ static struct rte_cryptodev_ops crypto_ops = {
|
||||
.queue_pair_stop = dpaa2_sec_queue_pair_stop,
|
||||
.queue_pair_count = dpaa2_sec_queue_pair_count,
|
||||
.session_get_size = dpaa2_sec_session_get_size,
|
||||
.session_initialize = dpaa2_sec_session_initialize,
|
||||
.session_configure = dpaa2_sec_session_configure,
|
||||
.session_clear = dpaa2_sec_session_clear,
|
||||
};
|
||||
|
@ -266,20 +266,6 @@ typedef int (*cryptodev_sym_create_session_pool_t)(
|
||||
typedef unsigned (*cryptodev_sym_get_session_private_size_t)(
|
||||
struct rte_cryptodev *dev);
|
||||
|
||||
/**
|
||||
* Initialize a Crypto session on a device.
|
||||
*
|
||||
* @param dev Crypto device pointer
|
||||
* @param xform Single or chain of crypto xforms
|
||||
* @param priv_sess Pointer to cryptodev's private session structure
|
||||
*
|
||||
* @return
|
||||
* - Returns private session structure on success.
|
||||
* - Returns NULL on failure.
|
||||
*/
|
||||
typedef void (*cryptodev_sym_initialize_session_t)(struct rte_mempool *mempool,
|
||||
void *session_private);
|
||||
|
||||
/**
|
||||
* Configure a Crypto session on a device.
|
||||
*
|
||||
@ -359,8 +345,6 @@ struct rte_cryptodev_ops {
|
||||
|
||||
cryptodev_sym_get_session_private_size_t session_get_size;
|
||||
/**< Return private session. */
|
||||
cryptodev_sym_initialize_session_t session_initialize;
|
||||
/**< Initialization function for private session data */
|
||||
cryptodev_sym_configure_session_t session_configure;
|
||||
/**< Configure a Crypto session. */
|
||||
cryptodev_sym_free_session_t session_clear;
|
||||
|
Loading…
Reference in New Issue
Block a user