MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx5_dev_hw_global_release

Function mlx5_dev_hw_global_release

dpdk/drivers/common/mlx5/mlx5_common.c:668–679  ·  view source on GitHub ↗

* Uninitialize all HW global of device context. * * @param cdev * Pointer to mlx5 device structure. * * @return * 0 on success, a negative errno value otherwise and rte_errno is set. */

Source from the content-addressed store, hash-verified

666 * 0 on success, a negative errno value otherwise and rte_errno is set.
667 */
668static void
669mlx5_dev_hw_global_release(struct mlx5_common_device *cdev)
670{
671 if (cdev->pd != NULL) {
672 claim_zero(mlx5_os_pd_release(cdev));
673 cdev->pd = NULL;
674 }
675 if (cdev->ctx != NULL) {
676 claim_zero(mlx5_glue->close_device(cdev->ctx));
677 cdev->ctx = NULL;
678 }
679}
680
681/**
682 * Initialize all HW global of device context.

Callers 3

mlx5_common_dev_releaseFunction · 0.85
mlx5_common_dev_createFunction · 0.85

Calls 1

mlx5_os_pd_releaseFunction · 0.50

Tested by

no test coverage detected