public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
To: Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: Roland Dreier <rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>,
	Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Tom Tucker
	<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Subject: Re: nfsrdma broken on 2.6.34-rc1?
Date: Mon, 29 Mar 2010 14:51:46 -0500	[thread overview]
Message-ID: <4BB104D2.9080309@opengridcomputing.com> (raw)
In-Reply-To: <20100329193715.GA28070-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>

Jason Gunthorpe wrote:
> On Mon, Mar 29, 2010 at 12:01:07PM -0700, Roland Dreier wrote:
>   
>>  > > The rdma_cm might be able to support this if the port space were separated based
>>  > > on the address family, depending on how PS IB ends up.
>>  > 
>>  > I think separate port spaces is the correct solution.
>>
>> This gets a bit tricky -- for normal IP stuff, there's the "bindv6only"
>> sysctl (and the IPV6_V6ONLY socket option).  Without that, you can't
>> bind an IPv4 socket to the same port as an IPv6 socket, since the IPv6
>> socket will accept IPv4 connections via an v4->v6 mapped address.  (You
>> can look at inet_csk_bind_conflict() to see the full complexity of the
>> checking done when binding an IPv4 socket)
>>     
>
> Yeah, exactly, it is very complex and there is a real need for
> things pretending to be IP to capture all this subtlety. The details
> can't just be skipped over, people will notice :(
>
> Though, I'm also not entirely certain that NFS-RDMA is right to bind
> to both AFs, generally speaking on Linux for a multi-protocol app you
> only want to bind to v6 addresses.. Or is it using IPV6_V6ONLY or alike?
>
>   

This issue is really not in the NFS-RDMA code.  the nfsd code is doing 
the binding.  See commit:


37498292aa97658a5d0a9bb84699ce8c1016bb74
Author: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
Date:   Tue Jan 26 14:04:22 2010 -0500

    NFSD: Create PF_INET6 listener in write_ports


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-03-29 19:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 17:42 nfsrdma broken on 2.6.34-rc1? Steve Wise
     [not found] ` <4BB0E670.3010507-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-03-29 18:03   ` Steve Wise
2010-03-29 18:43   ` Sean Hefty
     [not found]     ` <B18454F3200D4A43B57F175388845AAC-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2010-03-29 18:51       ` Steve Wise
2010-03-29 19:01       ` Roland Dreier
     [not found]         ` <adaiq8fvtos.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-03-29 19:37           ` Jason Gunthorpe
     [not found]             ` <20100329193715.GA28070-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-03-29 19:51               ` Steve Wise [this message]
     [not found]                 ` <4BB104D2.9080309-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-03-29 19:55                   ` Jason Gunthorpe
2010-03-29 20:26                   ` Roland Dreier
     [not found]                     ` <adaaatqx4bo.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-03-29 20:32                       ` Tom Tucker
2010-04-01 17:46                       ` Steve Wise
     [not found]                         ` <4BB4DBF4.3040506-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-04-01 18:03                           ` Sean Hefty
     [not found]                             ` <4A8AA06C165A47A69C73CDA744EBDD48-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2010-04-01 18:11                               ` Tom Tucker
     [not found]                                 ` <4BB4E1C5.3030905-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-04-01 18:17                                   ` Roland Dreier
     [not found]                                     ` <adatyrvm40m.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-04-01 18:32                                       ` Steve Wise
2010-04-01 18:53                                       ` Tom Tucker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BB104D2.9080309@opengridcomputing.com \
    --to=swise-7bpotxp6k4+p2yhjcf5u+vpxobypeauw@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
    --cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox