projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bca5119
)
RDMA: Set type of rdma_ah to IB for a SMI sub device
author
Mark Zhang
<markzhang@nvidia.com>
Sun, 16 Jun 2024 16:08:37 +0000
(19:08 +0300)
committer
Leon Romanovsky
<leonro@nvidia.com>
Mon, 1 Jul 2024 12:38:04 +0000
(15:38 +0300)
An address handle created on a SMI port has type IB, as a SMI
port it's used for SMI management through umad.
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Link:
https://lore.kernel.org/r/195be77aae0cce93522269f22f1303d2ccbef605.1718553901.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
include/rdma/ib_verbs.h
patch
|
blob
|
history
diff --git
a/include/rdma/ib_verbs.h
b/include/rdma/ib_verbs.h
index d4128958908f7546e9fdb109394fd78f2a959eb9..e09d4f09b602cebc6fb293c89c0fd6f3c5814b9d 100644
(file)
--- a/
include/rdma/ib_verbs.h
+++ b/
include/rdma/ib_verbs.h
@@
-4662,6
+4662,8
@@
static inline enum rdma_ah_attr_type rdma_ah_find_type(struct ib_device *dev,
return RDMA_AH_ATTR_TYPE_OPA;
return RDMA_AH_ATTR_TYPE_IB;
}
+ if (dev->type == RDMA_DEVICE_TYPE_SMI)
+ return RDMA_AH_ATTR_TYPE_IB;
return RDMA_AH_ATTR_TYPE_UNDEFINED;
}