Skip to content

Commit 4a19f29

Browse files
dtatuleamstsirkin
authored andcommitted
vdpa/mlx5: Rename init_mvqs
Function is used to set default values, so name it accordingly. Signed-off-by: Dragos Tatulea <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Eugenio Pérez <[email protected]>
1 parent e5bcbd1 commit 4a19f29

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static bool is_index_valid(struct mlx5_vdpa_dev *mvdev, u16 idx)
155155
}
156156

157157
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);
159159
static int setup_vq_resources(struct mlx5_vdpa_net *ndev);
160160
static void teardown_vq_resources(struct mlx5_vdpa_net *ndev);
161161

@@ -2810,7 +2810,7 @@ static void restore_channels_info(struct mlx5_vdpa_net *ndev)
28102810
int i;
28112811

28122812
mlx5_clear_vqs(ndev);
2813-
init_mvqs(ndev);
2813+
mvqs_set_defaults(ndev);
28142814
for (i = 0; i < ndev->mvdev.max_vqs; i++) {
28152815
mvq = &ndev->vqs[i];
28162816
ri = &mvq->ri;
@@ -3023,7 +3023,7 @@ static int mlx5_vdpa_compat_reset(struct vdpa_device *vdev, u32 flags)
30233023
down_write(&ndev->reslock);
30243024
unregister_link_notifier(ndev);
30253025
teardown_vq_resources(ndev);
3026-
init_mvqs(ndev);
3026+
mvqs_set_defaults(ndev);
30273027

30283028
if (flags & VDPA_RESET_F_CLEAN_MAP)
30293029
mlx5_vdpa_destroy_mr_resources(&ndev->mvdev);
@@ -3485,7 +3485,7 @@ static void free_fixed_resources(struct mlx5_vdpa_net *ndev)
34853485
res->valid = false;
34863486
}
34873487

3488-
static void init_mvqs(struct mlx5_vdpa_net *ndev)
3488+
static void mvqs_set_defaults(struct mlx5_vdpa_net *ndev)
34893489
{
34903490
struct mlx5_vdpa_virtqueue *mvq;
34913491
int i;
@@ -3635,7 +3635,7 @@ static int mlx5_vdpa_dev_add(struct vdpa_mgmt_dev *v_mdev, const char *name,
36353635
}
36363636
ndev->cur_num_vqs = MLX5V_DEFAULT_VQ_COUNT;
36373637

3638-
init_mvqs(ndev);
3638+
mvqs_set_defaults(ndev);
36393639
allocate_irqs(ndev);
36403640
init_rwsem(&ndev->reslock);
36413641
config = &ndev->config;

0 commit comments

Comments
 (0)