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

Function mlx5_proc_priv_uninit

dpdk/drivers/net/mlx5/mlx5.c:2200–2211  ·  view source on GitHub ↗

* Un-initialize process private data structure. * * @param dev * Pointer to Ethernet device structure. */

Source from the content-addressed store, hash-verified

2198 * Pointer to Ethernet device structure.
2199 */
2200void
2201mlx5_proc_priv_uninit(struct rte_eth_dev *dev)
2202{
2203 struct mlx5_proc_priv *ppriv = dev->process_private;
2204
2205 if (!ppriv)
2206 return;
2207 if (ppriv->hca_bar)
2208 mlx5_txpp_unmap_hca_bar(dev);
2209 mlx5_free(dev->process_private);
2210 dev->process_private = NULL;
2211}
2212
2213/**
2214 * DPDK callback to close the device.

Callers 3

mlx5_proc_priv_initFunction · 0.85
mlx5_dev_closeFunction · 0.85

Calls 2

mlx5_freeFunction · 0.85
mlx5_txpp_unmap_hca_barFunction · 0.50

Tested by

no test coverage detected