]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Validate integrity handover device cap
authorMax Gurtovoy <maxg@mellanox.com>
Tue, 11 Jun 2019 15:52:51 +0000 (18:52 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 24 Jun 2019 14:49:27 +0000 (11:49 -0300)
commitb51086c6f6d720831b7fae121cc28d56d6154b2b
tree0414a0970ad51cc3d4192559e16da825f8b09a51
parent8047d69768d4c88c9914e350a291f4c8bfde649a
RDMA/core: Validate integrity handover device cap

Protect the case that a ULP tries to allocate a QP with signature
enabled flag while the LLD doesn't support this feature.
While we're here, also move integrity_en attribute from mlx5_qp to
ib_qp as a preparation for adding new integrity API to the rw-API
(that is part of ib_core module).

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
include/rdma/ib_verbs.h