* 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. */
| 1042 | * Pointer to Ethernet device structure. |
| 1043 | */ |
| 1044 | static void |
| 1045 | mlx5_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 |
no test coverage detected