]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add ability to read and write ECE options
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 9 Mar 2020 14:44:25 +0000 (16:44 +0200)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 27 May 2020 11:08:28 +0000 (14:08 +0300)
commit16ab330fa5cc0a5aa737fa097caa91d76f171aaa
tree96d3a2ee91170a37541339f0fab89c5b0578429f
parent9e63937d947f3d982f60a5fcdd91cb987cde6ec4
net/mlx5: Add ability to read and write ECE options

The end result of RDMA-CM ECE handshake is ECE options, which is
needed to be used while configuring data QPs. Such options can
come in any QP state, so add in/out fields to set and query
ECE options.

OUT fields:
* create_qp() - default ECE options for that type of QP.
* modify_qp() - enabled ECE options after QP state transition.

IN fields:
* create_qp() - create QP with this ECE option.
* modify_qp() - requested options. For unconnected QPs, the FW
will return an error if ECE is already configured with any options
that not equal to previously set.

Reviewed-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
include/linux/mlx5/mlx5_ifc.h