Enhance ucma_addrlen to return the correct address size
for AF_IB.
Signed-off-by: Sean Hefty <[email protected]>
---
src/cma.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/cma.c b/src/cma.c
index c57d166..e85ef2d 100644
--- a/src/cma.c
+++ b/src/cma.c
@@ -470,6 +470,8 @@ static int ucma_addrlen(struct sockaddr *addr)
return sizeof(struct sockaddr_in);
case PF_INET6:
return sizeof(struct sockaddr_in6);
+ case PF_IB:
+ return sizeof(struct sockaddr_ib);
default:
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html