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

Function mlx5_devx_cmd_destroy

dpdk/drivers/common/mlx5/mlx5_devx_cmds.c:470–480  ·  view source on GitHub ↗

* Destroy any object allocated by a Devx API. * * @param[in] obj * Pointer to a general object. * * @return * 0 on success, a negative value otherwise. */

Source from the content-addressed store, hash-verified

468 * 0 on success, a negative value otherwise.
469 */
470int
471mlx5_devx_cmd_destroy(struct mlx5_devx_obj *obj)
472{
473 int ret;
474
475 if (!obj)
476 return 0;
477 ret = mlx5_glue->devx_obj_destroy(obj->obj);
478 mlx5_free(obj);
479 return ret;
480}
481
482/**
483 * Query NIC vport context.

Calls 1

mlx5_freeFunction · 0.85

Tested by

no test coverage detected