mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-01 08:20:44 -05:00
RDMA/core: introduce check masks for T10-PI offload
T10-PI offload capability is currently supported in iSER protocol only, and the definition of the HCA protection information checks are missing from the core layer. Add those definition to avoid code duplication in other drivers (such iSER target and NVMeoF). Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: Max Gurtovoy <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
This commit is contained in:
parent
0e12af84cd
commit
ca24da008f
1 changed files with 13 additions and 0 deletions
|
|
@ -860,6 +860,19 @@ enum ib_sig_err_type {
|
|||
IB_SIG_BAD_APPTAG,
|
||||
};
|
||||
|
||||
/**
|
||||
* Signature check masks (8 bytes in total) according to the T10-PI standard:
|
||||
* -------- -------- ------------
|
||||
* | GUARD | APPTAG | REFTAG |
|
||||
* | 2B | 2B | 4B |
|
||||
* -------- -------- ------------
|
||||
*/
|
||||
enum {
|
||||
IB_SIG_CHECK_GUARD = 0xc0,
|
||||
IB_SIG_CHECK_APPTAG = 0x30,
|
||||
IB_SIG_CHECK_REFTAG = 0x0f,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct ib_sig_err - signature error descriptor
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue