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

Function mlx5_os_pd_release

dpdk/drivers/common/mlx5/linux/mlx5_common_os.c:460–467  ·  view source on GitHub ↗

* Release Protection Domain object. * * @param[out] cdev * Pointer to the mlx5 device. * * @return * 0 on success, a negative errno value otherwise. */

Source from the content-addressed store, hash-verified

458 * 0 on success, a negative errno value otherwise.
459 */
460int
461mlx5_os_pd_release(struct mlx5_common_device *cdev)
462{
463 if (cdev->config.pd_handle == MLX5_ARG_UNSET)
464 return mlx5_glue->dealloc_pd(cdev->pd);
465 else
466 return mlx5_glue->unimport_pd(cdev->pd);
467}
468
469/**
470 * Allocate Protection Domain object.

Callers 2

mlx5_os_pd_prepareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected