@@ -489,7 +489,7 @@ static void destroy_user_mr(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mr
489
489
}
490
490
}
491
491
492
- static void _mlx5_vdpa_destroy_dvq_mr (struct mlx5_vdpa_dev * mvdev , unsigned int asid )
492
+ static void _mlx5_vdpa_destroy_mr (struct mlx5_vdpa_dev * mvdev , unsigned int asid )
493
493
{
494
494
struct mlx5_vdpa_mr * mr = & mvdev -> mr ;
495
495
@@ -513,7 +513,7 @@ void mlx5_vdpa_destroy_mr_asid(struct mlx5_vdpa_dev *mvdev, unsigned int asid)
513
513
514
514
mutex_lock (& mr -> mkey_mtx );
515
515
516
- _mlx5_vdpa_destroy_dvq_mr (mvdev , asid );
516
+ _mlx5_vdpa_destroy_mr (mvdev , asid );
517
517
518
518
mutex_unlock (& mr -> mkey_mtx );
519
519
}
@@ -524,9 +524,9 @@ void mlx5_vdpa_destroy_mr(struct mlx5_vdpa_dev *mvdev)
524
524
prune_iotlb (mvdev );
525
525
}
526
526
527
- static int _mlx5_vdpa_create_dvq_mr (struct mlx5_vdpa_dev * mvdev ,
528
- struct vhost_iotlb * iotlb ,
529
- unsigned int asid )
527
+ static int _mlx5_vdpa_create_mr (struct mlx5_vdpa_dev * mvdev ,
528
+ struct vhost_iotlb * iotlb ,
529
+ unsigned int asid )
530
530
{
531
531
struct mlx5_vdpa_mr * mr = & mvdev -> mr ;
532
532
int err ;
@@ -550,12 +550,6 @@ static int _mlx5_vdpa_create_dvq_mr(struct mlx5_vdpa_dev *mvdev,
550
550
return 0 ;
551
551
}
552
552
553
- static int _mlx5_vdpa_create_mr (struct mlx5_vdpa_dev * mvdev ,
554
- struct vhost_iotlb * iotlb , unsigned int asid )
555
- {
556
- return _mlx5_vdpa_create_dvq_mr (mvdev , iotlb , asid );
557
- }
558
-
559
553
int mlx5_vdpa_create_mr (struct mlx5_vdpa_dev * mvdev , struct vhost_iotlb * iotlb ,
560
554
unsigned int asid )
561
555
{
0 commit comments