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

Function mlx5_compress_dev_remove

dpdk/drivers/compress/mlx5/mlx5_compress.c:887–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

885}
886
887static int
888mlx5_compress_dev_remove(struct mlx5_common_device *cdev)
889{
890 struct mlx5_compress_priv *priv = NULL;
891
892 pthread_mutex_lock(&priv_list_lock);
893 TAILQ_FOREACH(priv, &mlx5_compress_priv_list, next)
894 if (priv->compressdev->device == cdev->dev)
895 break;
896 if (priv)
897 TAILQ_REMOVE(&mlx5_compress_priv_list, priv, next);
898 pthread_mutex_unlock(&priv_list_lock);
899 if (priv) {
900 mlx5_devx_uar_release(&priv->uar);
901 rte_compressdev_pmd_destroy(priv->compressdev);
902 }
903 return 0;
904}
905
906static const struct rte_pci_id mlx5_compress_pci_id_map[] = {
907 {

Callers

nothing calls this directly

Calls 4

pthread_mutex_lockFunction · 0.85
pthread_mutex_unlockFunction · 0.85
mlx5_devx_uar_releaseFunction · 0.85

Tested by

no test coverage detected