summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDanit Goldberg <danitg@mellanox.com>2018-11-30 13:22:04 +0200
committerLeon Romanovsky <leonro@mellanox.com>2018-12-07 08:03:01 +0200
commit3fd3c80acc172fcaab2356c15e5e3c05758a9d51 (patch)
tree3177c6f9e9b0ae6ae4fc2319ffc548a751447e73 /include
parent9d43faac02e3a4a26171f96f4de69fa650d3b6f6 (diff)
downloadlinux-stable-3fd3c80acc172fcaab2356c15e5e3c05758a9d51.tar.gz
linux-stable-3fd3c80acc172fcaab2356c15e5e3c05758a9d51.tar.bz2
linux-stable-3fd3c80acc172fcaab2356c15e5e3c05758a9d51.zip
net/mlx5: Expose packet based credit mode
Packet based credit mode bit determines whether the credit mode is done per message or packet. Expose the QP creation flag and the HCA capability. Signed-off-by: Danit Goldberg <danitg@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index ece1b606c909..91d6e85e3cef 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -1047,7 +1047,8 @@ struct mlx5_ifc_cmd_hca_cap_bits {
u8 vector_calc[0x1];
u8 umr_ptr_rlky[0x1];
u8 imaicl[0x1];
- u8 reserved_at_232[0x4];
+ u8 qp_packet_based[0x1];
+ u8 reserved_at_233[0x3];
u8 qkv[0x1];
u8 pkv[0x1];
u8 set_deth_sqpn[0x1];
@@ -2259,7 +2260,8 @@ struct mlx5_ifc_qpc_bits {
u8 st[0x8];
u8 reserved_at_10[0x3];
u8 pm_state[0x2];
- u8 reserved_at_15[0x3];
+ u8 reserved_at_15[0x1];
+ u8 req_e2e_credit_mode[0x2];
u8 offload_type[0x4];
u8 end_padding_mode[0x2];
u8 reserved_at_1e[0x2];