mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
IB/core: Convert OPA AH to IB for Extended LIDs only
When deciding to convert an OPA AH to IB we were incorrectly
including the IB multicast range. At this layer, all Extended
LIDs will be larger than IB_LID_PERMISSIVE. Change comparison
accordingly.
Fixes: d541e45500 ("IB/core: Convert ah_attr from OPA to IB when copying to user")
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Don Hiatt <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
e8d5aff650
commit
19b57c6c44
1 changed files with 1 additions and 2 deletions
|
|
@ -69,8 +69,7 @@ void ib_copy_ah_attr_to_user(struct ib_device *device,
|
|||
memset(&dst->grh.reserved, 0, sizeof(dst->grh.reserved));
|
||||
|
||||
if ((ah_attr->type == RDMA_AH_ATTR_TYPE_OPA) &&
|
||||
(rdma_ah_get_dlid(ah_attr) >=
|
||||
be16_to_cpu(IB_MULTICAST_LID_BASE)) &&
|
||||
(rdma_ah_get_dlid(ah_attr) > be16_to_cpu(IB_LID_PERMISSIVE)) &&
|
||||
(!rdma_ah_conv_opa_to_ib(device, &conv_ah, ah_attr)))
|
||||
src = &conv_ah;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue