mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 23:20:32 -04:00
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 <roid@nvidia.com> Reviewed-by: Maor Dickman <maord@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
8ca52ada62
commit
38d9a740f6
@@ -354,7 +354,6 @@ mlx5_eswitch_add_send_to_vport_meta_rule(struct mlx5_eswitch *esw, u16 vport_num
|
||||
void mlx5_eswitch_del_send_to_vport_meta_rule(struct mlx5_flow_handle *rule);
|
||||
|
||||
bool mlx5_esw_vport_match_metadata_supported(const struct mlx5_eswitch *esw);
|
||||
int mlx5_esw_offloads_vport_metadata_set(struct mlx5_eswitch *esw, bool enable);
|
||||
u32 mlx5_esw_match_metadata_alloc(struct mlx5_eswitch *esw);
|
||||
void mlx5_esw_match_metadata_free(struct mlx5_eswitch *esw, u32 metadata);
|
||||
|
||||
|
||||
@@ -2939,28 +2939,6 @@ static int esw_offloads_metadata_init(struct mlx5_eswitch *esw)
|
||||
return err;
|
||||
}
|
||||
|
||||
int mlx5_esw_offloads_vport_metadata_set(struct mlx5_eswitch *esw, bool enable)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
down_write(&esw->mode_lock);
|
||||
if (mlx5_esw_is_fdb_created(esw)) {
|
||||
err = -EBUSY;
|
||||
goto done;
|
||||
}
|
||||
if (!mlx5_esw_vport_match_metadata_supported(esw)) {
|
||||
err = -EOPNOTSUPP;
|
||||
goto done;
|
||||
}
|
||||
if (enable)
|
||||
esw->flags |= MLX5_ESWITCH_VPORT_MATCH_METADATA;
|
||||
else
|
||||
esw->flags &= ~MLX5_ESWITCH_VPORT_MATCH_METADATA;
|
||||
done:
|
||||
up_write(&esw->mode_lock);
|
||||
return err;
|
||||
}
|
||||
|
||||
int
|
||||
esw_vport_create_offloads_acl_tables(struct mlx5_eswitch *esw,
|
||||
struct mlx5_vport *vport)
|
||||
|
||||
Reference in New Issue
Block a user