]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Introduce driver QP type
authorMoni Shoua <monis@mellanox.com>
Tue, 2 Jan 2018 14:19:30 +0000 (16:19 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Jan 2018 18:38:50 +0000 (11:38 -0700)
commit81fd12d37540760d3910e0081b2113dbcf1c6c57
tree09dba0fdf9e612fdb4d157b227199782ba426d16
parent08a09bde3cb6ab29f977b7e971308e0597bd543e
IB/core: Introduce driver QP type

Vendors can implement type of QPs that are not described in the
InfiniBand specification. To still be able to use the IB/core layer
services (e.g. user object management) without tainting this layer with
driver proprietary logic, a new QP type is added - IB_QPT_DRIVER. This
will be a general QP type that the core layer doesn't know about its true nature.
When a command like create_qp() is passed to a hardware driver the extra
data that is required is taken from the driver channel.
Downstream patches from this series will use that QP type in the mlx5
driver.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/ib_verbs.h