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:
d27b2f1
)
RDMA/ocrdma: Fail connection for MTU lesser than 512
author
Naga Irrinki
<
[email protected]
>
Tue, 19 May 2015 06:02:39 +0000
(11:32 +0530)
committer
Doug Ledford
<
[email protected]
>
Mon, 18 May 2015 14:25:24 +0000
(10:25 -0400)
HW currently restricts the IB MTU range between 512 and 4096.
Fail connection for MTUs lesser than 512.
Signed-off-by: Naga Irrinki <
[email protected]
>
Signed-off-by: Selvin Xavier <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
index ac7347ad90be5c7f87e08afae0199104a04ad2f8..47615ff33bc6a1fb8c0c703b9f975acc6afe79c2 100644
(file)
--- a/
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
+++ b/
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
@@
-2534,8
+2534,10
@@
static int ocrdma_set_qp_params(struct ocrdma_qp *qp,
cmd->flags |= OCRDMA_QP_PARA_DST_QPN_VALID;
}
if (attr_mask & IB_QP_PATH_MTU) {
- if (attrs->path_mtu < IB_MTU_
256
||
+ if (attrs->path_mtu < IB_MTU_
512
||
attrs->path_mtu > IB_MTU_4096) {
+ pr_err("ocrdma%d: IB MTU %d is not supported\n",
+ dev->id, ib_mtu_enum_to_int(attrs->path_mtu));
status = -EINVAL;
goto pmtu_err;
}