RDMA/mlx5: Get ECE options from FW during create QP
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 26 May 2020 11:54:34 +0000 (14:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 27 May 2020 19:07:49 +0000 (16:07 -0300)
commit3e09a427ae7ac347e08dca5ffac64c902860d675
tree9201cb67ac038c201aea432d70ec20539258ec52
parent8094ba0ace7f6cd1e31ea8b151fba3594cadfa9a
RDMA/mlx5: Get ECE options from FW during create QP

Supported ECE options are returned from FW in the create_qp phase and zero
means that field is not valid. Such default value allows us to reuse
reserved field without worries about comp_mask.

Update create QP API to return ECE options.

Link: https://lore.kernel.org/r/20200526115440.205922-3-leon@kernel.org
Reviewed-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/qp.h
drivers/infiniband/hw/mlx5/qpc.c
include/uapi/rdma/mlx5-abi.h