| 885 | } |
| 886 | |
| 887 | static int |
| 888 | mlx5_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 | |
| 906 | static const struct rte_pci_id mlx5_compress_pci_id_map[] = { |
| 907 | { |
nothing calls this directly
no test coverage detected