src/dpdk/drivers/crypto/scheduler/scheduler_pmd_ops.c
static void
scheduler_pmd_sym_session_clear(struct rte_cryptodev *dev,
		struct rte_cryptodev_sym_session *sess)
{
	struct scheduler_ctx *sched_ctx = dev->data->dev_private;
	uint32_t i;

	/* Clear private data of workers */
	for (i = 0; i < sched_ctx->nb_workers; i++) {
		struct scheduler_worker *worker = &sched_ctx->workers[i];

		rte_cryptodev_sym_session_clear(worker->dev_id, sess);
	}
}
/** Clear the memory of session so it doesn't leave key material behind */
Clear the memory of session so it doesn't leave key material behind
Clear the memory of session so it doesn ' t leave key material behind
static void
scheduler_pmd_sym_session_clear(struct rte_cryptodev *dev,
		struct rte_cryptodev_sym_session *sess)
{
	struct scheduler_ctx *sched_ctx = dev->data->dev_private;
	uint32_t i;
	for (i = 0; i < sched_ctx->nb_workers; i++) {
		struct scheduler_worker *worker = &sched_ctx->workers[i];
		rte_cryptodev_sym_session_clear(worker->dev_id, sess);
	}
}
static void scheduler_pmd_sym_session_clear ( struct rte_cryptodev * dev , struct rte_cryptodev_sym_session * sess ) { struct scheduler_ctx * sched_ctx = dev -> data -> dev_private ; uint32_t i ; for ( i = 0 ; i < sched_ctx -> nb_workers ; i ++ ) { struct scheduler_worker * worker = & sched_ctx -> workers [ i ] ; rte_cryptodev_sym_session_clear ( worker -> dev_id , sess ) ; } }
Clear the memory of session so it doesn't leave key material behind
Clear the memory of session so it doesn ' t leave key material behind
/* Clear private data of workers */