src/dpdk/drivers/crypto/mvsam/rte_mrvl_pmd.c
static int
cryptodev_mrvl_crypto_uninit(struct rte_vdev_device *vdev)
{
	struct rte_cryptodev *cryptodev;
	const char *name = rte_vdev_device_name(vdev);

	if (name == NULL)
		return -EINVAL;

	MRVL_LOG(INFO, "Closing Marvell crypto device %s on numa socket %u.",
		 name, rte_socket_id());

	sam_deinit();
	rte_mvep_deinit(MVEP_MOD_T_SAM);

	cryptodev = rte_cryptodev_pmd_get_named_dev(name);
	if (cryptodev == NULL)
		return -ENODEV;

	return rte_cryptodev_pmd_destroy(cryptodev);
}
/**
 * Uninitialize the crypto device
 *
 * @param vdev Pointer to device structure.
 * @returns 0 in case of success, negative value otherwise.
 */
Uninitialize the crypto device
@param vdev Pointer to device structure.
@returns 0 in case of success, negative value otherwise.
Uninitialize the crypto device @param vdev Pointer to device structure . @returns 0 in case of success negative value otherwise .
static int
cryptodev_mrvl_crypto_uninit(struct rte_vdev_device *vdev)
{
	struct rte_cryptodev *cryptodev;
	const char *name = rte_vdev_device_name(vdev);
	if (name == NULL)
		return -EINVAL;
	MRVL_LOG(INFO, "Closing Marvell crypto device %s on numa socket %u.",
		 name, rte_socket_id());
	sam_deinit();
	rte_mvep_deinit(MVEP_MOD_T_SAM);
	cryptodev = rte_cryptodev_pmd_get_named_dev(name);
	if (cryptodev == NULL)
		return -ENODEV;
	return rte_cryptodev_pmd_destroy(cryptodev);
}
static int cryptodev_mrvl_crypto_uninit ( struct rte_vdev_device * vdev ) { struct rte_cryptodev * cryptodev ; const char * name = rte_vdev_device_name ( vdev ) ; if ( name == NULL ) return - EINVAL ; MRVL_LOG ( INFO , " " , name , rte_socket_id ( ) ) ; sam_deinit ( ) ; rte_mvep_deinit ( MVEP_MOD_T_SAM ) ; cryptodev = rte_cryptodev_pmd_get_named_dev ( name ) ; if ( cryptodev == NULL ) return - ENODEV ; return rte_cryptodev_pmd_destroy ( cryptodev ) ; }
Uninitialize the crypto device
 @param vdev Pointer to device structure.
Uninitialize the crypto device @param vdev Pointer to device structure .