]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Add packet based credit mode support
authorDanit Goldberg <danitg@mellanox.com>
Fri, 30 Nov 2018 11:22:05 +0000 (13:22 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 7 Dec 2018 20:22:09 +0000 (13:22 -0700)
commit7ded88a773475590c1f172328be14fc79bca14a0
tree4b677ff42c5c7ac6708366e75b3e387f290fabaf
parent2b94413850a4ef854b889593390009c0e54f7805
IB/mlx5: Add packet based credit mode support

The device can support two credit modes, message based (default) and
packet based. In order to enable packet based mode, the QP should be
created with special flag that indicates this.

This patch adds support for the new DV QP creation flag that can be used
for RC QPs in order to change the credit mode.

Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h