[ofa-general] [RDMA CM IPv6 support. PATCHv3 4/9] AF_INET6 support for rdma_bind_addr

Aleksey Senin alekseys at voltaire.com
Wed Aug 13 01:11:12 PDT 2008


>From dc34ee826793bc42376db02b3d31f3fd47f142bf Mon Sep 17 00:00:00 2001
From: Aleksey Senin <alekseys at voltaire.com>
Date: Wed, 13 Aug 2008 09:55:33 +0300
Subject: [RDMA CM IPv6 support. PATCHv3 4/9] AF_INET6 support for 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