[PATCH v7 02/10] net/mlx5: Move HW constant groups from device.h/cq.h to mlx5_ifc.h

Leon Romanovsky leon at kernel.org
Mon Sep 28 12:21:45 PDT 2026


On Mon, Sep 21, 2026 at 07:35:42PM -0300, Jason Gunthorpe wrote:
> Generally the IFC file should contain enums for the fields it
> defines. Move the ones in device.h that are relevant to the VFIO
> selftests over to the IFC file:
> 
>   wqe_ctrl_seg_bits.opcode: all MLX5_OPCODE_* WQE opcodes
>   wqe_ctrl_seg_bits.ce: new MLX5_WQE_CE_* completion/event modes
>   cqe64_bits.opcode: all MLX5_CQE_* CQE opcode values
>   eqe_bits.event_type: enum mlx5_event (all event types)
>   cmd_out_bits.status: all MLX5_CMD_STAT_* status codes
>   query_hca_cap_in_bits.op_mod: enum mlx5_cap_mode
> 
> Tidy MLX5_PCI_CMD_XPORT which is an alias of
> MLX5_CMD_QUEUE_ENTRY_TYPE_PCIE_CMD_IF_TRANSPORT.
> 
> No functional change. All existing users of device.h and cq.h
> continue to see these constants through the include chain.
> 
> Assisted-by: Claude:claude-opus-4.6
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
> ---
>  include/linux/mlx5/cq.h       |  10 ---
>  include/linux/mlx5/device.h   | 114 +------------------------------
>  include/linux/mlx5/mlx5_ifc.h | 123 ++++++++++++++++++++++++++++++++++
>  3 files changed, 124 insertions(+), 123 deletions(-)
> 

Thanks,
Acked-by: Leon Romanovsky <leonro at nvidia.com>



More information about the linux-arm-kernel mailing list