projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ebec9
)
Target/iser: Gracefully reject T10-PI enabled connect request if not supported
author
Sagi Grimberg
<
[email protected]
>
Tue, 20 May 2014 10:28:11 +0000
(13:28 +0300)
committer
Nicholas Bellinger
<
[email protected]
>
Tue, 20 May 2014 18:18:44 +0000
(11:18 -0700)
In case user chose to set T10-PI enable on the target while
the IB device does not support it, gracefully reject the request.
Reported-by: Slava Shwartsman <
[email protected]
>
Signed-off-by: Sagi Grimberg <
[email protected]
>
Cc:
[email protected]
# 3.15+
Signed-off-by: Nicholas Bellinger <
[email protected]
>
drivers/infiniband/ulp/isert/ib_isert.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/isert/ib_isert.c
b/drivers/infiniband/ulp/isert/ib_isert.c
index c68795194e25d182628f3e295894c9c181aa9307..b622783ab198b281b8776433ef05ceaa6f665552 100644
(file)
--- a/
drivers/infiniband/ulp/isert/ib_isert.c
+++ b/
drivers/infiniband/ulp/isert/ib_isert.c
@@
-663,8
+663,9
@@
isert_connect_request(struct rdma_cm_id *cma_id, struct rdma_cm_event *event)
pi_support = np->tpg_np->tpg->tpg_attrib.t10_pi;
if (pi_support && !device->pi_capable) {
- pr_err("Protection information requested but not supported\n");
- ret = -EINVAL;
+ pr_err("Protection information requested but not supported, "
+ "rejecting connect request\n");
+ ret = rdma_reject(cma_id, NULL, 0);
goto out_mr;
}