mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
IB/isert: fix T10-pi check mask setting
A copy/paste bug (probably) caused setting of an app_tag check mask in case where a ref_tag check was needed. Fixes:38a2d0d429("IB/isert: convert to the generic RDMA READ/WRITE API") Fixes:9e961ae73c("IB/isert: Support T10-PI protected transactions") Cc: [email protected] 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
0f45e69d62
commit
0e12af84cd
1 changed files with 1 additions and 1 deletions
|
|
@ -2116,7 +2116,7 @@ isert_set_sig_attrs(struct se_cmd *se_cmd, struct ib_sig_attrs *sig_attrs)
|
|||
|
||||
sig_attrs->check_mask =
|
||||
(se_cmd->prot_checks & TARGET_DIF_CHECK_GUARD ? 0xc0 : 0) |
|
||||
(se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x30 : 0) |
|
||||
(se_cmd->prot_checks & TARGET_DIF_CHECK_APPTAG ? 0x30 : 0) |
|
||||
(se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x0f : 0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue