src/dpdk/drivers/compress/isal/isal_compress_pmd_ops.c
static int
isal_comp_pmd_priv_xform_free(struct rte_compressdev *dev, void *priv_xform)
{
	struct isal_comp_private *internals = dev->data->dev_private;

	/* Zero out the whole structure */
	if (priv_xform) {
		memset(priv_xform, 0, sizeof(struct isal_priv_xform));
		rte_mempool_put(internals->priv_xform_mp, priv_xform);
	}
	return 0;
}
/** Clear memory of the private xform so it doesn't leave key material behind */
Clear memory of the private xform so it doesn't leave key material behind
Clear memory of the private xform so it doesn ' t leave key material behind
static int
isal_comp_pmd_priv_xform_free(struct rte_compressdev *dev, void *priv_xform)
{
	struct isal_comp_private *internals = dev->data->dev_private;
	if (priv_xform) {
		memset(priv_xform, 0, sizeof(struct isal_priv_xform));
		rte_mempool_put(internals->priv_xform_mp, priv_xform);
	}
	return 0;
}
static int isal_comp_pmd_priv_xform_free ( struct rte_compressdev * dev , void * priv_xform ) { struct isal_comp_private * internals = dev -> data -> dev_private ; if ( priv_xform ) { memset ( priv_xform , 0 , sizeof ( struct isal_priv_xform ) ) ; rte_mempool_put ( internals -> priv_xform_mp , priv_xform ) ; } return 0 ; }
Clear memory of the private xform so it doesn't leave key material behind
Clear memory of the private xform so it doesn ' t leave key material behind
/* Zero out the whole structure */