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

Function mlx5_flex_parser_ecpri_release

dpdk/drivers/net/mlx5/mlx5.c:1044–1053  ·  view source on GitHub ↗

* Destroy the flex parser node, including the parser itself, input / output * arcs and DW samples. Resources could be reused then. * * @param dev * Pointer to Ethernet device structure. */

Source from the content-addressed store, hash-verified

1042 * Pointer to Ethernet device structure.
1043 */
1044static void
1045mlx5_flex_parser_ecpri_release(struct rte_eth_dev *dev)
1046{
1047 struct mlx5_priv *priv = dev->data->dev_private;
1048 struct mlx5_ecpri_parser_profile *prf = &priv->sh->ecpri_parser;
1049
1050 if (prf->obj)
1051 mlx5_devx_cmd_destroy(prf->obj);
1052 prf->obj = NULL;
1053}
1054
1055/*
1056 * Allocation of a flex parser for srh. Once refcnt is zero, the resources held

Callers 1

mlx5_dev_closeFunction · 0.85

Calls 1

mlx5_devx_cmd_destroyFunction · 0.85

Tested by

no test coverage detected