RDMA/core: Add signature attrs element for ib_mr structure
This element will describe the needed characteristics for the signature operation per signature enabled memory region (type IB_MR_TYPE_INTEGRITY). Also add meta_length attribute to ib_sig_attrs structure for saving the mapped metadata length (needed for the new API implementation). Signed-off-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Israel Rukshin <israelr@mellanox.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
2cdfcdd867
commit
7c717d3aee
@@ -1739,7 +1739,7 @@ struct ib_mr {
|
||||
};
|
||||
|
||||
struct ib_dm *dm;
|
||||
|
||||
struct ib_sig_attrs *sig_attrs; /* only for IB_MR_TYPE_INTEGRITY MRs */
|
||||
/*
|
||||
* Implementation details of the RDMA core, don't use in drivers:
|
||||
*/
|
||||
|
@@ -80,11 +80,13 @@ struct ib_sig_domain {
|
||||
* @check_mask: bitmask for signature byte check (8 bytes)
|
||||
* @mem: memory domain layout descriptor.
|
||||
* @wire: wire domain layout descriptor.
|
||||
* @meta_length: metadata length
|
||||
*/
|
||||
struct ib_sig_attrs {
|
||||
u8 check_mask;
|
||||
struct ib_sig_domain mem;
|
||||
struct ib_sig_domain wire;
|
||||
int meta_length;
|
||||
};
|
||||
|
||||
enum ib_sig_err_type {
|
||||
|
Reference in New Issue
Block a user