mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
net/mlx5: Make mlx5_eswitch_load/unload_vport() static
mlx5_eswitch_load/unload_vport()() functions are not used outside of eswitch.c. Make them static. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Shay Drory <shayd@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
b71863876f
commit
329980d05d
@@ -1068,9 +1068,8 @@ static void mlx5_eswitch_clear_ec_vf_vports_info(struct mlx5_eswitch *esw)
|
||||
}
|
||||
}
|
||||
|
||||
/* Public E-Switch API */
|
||||
int mlx5_eswitch_load_vport(struct mlx5_eswitch *esw, u16 vport_num,
|
||||
enum mlx5_eswitch_vport_event enabled_events)
|
||||
static int mlx5_eswitch_load_vport(struct mlx5_eswitch *esw, u16 vport_num,
|
||||
enum mlx5_eswitch_vport_event enabled_events)
|
||||
{
|
||||
int err;
|
||||
|
||||
@@ -1089,7 +1088,7 @@ err_rep:
|
||||
return err;
|
||||
}
|
||||
|
||||
void mlx5_eswitch_unload_vport(struct mlx5_eswitch *esw, u16 vport_num)
|
||||
static void mlx5_eswitch_unload_vport(struct mlx5_eswitch *esw, u16 vport_num)
|
||||
{
|
||||
esw_offloads_unload_rep(esw, vport_num);
|
||||
mlx5_esw_vport_disable(esw, vport_num);
|
||||
|
||||
@@ -730,10 +730,6 @@ void mlx5_esw_set_spec_source_port(struct mlx5_eswitch *esw,
|
||||
int esw_offloads_load_rep(struct mlx5_eswitch *esw, u16 vport_num);
|
||||
void esw_offloads_unload_rep(struct mlx5_eswitch *esw, u16 vport_num);
|
||||
|
||||
int mlx5_eswitch_load_vport(struct mlx5_eswitch *esw, u16 vport_num,
|
||||
enum mlx5_eswitch_vport_event enabled_events);
|
||||
void mlx5_eswitch_unload_vport(struct mlx5_eswitch *esw, u16 vport_num);
|
||||
|
||||
int mlx5_eswitch_load_vf_vports(struct mlx5_eswitch *esw, u16 num_vfs,
|
||||
enum mlx5_eswitch_vport_event enabled_events);
|
||||
void mlx5_eswitch_unload_vf_vports(struct mlx5_eswitch *esw, u16 num_vfs);
|
||||
|
||||
Reference in New Issue
Block a user