]> www.infradead.org Git - users/dwmw2/linux.git/commit
RDMA/mlx5: Set ECE options during modify QP
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 26 May 2020 11:54:39 +0000 (14:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 27 May 2020 19:07:49 +0000 (16:07 -0300)
commit5f62a521ff20e0b47a8d33421334bd245d6714ff
treeb4455d9fb9d86b417cf9059d03998150050475b3
parentf18e26af6aba778b888044859d9c69bb9bbc7bc1
RDMA/mlx5: Set ECE options during modify QP

The most common way to set ECE option will be during modify QP command in
INIT2RTR, RTR2RTS and RTS2RTS stages, so update mlx5 to support it.

The new bit in the comp_mask is needed to mark that kernel supports ECE
and can receive data instead of "reserved" field in the struct
mlx5_ib_modify_qp.

Link: https://lore.kernel.org/r/20200526115440.205922-8-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/main.c
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/qp.h
drivers/infiniband/hw/mlx5/qpc.c
include/uapi/rdma/mlx5-abi.h