forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c
....@@ -124,8 +124,7 @@
124124 const u8 *mac, bool vlan, u16 vlan_id, u8 port_num)
125125 {
126126 #define MLX5_SET_RA(p, f, v) MLX5_SET(roce_addr_layout, p, f, v)
127
- u32 in[MLX5_ST_SZ_DW(set_roce_address_in)] = {0};
128
- u32 out[MLX5_ST_SZ_DW(set_roce_address_out)] = {0};
127
+ u32 in[MLX5_ST_SZ_DW(set_roce_address_in)] = {};
129128 void *in_addr = MLX5_ADDR_OF(set_roce_address_in, in, roce_address);
130129 char *addr_l3_addr = MLX5_ADDR_OF(roce_addr_layout, in_addr,
131130 source_l3_address);
....@@ -153,6 +152,6 @@
153152
154153 MLX5_SET(set_roce_address_in, in, roce_address_index, index);
155154 MLX5_SET(set_roce_address_in, in, opcode, MLX5_CMD_OP_SET_ROCE_ADDRESS);
156
- return mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out));
155
+ return mlx5_cmd_exec_in(dev, set_roce_address, in);
157156 }
158157 EXPORT_SYMBOL(mlx5_core_roce_gid_set);