Skip to contentSkip to conversation

IB/isert: fix T10-pi check mask setting

PATCH New Max Gurtovoy 1 participant 1 message May 30, 2018 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/4 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 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API")
Fixes 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions")
---
 drivers/infiniband/ulp/isert/ib_isert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/ulp/isert/ib_isert.c +1 -1
index fff40b0..d8b6bde 100644
@@ -2108,7 +2108,7 @@
 
 	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;
 }
Signature · 1 line
1.8.3.1