mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
net/mlx5: HWS, remove implementation of unused FW commands
Remove functions that manage alias objects - they are not used. Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Reviewed-by: Itamar Gozlan <igozlan@nvidia.com> Reviewed-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20250102181415.1477316-3-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
020ca0abae
commit
0647f27a5f
@@ -889,73 +889,6 @@ int mlx5hws_cmd_sq_modify_rdy(struct mlx5_core_dev *mdev, u32 sqn)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int mlx5hws_cmd_allow_other_vhca_access(struct mlx5_core_dev *mdev,
|
||||
struct mlx5hws_cmd_allow_other_vhca_access_attr *attr)
|
||||
{
|
||||
u32 out[MLX5_ST_SZ_DW(allow_other_vhca_access_out)] = {0};
|
||||
u32 in[MLX5_ST_SZ_DW(allow_other_vhca_access_in)] = {0};
|
||||
void *key;
|
||||
int ret;
|
||||
|
||||
MLX5_SET(allow_other_vhca_access_in,
|
||||
in, opcode, MLX5_CMD_OP_ALLOW_OTHER_VHCA_ACCESS);
|
||||
MLX5_SET(allow_other_vhca_access_in,
|
||||
in, object_type_to_be_accessed, attr->obj_type);
|
||||
MLX5_SET(allow_other_vhca_access_in,
|
||||
in, object_id_to_be_accessed, attr->obj_id);
|
||||
|
||||
key = MLX5_ADDR_OF(allow_other_vhca_access_in, in, access_key);
|
||||
memcpy(key, attr->access_key, sizeof(attr->access_key));
|
||||
|
||||
ret = mlx5_cmd_exec(mdev, in, sizeof(in), out, sizeof(out));
|
||||
if (ret)
|
||||
mlx5_core_err(mdev, "Failed to execute ALLOW_OTHER_VHCA_ACCESS command\n");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int mlx5hws_cmd_alias_obj_create(struct mlx5_core_dev *mdev,
|
||||
struct mlx5hws_cmd_alias_obj_create_attr *alias_attr,
|
||||
u32 *obj_id)
|
||||
{
|
||||
u32 out[MLX5_ST_SZ_DW(general_obj_out_cmd_hdr)] = {0};
|
||||
u32 in[MLX5_ST_SZ_DW(create_alias_obj_in)] = {0};
|
||||
void *attr;
|
||||
void *key;
|
||||
int ret;
|
||||
|
||||
attr = MLX5_ADDR_OF(create_alias_obj_in, in, hdr);
|
||||
MLX5_SET(general_obj_in_cmd_hdr,
|
||||
attr, opcode, MLX5_CMD_OP_CREATE_GENERAL_OBJECT);
|
||||
MLX5_SET(general_obj_in_cmd_hdr,
|
||||
attr, obj_type, alias_attr->obj_type);
|
||||
MLX5_SET(general_obj_in_cmd_hdr, attr, op_param.create.alias_object, 1);
|
||||
|
||||
attr = MLX5_ADDR_OF(create_alias_obj_in, in, alias_ctx);
|
||||
MLX5_SET(alias_context, attr, vhca_id_to_be_accessed, alias_attr->vhca_id);
|
||||
MLX5_SET(alias_context, attr, object_id_to_be_accessed, alias_attr->obj_id);
|
||||
|
||||
key = MLX5_ADDR_OF(alias_context, attr, access_key);
|
||||
memcpy(key, alias_attr->access_key, sizeof(alias_attr->access_key));
|
||||
|
||||
ret = mlx5_cmd_exec(mdev, in, sizeof(in), out, sizeof(out));
|
||||
if (ret) {
|
||||
mlx5_core_err(mdev, "Failed to create ALIAS OBJ\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
*obj_id = MLX5_GET(general_obj_out_cmd_hdr, out, obj_id);
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int mlx5hws_cmd_alias_obj_destroy(struct mlx5_core_dev *mdev,
|
||||
u16 obj_type,
|
||||
u32 obj_id)
|
||||
{
|
||||
return hws_cmd_general_obj_destroy(mdev, obj_type, obj_id);
|
||||
}
|
||||
|
||||
int mlx5hws_cmd_generate_wqe(struct mlx5_core_dev *mdev,
|
||||
struct mlx5hws_cmd_generate_wqe_attr *attr,
|
||||
struct mlx5_cqe64 *ret_cqe)
|
||||
|
||||
@@ -334,14 +334,6 @@ mlx5hws_cmd_forward_tbl_create(struct mlx5_core_dev *mdev,
|
||||
void mlx5hws_cmd_forward_tbl_destroy(struct mlx5_core_dev *mdev,
|
||||
struct mlx5hws_cmd_forward_tbl *tbl);
|
||||
|
||||
int mlx5hws_cmd_alias_obj_create(struct mlx5_core_dev *mdev,
|
||||
struct mlx5hws_cmd_alias_obj_create_attr *alias_attr,
|
||||
u32 *obj_id);
|
||||
|
||||
int mlx5hws_cmd_alias_obj_destroy(struct mlx5_core_dev *mdev,
|
||||
u16 obj_type,
|
||||
u32 obj_id);
|
||||
|
||||
int mlx5hws_cmd_sq_modify_rdy(struct mlx5_core_dev *mdev, u32 sqn);
|
||||
|
||||
int mlx5hws_cmd_query_caps(struct mlx5_core_dev *mdev,
|
||||
@@ -352,9 +344,6 @@ void mlx5hws_cmd_set_attr_connect_miss_tbl(struct mlx5hws_context *ctx,
|
||||
enum mlx5hws_table_type type,
|
||||
struct mlx5hws_cmd_ft_modify_attr *ft_attr);
|
||||
|
||||
int mlx5hws_cmd_allow_other_vhca_access(struct mlx5_core_dev *mdev,
|
||||
struct mlx5hws_cmd_allow_other_vhca_access_attr *attr);
|
||||
|
||||
int mlx5hws_cmd_query_gvmi(struct mlx5_core_dev *mdev, bool other_function,
|
||||
u16 vport_number, u16 *gvmi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user