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:
84b3adc
)
IB/hfi1: Remove filtering of Set(PkeyTable) in HFI SMA
author
Sebastian Sanchez
<
[email protected]
>
Sun, 25 Sep 2016 14:41:11 +0000
(07:41 -0700)
committer
Doug Ledford
<
[email protected]
>
Sun, 2 Oct 2016 12:42:12 +0000
(08:42 -0400)
The FM should have full control to set the pkeys in the
driver pkey table. Remove filtering done by the driver.
Reviewed-by: Ira Weiny <
[email protected]
>
Signed-off-by: Sebastian Sanchez <
[email protected]
>
Signed-off-by: Dennis Dalessandro <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/hfi1/mad.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hfi1/mad.c
b/drivers/infiniband/hw/hfi1/mad.c
index aecfc5b12d140f6ba5d46265a8615b80698b385a..9487c9bb892087d4dd3b994576fa2eaec2db7d0e 100644
(file)
--- a/
drivers/infiniband/hw/hfi1/mad.c
+++ b/
drivers/infiniband/hw/hfi1/mad.c
@@
-1405,12
+1405,6
@@
static int set_pkeys(struct hfi1_devdata *dd, u8 port, u16 *pkeys)
if (key == okey)
continue;
- /*
- * Don't update pkeys[2], if an HFI port without MgmtAllowed
- * by neighbor is a switch.
- */
- if (i == 2 && !ppd->mgmt_allowed && ppd->neighbor_type == 1)
- continue;
/*
* The SM gives us the complete PKey table. We have
* to ensure that we put the PKeys in the matching