OSDN Git Service

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)
commit6b646a7e4af69814dd1a3340fca0f02d4977420d
tree96d3a2ee91170a37541339f0fab89c5b0578429f
parentecf814e0e19b5616048391eac359a50c1e9d5174
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