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>
This commit is contained in:
Max Gurtovoy
2019-06-11 18:52:51 +03:00
committed by Jason Gunthorpe
parent c0a6cbb9cb
commit 185eddc457
4 changed files with 9 additions and 7 deletions

View File

@@ -1711,6 +1711,7 @@ struct ib_qp {
struct ib_qp_security *qp_sec;
u8 port;
bool integrity_en;
/*
* Implementation details of the RDMA core, don't use in drivers:
*/