OSDN Git Service

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)
commit569c665150156e44ecbd92af47a6d3fd4e2e4690
tree4b677ff42c5c7ac6708366e75b3e387f290fabaf
parent3fd3c80acc172fcaab2356c15e5e3c05758a9d51
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