* Release Protection Domain object. * * @param[out] cdev * Pointer to the mlx5 device. * * @return * 0 on success, a negative errno value otherwise. */
| 458 | * 0 on success, a negative errno value otherwise. |
| 459 | */ |
| 460 | int |
| 461 | mlx5_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. |
no outgoing calls
no test coverage detected