From owner-freebsd-net@freebsd.org Thu Apr 7 07:03:03 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2EE5FB061C9 for ; Thu, 7 Apr 2016 07:03:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1DC781F69 for ; Thu, 7 Apr 2016 07:03:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1D1E1B061C8; Thu, 7 Apr 2016 07:03:03 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A1EDB061C7; Thu, 7 Apr 2016 07:03:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBD351F68; Thu, 7 Apr 2016 07:03:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 54AC71FE023; Thu, 7 Apr 2016 09:03:01 +0200 (CEST) Subject: Re: IPv6 support in OFED To: Vijay Singh , freebsd-infiniband@freebsd.org, "freebsd-net@freebsd.org" References: From: Hans Petter Selasky Message-ID: <570606E1.6060504@selasky.org> Date: Thu, 7 Apr 2016 09:06:09 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2016 07:03:03 -0000 On 04/06/16 20:55, Vijay Singh wrote: > [Apologies for the cross-post] > > I see that the OFED stack supports IPv6 in many places, so I was wondering > why we have this in rdma_listen(): > > int rdma_listen(struct rdma_cm_id *id, int backlog) > { > struct rdma_id_private *id_priv; > int ret; > > id_priv = container_of(id, struct rdma_id_private, id); > if (id_priv->state == CMA_IDLE) { >>> ((struct sockaddr *) &id->route.addr.src_addr)->sa_family = > AF_INET; > ret = rdma_bind_addr(id, (struct sockaddr *) > &id->route.addr.src_addr); > if (ret) > return ret; > } > > Even for v4, should the caller already fill in the family? > Hi, Try using the patchset from here: https://lists.freebsd.org/pipermail/freebsd-infiniband/2016-March/000190.html It has better IPv6 support. --HPS