Enable QUERY_LAG over DEVX
Subsystems (3)
cover Enable QUERY_LAG over DEVX
From: Leon Romanovsky <[email protected]>
Hi,
Enable QUERY_LAG command over DEVX. That command was added to the mlx5_core, but were not used and hence has wrong HW spec layout which is fixed in first patch. The second patch actually makes this command available for DEVX users.
Thanks
Mark Zhang (2):
net/mlx5: Fix mlx5_ifc_query_lag_out_bits
IB/mlx5: Support MLX5_CMD_OP_QUERY_LAG as a DEVX general command
drivers/infiniband/hw/mlx5/devx.c | 1 + include/linux/mlx5/mlx5_ifc.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
--
2.20.1
PATCH 1/2 net/mlx5: Fix mlx5_ifc_query_lag_out_bits
From: Mark Zhang <[email protected]>
Remove the "reserved_at_40" field to match the device specification.
--- include/linux/mlx5/mlx5_ifc.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/mlx5/mlx5_ifc.h +0 -2
@@ -9572,8 +9572,6 @@ struct mlx5_ifc_query_lag_out_bits {u8 syndrome[0x20 ]; -u8 reserved_at_40[0x40 ]; -struct mlx5_ifc_lagc_bits ctx; };
--
2.20.1
PATCH 2/2 IB/mlx5: Support MLX5_CMD_OP_QUERY_LAG as a DEVX general command
In reply to Leon RomanovskyFrom: Mark Zhang <[email protected]>
The "MLX5_CMD_OP_QUERY_LAG" is one of the DEVX general commands, add it.
--- drivers/infiniband/hw/mlx5/devx.c | 1 + 1 file changed, 1 insertion(+)
drivers/infiniband/hw/mlx5/devx.c +1 -0
@@ -930,6 +930,7 @@ static bool devx_is_general_cmd(void *in, struct mlx5_ib_dev *dev)case MLX5_CMD_OP_QUERY_CONG_STATUS :case MLX5_CMD_OP_QUERY_CONG_PARAMS :case MLX5_CMD_OP_QUERY_CONG_STATISTICS : +case MLX5_CMD_OP_QUERY_LAG :return true;default :return false;
Signature · 1 line
2.20.1
Quoted 9 lines · Leon Romanovsky
From: Leon Romanovsky <[email protected]>
Hi,
Enable
QUERY_LAGcommand over DEVX. That command was added to themlx5_core, but were not used and hence has wrong HW spec layout which is fixed in first patch. The second patch actually makes this command available for DEVX users.
Quoted 5 lines
Thanks
Mark Zhang (2):
net/mlx5: Fixmlx5_ifc_query_lag_out_bits
IB/mlx5: SupportMLX5_CMD_OP_QUERY_LAGas a DEVX general command
Both patches are applied to mlx5-next.
Thanks,
Quoted 10 lines · Leon Romanovsky
Quoted 9 lines · Leon Romanovsky
From: Leon Romanovsky <[email protected]>
Hi,
Enable
QUERY_LAGcommand over DEVX. That command was added to themlx5_core, but were not used and hence has wrong HW spec layout which is fixed in first patch. The second patch actually makes this command available for DEVX users.
Quoted 7 lines
Quoted 5 lines
Thanks
Mark Zhang (2):
net/mlx5: Fixmlx5_ifc_query_lag_out_bits
IB/mlx5: SupportMLX5_CMD_OP_QUERY_LAGas a DEVX general commandBoth patches are applied to mlx5-next.
Why the second one?
Jason
Quoted 13 lines · Jason Gunthorpe
Quoted 12 lines · Leon Romanovsky
Quoted 11 lines · Leon Romanovsky
From: Leon Romanovsky <[email protected]>
Hi,
Enable
QUERY_LAGcommand over DEVX. That command was added to themlx5_core, but were not used and hence has wrong HW spec layout which is fixed in first patch. The second patch actually makes this command available for DEVX users.Thanks
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Mark Zhang (2):
net/mlx5: Fixmlx5_ifc_query_lag_out_bits
IB/mlx5: SupportMLX5_CMD_OP_QUERY_LAGas a DEVX general commandBoth patches are applied to mlx5-next.
Why the second one?
It was one-liner patch and I preferred to save work from you.
Thanks
Quoted 2 lines
Jason