@@ -155,7 +155,7 @@ static bool is_index_valid(struct mlx5_vdpa_dev *mvdev, u16 idx)
155
155
}
156
156
157
157
static void free_fixed_resources (struct mlx5_vdpa_net * ndev );
158
- static void init_mvqs (struct mlx5_vdpa_net * ndev );
158
+ static void mvqs_set_defaults (struct mlx5_vdpa_net * ndev );
159
159
static int setup_vq_resources (struct mlx5_vdpa_net * ndev );
160
160
static void teardown_vq_resources (struct mlx5_vdpa_net * ndev );
161
161
@@ -2810,7 +2810,7 @@ static void restore_channels_info(struct mlx5_vdpa_net *ndev)
2810
2810
int i ;
2811
2811
2812
2812
mlx5_clear_vqs (ndev );
2813
- init_mvqs (ndev );
2813
+ mvqs_set_defaults (ndev );
2814
2814
for (i = 0 ; i < ndev -> mvdev .max_vqs ; i ++ ) {
2815
2815
mvq = & ndev -> vqs [i ];
2816
2816
ri = & mvq -> ri ;
@@ -3023,7 +3023,7 @@ static int mlx5_vdpa_compat_reset(struct vdpa_device *vdev, u32 flags)
3023
3023
down_write (& ndev -> reslock );
3024
3024
unregister_link_notifier (ndev );
3025
3025
teardown_vq_resources (ndev );
3026
- init_mvqs (ndev );
3026
+ mvqs_set_defaults (ndev );
3027
3027
3028
3028
if (flags & VDPA_RESET_F_CLEAN_MAP )
3029
3029
mlx5_vdpa_destroy_mr_resources (& ndev -> mvdev );
@@ -3485,7 +3485,7 @@ static void free_fixed_resources(struct mlx5_vdpa_net *ndev)
3485
3485
res -> valid = false;
3486
3486
}
3487
3487
3488
- static void init_mvqs (struct mlx5_vdpa_net * ndev )
3488
+ static void mvqs_set_defaults (struct mlx5_vdpa_net * ndev )
3489
3489
{
3490
3490
struct mlx5_vdpa_virtqueue * mvq ;
3491
3491
int i ;
@@ -3635,7 +3635,7 @@ static int mlx5_vdpa_dev_add(struct vdpa_mgmt_dev *v_mdev, const char *name,
3635
3635
}
3636
3636
ndev -> cur_num_vqs = MLX5V_DEFAULT_VQ_COUNT ;
3637
3637
3638
- init_mvqs (ndev );
3638
+ mvqs_set_defaults (ndev );
3639
3639
allocate_irqs (ndev );
3640
3640
init_rwsem (& ndev -> reslock );
3641
3641
config = & ndev -> config ;
0 commit comments