Skip to content

Commit 0b916a9

Browse files
dtatuleamstsirkin
authored andcommitted
vdpa/mlx5: Rename function
A followup patch will use this name for something else. Signed-off-by: Dragos Tatulea <[email protected]> Reviewed-by: Cosmin Ratiu <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent e1ba5c9 commit 0b916a9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

drivers/vdpa/mlx5/core/mlx5_vdpa.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ int mlx5_vdpa_create_mkey(struct mlx5_vdpa_dev *mvdev, u32 *mkey, u32 *in,
135135
int mlx5_vdpa_destroy_mkey(struct mlx5_vdpa_dev *mvdev, u32 mkey);
136136
struct mlx5_vdpa_mr *mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev,
137137
struct vhost_iotlb *iotlb);
138-
void mlx5_vdpa_destroy_mr_resources(struct mlx5_vdpa_dev *mvdev);
138+
void mlx5_vdpa_clean_mrs(struct mlx5_vdpa_dev *mvdev);
139139
void mlx5_vdpa_get_mr(struct mlx5_vdpa_dev *mvdev,
140140
struct mlx5_vdpa_mr *mr);
141141
void mlx5_vdpa_put_mr(struct mlx5_vdpa_dev *mvdev,

drivers/vdpa/mlx5/core/mr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ static void mlx5_vdpa_show_mr_leaks(struct mlx5_vdpa_dev *mvdev)
719719

720720
}
721721

722-
void mlx5_vdpa_destroy_mr_resources(struct mlx5_vdpa_dev *mvdev)
722+
void mlx5_vdpa_clean_mrs(struct mlx5_vdpa_dev *mvdev)
723723
{
724724
if (!mvdev->res.valid)
725725
return;

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3223,7 +3223,7 @@ static void mlx5_vdpa_set_status(struct vdpa_device *vdev, u8 status)
32233223
err_driver:
32243224
unregister_link_notifier(ndev);
32253225
err_setup:
3226-
mlx5_vdpa_destroy_mr_resources(&ndev->mvdev);
3226+
mlx5_vdpa_clean_mrs(&ndev->mvdev);
32273227
ndev->mvdev.status |= VIRTIO_CONFIG_S_FAILED;
32283228
err_clear:
32293229
up_write(&ndev->reslock);
@@ -3275,7 +3275,7 @@ static int mlx5_vdpa_compat_reset(struct vdpa_device *vdev, u32 flags)
32753275
}
32763276

32773277
if (flags & VDPA_RESET_F_CLEAN_MAP)
3278-
mlx5_vdpa_destroy_mr_resources(&ndev->mvdev);
3278+
mlx5_vdpa_clean_mrs(&ndev->mvdev);
32793279
ndev->mvdev.status = 0;
32803280
ndev->mvdev.suspended = false;
32813281
ndev->cur_num_vqs = MLX5V_DEFAULT_VQ_COUNT;
@@ -3433,7 +3433,7 @@ static void mlx5_vdpa_free(struct vdpa_device *vdev)
34333433
ndev = to_mlx5_vdpa_ndev(mvdev);
34343434

34353435
free_fixed_resources(ndev);
3436-
mlx5_vdpa_destroy_mr_resources(mvdev);
3436+
mlx5_vdpa_clean_mrs(mvdev);
34373437
if (!is_zero_ether_addr(ndev->config.mac)) {
34383438
pfmdev = pci_get_drvdata(pci_physfn(mvdev->mdev->pdev));
34393439
mlx5_mpfs_del_mac(pfmdev, ndev->config.mac);
@@ -4008,7 +4008,7 @@ static int mlx5_vdpa_dev_add(struct vdpa_mgmt_dev *v_mdev, const char *name,
40084008
err_res2:
40094009
free_fixed_resources(ndev);
40104010
err_mr:
4011-
mlx5_vdpa_destroy_mr_resources(mvdev);
4011+
mlx5_vdpa_clean_mrs(mvdev);
40124012
err_res:
40134013
mlx5_vdpa_free_resources(&ndev->mvdev);
40144014
err_mpfs:

0 commit comments

Comments
 (0)