[ofa-general] IPv6 RDMA CM PATCHv2 4/8

Aleksey Senin alekseys at voltaire.com
Sun Aug 10 23:17:18 PDT 2008


>From 5a9a0d1d769f0296bf0fca3ad488cd971cf396ab Mon Sep 17 00:00:00 2001
From: Aleksey Senin <alekseys at voltaire.com>
Date: Wed, 6 Aug 2008 15:44:33 +0300
Subject: [IPv6 RDMA CM PATCHv2 4/8]
Added AF_INET6 family case to rdma_bind_addr


Signed-off-by: Aleksey Senin <alekseys at voltaire.com>
---
 drivers/infiniband/core/cma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index d951896..4728265 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -2073,7 +2073,7 @@ int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr *addr)
 	struct rdma_id_private *id_priv;
 	int ret;
 
-	if (addr->sa_family != AF_INET)
+	if (addr->sa_family != AF_INET && addr->sa_family != AF_INET6)
 		return -EAFNOSUPPORT;
 
 	id_priv = container_of(id, struct rdma_id_private, id);
-- 
1.5.6.dirty





More information about the general mailing list