Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IB/mlx5: Report mlx5 enhanced multi packet WQE capability

Expose enhanced multi packet WQE capability to user space through
query_device by uhw.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>

authored by

Bodong Wang and committed by
Doug Ledford
050da902 795b609c

+7 -1
+5
drivers/infiniband/hw/mlx5/main.c
··· 805 805 if (MLX5_CAP_ETH(mdev, multi_pkt_send_wqe)) 806 806 resp.mlx5_ib_support_multi_pkt_send_wqes = 807 807 MLX5_IB_ALLOW_MPW; 808 + 809 + if (MLX5_CAP_ETH(mdev, enhanced_multi_pkt_send_wqe)) 810 + resp.mlx5_ib_support_multi_pkt_send_wqes |= 811 + MLX5_IB_SUPPORT_EMPW; 812 + 808 813 resp.response_length += 809 814 sizeof(resp.mlx5_ib_support_multi_pkt_send_wqes); 810 815 }
+1 -1
include/linux/mlx5/mlx5_ifc.h
··· 604 604 u8 rss_ind_tbl_cap[0x4]; 605 605 u8 reg_umr_sq[0x1]; 606 606 u8 scatter_fcs[0x1]; 607 - u8 reserved_at_1a[0x1]; 607 + u8 enhanced_multi_pkt_send_wqe[0x1]; 608 608 u8 tunnel_lso_const_out_ip_id[0x1]; 609 609 u8 reserved_at_1c[0x2]; 610 610 u8 tunnel_statless_gre[0x1];
+1
include/uapi/rdma/mlx5-abi.h
··· 171 171 enum mlx5_ib_mpw_caps { 172 172 MPW_RESERVED = 1 << 0, 173 173 MLX5_IB_ALLOW_MPW = 1 << 1, 174 + MLX5_IB_SUPPORT_EMPW = 1 << 2, 174 175 }; 175 176 176 177 enum mlx5_ib_sw_parsing_offloads {