Skip to content

Commit 9eca8bb

Browse files
Jiri PirkoSaeed Mahameed
authored andcommitted
net/mlx5: Give esw_offloads_load/unload_rep() "mlx5_" prefix
As esw_offloads_load/unload_rep() are used outside eswitch.c it is nicer for them to have "mlx5_" prefix. Add it. Signed-off-by: Jiri Pirko <[email protected]> Reviewed-by: Shay Drory <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 329980d commit 9eca8bb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

drivers/net/ethernet/mellanox/mlx5/core/eswitch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ static int mlx5_eswitch_load_vport(struct mlx5_eswitch *esw, u16 vport_num,
10771077
if (err)
10781078
return err;
10791079

1080-
err = esw_offloads_load_rep(esw, vport_num);
1080+
err = mlx5_esw_offloads_load_rep(esw, vport_num);
10811081
if (err)
10821082
goto err_rep;
10831083

@@ -1090,7 +1090,7 @@ static int mlx5_eswitch_load_vport(struct mlx5_eswitch *esw, u16 vport_num,
10901090

10911091
static void mlx5_eswitch_unload_vport(struct mlx5_eswitch *esw, u16 vport_num)
10921092
{
1093-
esw_offloads_unload_rep(esw, vport_num);
1093+
mlx5_esw_offloads_unload_rep(esw, vport_num);
10941094
mlx5_esw_vport_disable(esw, vport_num);
10951095
}
10961096

drivers/net/ethernet/mellanox/mlx5/core/eswitch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,8 @@ void mlx5_esw_set_spec_source_port(struct mlx5_eswitch *esw,
727727
u16 vport,
728728
struct mlx5_flow_spec *spec);
729729

730-
int esw_offloads_load_rep(struct mlx5_eswitch *esw, u16 vport_num);
731-
void esw_offloads_unload_rep(struct mlx5_eswitch *esw, u16 vport_num);
730+
int mlx5_esw_offloads_load_rep(struct mlx5_eswitch *esw, u16 vport_num);
731+
void mlx5_esw_offloads_unload_rep(struct mlx5_eswitch *esw, u16 vport_num);
732732

733733
int mlx5_eswitch_load_vf_vports(struct mlx5_eswitch *esw, u16 num_vfs,
734734
enum mlx5_eswitch_vport_event enabled_events);

drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,7 @@ static void mlx5_esw_offloads_rep_unload(struct mlx5_eswitch *esw, u16 vport_num
24252425
__esw_offloads_unload_rep(esw, rep, rep_type);
24262426
}
24272427

2428-
int esw_offloads_load_rep(struct mlx5_eswitch *esw, u16 vport_num)
2428+
int mlx5_esw_offloads_load_rep(struct mlx5_eswitch *esw, u16 vport_num)
24292429
{
24302430
int err;
24312431

@@ -2449,7 +2449,7 @@ int esw_offloads_load_rep(struct mlx5_eswitch *esw, u16 vport_num)
24492449
return err;
24502450
}
24512451

2452-
void esw_offloads_unload_rep(struct mlx5_eswitch *esw, u16 vport_num)
2452+
void mlx5_esw_offloads_unload_rep(struct mlx5_eswitch *esw, u16 vport_num)
24532453
{
24542454
if (esw->mode != MLX5_ESWITCH_OFFLOADS)
24552455
return;
@@ -3361,7 +3361,7 @@ int esw_offloads_enable(struct mlx5_eswitch *esw)
33613361
vport->info.link_state = MLX5_VPORT_ADMIN_STATE_DOWN;
33623362

33633363
/* Uplink vport rep must load first. */
3364-
err = esw_offloads_load_rep(esw, MLX5_VPORT_UPLINK);
3364+
err = mlx5_esw_offloads_load_rep(esw, MLX5_VPORT_UPLINK);
33653365
if (err)
33663366
goto err_uplink;
33673367

@@ -3372,7 +3372,7 @@ int esw_offloads_enable(struct mlx5_eswitch *esw)
33723372
return 0;
33733373

33743374
err_vports:
3375-
esw_offloads_unload_rep(esw, MLX5_VPORT_UPLINK);
3375+
mlx5_esw_offloads_unload_rep(esw, MLX5_VPORT_UPLINK);
33763376
err_uplink:
33773377
esw_offloads_steering_cleanup(esw);
33783378
err_steering_init:
@@ -3410,7 +3410,7 @@ static int esw_offloads_stop(struct mlx5_eswitch *esw,
34103410
void esw_offloads_disable(struct mlx5_eswitch *esw)
34113411
{
34123412
mlx5_eswitch_disable_pf_vf_vports(esw);
3413-
esw_offloads_unload_rep(esw, MLX5_VPORT_UPLINK);
3413+
mlx5_esw_offloads_unload_rep(esw, MLX5_VPORT_UPLINK);
34143414
esw_set_passing_vport_metadata(esw, false);
34153415
esw_offloads_steering_cleanup(esw);
34163416
mapping_destroy(esw->offloads.reg_c0_obj_pool);

0 commit comments

Comments
 (0)