Skip to content

Commit 38d9a74

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5: E-Switch, Remove unused mlx5_esw_offloads_vport_metadata_set()
Remove unused function which also seems a duplicate of esw_port_metadata_set(). Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Maor Dickman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 8ca52ad commit 38d9a74

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ mlx5_eswitch_add_send_to_vport_meta_rule(struct mlx5_eswitch *esw, u16 vport_num
354354
void mlx5_eswitch_del_send_to_vport_meta_rule(struct mlx5_flow_handle *rule);
355355

356356
bool mlx5_esw_vport_match_metadata_supported(const struct mlx5_eswitch *esw);
357-
int mlx5_esw_offloads_vport_metadata_set(struct mlx5_eswitch *esw, bool enable);
358357
u32 mlx5_esw_match_metadata_alloc(struct mlx5_eswitch *esw);
359358
void mlx5_esw_match_metadata_free(struct mlx5_eswitch *esw, u32 metadata);
360359

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2939,28 +2939,6 @@ static int esw_offloads_metadata_init(struct mlx5_eswitch *esw)
29392939
return err;
29402940
}
29412941

2942-
int mlx5_esw_offloads_vport_metadata_set(struct mlx5_eswitch *esw, bool enable)
2943-
{
2944-
int err = 0;
2945-
2946-
down_write(&esw->mode_lock);
2947-
if (mlx5_esw_is_fdb_created(esw)) {
2948-
err = -EBUSY;
2949-
goto done;
2950-
}
2951-
if (!mlx5_esw_vport_match_metadata_supported(esw)) {
2952-
err = -EOPNOTSUPP;
2953-
goto done;
2954-
}
2955-
if (enable)
2956-
esw->flags |= MLX5_ESWITCH_VPORT_MATCH_METADATA;
2957-
else
2958-
esw->flags &= ~MLX5_ESWITCH_VPORT_MATCH_METADATA;
2959-
done:
2960-
up_write(&esw->mode_lock);
2961-
return err;
2962-
}
2963-
29642942
int
29652943
esw_vport_create_offloads_acl_tables(struct mlx5_eswitch *esw,
29662944
struct mlx5_vport *vport)

0 commit comments

Comments
 (0)