public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] svcrdma: RDMA support not yet compatible with RPC6
@ 2010-04-03 13:27 Tom Tucker
       [not found] ` <4BB74241.4060308-/Yg/VP3ZvrM@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Tucker @ 2010-04-03 13:27 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Chuck Lever, Steve Wise,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

RPC6 requires that it be possible to create endpoints that listen
exclusively for IPv4 or IPv6 connection requests. This is not currently
supported by the RDMA API.

Signed-off-by: Tom Tucker<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Tested-by: Steve Wise<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
---

  net/sunrpc/xprtrdma/svc_rdma_transport.c |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
index 3fa5751..4e6bbf9 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
@@ -678,7 +678,10 @@ static struct svc_xprt *svc_rdma_create(struct svc_serv *serv,
  	int ret;

  	dprintk("svcrdma: Creating RDMA socket\n");
-
+	if (sa->sa_family != AF_INET) {
+		dprintk("svcrdma: Address family %d is not supported.\n", sa->sa_family);
+		return ERR_PTR(-EAFNOSUPPORT);
+	}
  	cma_xprt = rdma_create_xprt(serv, 1);
  	if (!cma_xprt)
  		return ERR_PTR(-ENOMEM);

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] svcrdma: RDMA support not yet compatible with RPC6
       [not found] ` <4BB74241.4060308-/Yg/VP3ZvrM@public.gmane.org>
@ 2010-04-05 14:55   ` Chuck Lever
       [not found]     ` <4BB9F9D0.1040203-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Chuck Lever @ 2010-04-05 14:55 UTC (permalink / raw)
  To: Tom Tucker
  Cc: J. Bruce Fields, Steve Wise,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 04/03/2010 09:27 AM, Tom Tucker wrote:
> RPC6 requires that it be possible to create endpoints that listen
> exclusively for IPv4 or IPv6 connection requests. This is not currently
> supported by the RDMA API.
>
> Signed-off-by: Tom Tucker<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
> Tested-by: Steve Wise<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>

Reviewed-by: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>

> ---
>
> net/sunrpc/xprtrdma/svc_rdma_transport.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c
> b/net/sunrpc/xprtrdma/svc_rdma_transport.c
> index 3fa5751..4e6bbf9 100644
> --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
> +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
> @@ -678,7 +678,10 @@ static struct svc_xprt *svc_rdma_create(struct
> svc_serv *serv,
> int ret;
>
> dprintk("svcrdma: Creating RDMA socket\n");
> -
> + if (sa->sa_family != AF_INET) {
> + dprintk("svcrdma: Address family %d is not supported.\n", sa->sa_family);
> + return ERR_PTR(-EAFNOSUPPORT);
> + }
> cma_xprt = rdma_create_xprt(serv, 1);
> if (!cma_xprt)
> return ERR_PTR(-ENOMEM);
>


-- 
chuck[dot]lever[at]oracle[dot]com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] svcrdma: RDMA support not yet compatible with RPC6
       [not found]     ` <4BB9F9D0.1040203-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
@ 2010-04-05 15:48       ` J. Bruce Fields
       [not found]         ` <20100405154850.GG16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: J. Bruce Fields @ 2010-04-05 15:48 UTC (permalink / raw)
  To: Chuck Lever
  Cc: Tom Tucker, Steve Wise,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Mon, Apr 05, 2010 at 10:55:12AM -0400, Chuck Lever wrote:
> On 04/03/2010 09:27 AM, Tom Tucker wrote:
>> RPC6 requires that it be possible to create endpoints that listen
>> exclusively for IPv4 or IPv6 connection requests. This is not currently
>> supported by the RDMA API.
>>
>> Signed-off-by: Tom Tucker<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>> Tested-by: Steve Wise<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>
> Reviewed-by: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>

Thanks to all.  I take it the problem began with 37498292a "NFSD: Create
PF_INET6 listener in write_ports"?

--b.

>
>> ---
>>
>> net/sunrpc/xprtrdma/svc_rdma_transport.c | 5 ++++-
>> 1 files changed, 4 insertions(+), 1 deletions(-)
>>
>> diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c
>> b/net/sunrpc/xprtrdma/svc_rdma_transport.c
>> index 3fa5751..4e6bbf9 100644
>> --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
>> +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
>> @@ -678,7 +678,10 @@ static struct svc_xprt *svc_rdma_create(struct
>> svc_serv *serv,
>> int ret;
>>
>> dprintk("svcrdma: Creating RDMA socket\n");
>> -
>> + if (sa->sa_family != AF_INET) {
>> + dprintk("svcrdma: Address family %d is not supported.\n", sa->sa_family);
>> + return ERR_PTR(-EAFNOSUPPORT);
>> + }
>> cma_xprt = rdma_create_xprt(serv, 1);
>> if (!cma_xprt)
>> return ERR_PTR(-ENOMEM);
>>
>
>
> -- 
> chuck[dot]lever[at]oracle[dot]com
--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] svcrdma: RDMA support not yet compatible with RPC6
       [not found]         ` <20100405154850.GG16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
@ 2010-04-05 15:49           ` Chuck Lever
  2010-04-05 15:50           ` Tom Tucker
  1 sibling, 0 replies; 8+ messages in thread
From: Chuck Lever @ 2010-04-05 15:49 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Tom Tucker, Steve Wise,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 04/05/2010 11:48 AM, J. Bruce Fields wrote:
> On Mon, Apr 05, 2010 at 10:55:12AM -0400, Chuck Lever wrote:
>> On 04/03/2010 09:27 AM, Tom Tucker wrote:
>>> RPC6 requires that it be possible to create endpoints that listen
>>> exclusively for IPv4 or IPv6 connection requests. This is not currently
>>> supported by the RDMA API.
>>>
>>> Signed-off-by: Tom Tucker<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>>> Tested-by: Steve Wise<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>>
>> Reviewed-by: Chuck Lever<chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
>
> Thanks to all.  I take it the problem began with 37498292a "NFSD: Create
> PF_INET6 listener in write_ports"?

I don't know exactly, but that would make sense.

-- 
chuck[dot]lever[at]oracle[dot]com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] svcrdma: RDMA support not yet compatible with RPC6
       [not found]         ` <20100405154850.GG16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
  2010-04-05 15:49           ` Chuck Lever
@ 2010-04-05 15:50           ` Tom Tucker
       [not found]             ` <4BBA06B8.3090201-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Tom Tucker @ 2010-04-05 15:50 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Chuck Lever, Tom Tucker, Steve Wise,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

J. Bruce Fields wrote:
> On Mon, Apr 05, 2010 at 10:55:12AM -0400, Chuck Lever wrote:
>   
>> On 04/03/2010 09:27 AM, Tom Tucker wrote:
>>     
>>> RPC6 requires that it be possible to create endpoints that listen
>>> exclusively for IPv4 or IPv6 connection requests. This is not currently
>>> supported by the RDMA API.
>>>
>>> Signed-off-by: Tom Tucker<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>>> Tested-by: Steve Wise<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>>>       
>> Reviewed-by: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
>>     
>
> Thanks to all.  I take it the problem began with 37498292a "NFSD: Create
> PF_INET6 listener in write_ports"?
>
>   

Yes.

Tom

> --b.
>
>   
>>> ---
>>>
>>> net/sunrpc/xprtrdma/svc_rdma_transport.c | 5 ++++-
>>> 1 files changed, 4 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c
>>> b/net/sunrpc/xprtrdma/svc_rdma_transport.c
>>> index 3fa5751..4e6bbf9 100644
>>> --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
>>> +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
>>> @@ -678,7 +678,10 @@ static struct svc_xprt *svc_rdma_create(struct
>>> svc_serv *serv,
>>> int ret;
>>>
>>> dprintk("svcrdma: Creating RDMA socket\n");
>>> -
>>> + if (sa->sa_family != AF_INET) {
>>> + dprintk("svcrdma: Address family %d is not supported.\n", sa->sa_family);
>>> + return ERR_PTR(-EAFNOSUPPORT);
>>> + }
>>> cma_xprt = rdma_create_xprt(serv, 1);
>>> if (!cma_xprt)
>>> return ERR_PTR(-ENOMEM);
>>>
>>>       
>> -- 
>> chuck[dot]lever[at]oracle[dot]com
>>     
> --
> 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
>   

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] svcrdma: RDMA support not yet compatible with RPC6
       [not found]             ` <4BBA06B8.3090201-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
@ 2010-04-05 16:16               ` J. Bruce Fields
       [not found]                 ` <20100405161618.GI16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: J. Bruce Fields @ 2010-04-05 16:16 UTC (permalink / raw)
  To: Tom Tucker
  Cc: Chuck Lever, Tom Tucker, Steve Wise,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Mon, Apr 05, 2010 at 10:50:16AM -0500, Tom Tucker wrote:
> J. Bruce Fields wrote:
>> On Mon, Apr 05, 2010 at 10:55:12AM -0400, Chuck Lever wrote:
>>   
>>> On 04/03/2010 09:27 AM, Tom Tucker wrote:
>>>     
>>>> RPC6 requires that it be possible to create endpoints that listen
>>>> exclusively for IPv4 or IPv6 connection requests. This is not currently
>>>> supported by the RDMA API.
>>>>
>>>> Signed-off-by: Tom Tucker<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>>>> Tested-by: Steve Wise<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>>>>       
>>> Reviewed-by: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
>>>     
>>
>> Thanks to all.  I take it the problem began with 37498292a "NFSD: Create
>> PF_INET6 listener in write_ports"?
>>
>>   
>
> Yes.

Thanks.  I'll pass along

	git://linux-nfs.org/~bfields/linux.git for-2.6.34

soon.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] svcrdma: RDMA support not yet compatible with RPC6
       [not found]                     ` <20100405162020.GJ16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
@ 2010-04-05 16:19                       ` Tom Tucker
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Tucker @ 2010-04-05 16:19 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Chuck Lever, Tom Tucker, Steve Wise,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

J. Bruce Fields wrote:
> On Mon, Apr 05, 2010 at 12:16:18PM -0400, J. Bruce Fields wrote:
>   
>> On Mon, Apr 05, 2010 at 10:50:16AM -0500, Tom Tucker wrote:
>>     
>>> J. Bruce Fields wrote:
>>>       
>>>> On Mon, Apr 05, 2010 at 10:55:12AM -0400, Chuck Lever wrote:
>>>>   
>>>>         
>>>>> On 04/03/2010 09:27 AM, Tom Tucker wrote:
>>>>>     
>>>>>           
>>>>>> RPC6 requires that it be possible to create endpoints that listen
>>>>>> exclusively for IPv4 or IPv6 connection requests. This is not currently
>>>>>> supported by the RDMA API.
>>>>>>
>>>>>> Signed-off-by: Tom Tucker<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>>>>>> Tested-by: Steve Wise<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
>>>>>>       
>>>>>>             
>>>>> Reviewed-by: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
>>>>>     
>>>>>           
>>>> Thanks to all.  I take it the problem began with 37498292a "NFSD: Create
>>>> PF_INET6 listener in write_ports"?
>>>>
>>>>   
>>>>         
>>> Yes.
>>>       
>> Thanks.  I'll pass along
>>
>> 	git://linux-nfs.org/~bfields/linux.git for-2.6.34
>>
>> soon.
>>     
>
> And: sorry we didn't catch this when it happened.  I have some of the
> equipment I'd need to do basic regression tests, but haven't set it up.
>
> I hope I get to it at some point....  For now I depend on others to
> catch even basic rdma regressions--let me know if there's some way I
> could make your testing easier.
>
>   

We were focused on older kernels..and probably should have caught it 
quicker. No worries. Thanks,

Tom

> --b.
>   

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] svcrdma: RDMA support not yet compatible with RPC6
       [not found]                 ` <20100405161618.GI16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
@ 2010-04-05 16:20                   ` J. Bruce Fields
       [not found]                     ` <20100405162020.GJ16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: J. Bruce Fields @ 2010-04-05 16:20 UTC (permalink / raw)
  To: Tom Tucker
  Cc: Chuck Lever, Tom Tucker, Steve Wise,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Mon, Apr 05, 2010 at 12:16:18PM -0400, J. Bruce Fields wrote:
> On Mon, Apr 05, 2010 at 10:50:16AM -0500, Tom Tucker wrote:
> > J. Bruce Fields wrote:
> >> On Mon, Apr 05, 2010 at 10:55:12AM -0400, Chuck Lever wrote:
> >>   
> >>> On 04/03/2010 09:27 AM, Tom Tucker wrote:
> >>>     
> >>>> RPC6 requires that it be possible to create endpoints that listen
> >>>> exclusively for IPv4 or IPv6 connection requests. This is not currently
> >>>> supported by the RDMA API.
> >>>>
> >>>> Signed-off-by: Tom Tucker<tom-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
> >>>> Tested-by: Steve Wise<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
> >>>>       
> >>> Reviewed-by: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> >>>     
> >>
> >> Thanks to all.  I take it the problem began with 37498292a "NFSD: Create
> >> PF_INET6 listener in write_ports"?
> >>
> >>   
> >
> > Yes.
> 
> Thanks.  I'll pass along
> 
> 	git://linux-nfs.org/~bfields/linux.git for-2.6.34
> 
> soon.

And: sorry we didn't catch this when it happened.  I have some of the
equipment I'd need to do basic regression tests, but haven't set it up.

I hope I get to it at some point....  For now I depend on others to
catch even basic rdma regressions--let me know if there's some way I
could make your testing easier.

--b.
--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-05 16:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-03 13:27 [PATCH] svcrdma: RDMA support not yet compatible with RPC6 Tom Tucker
     [not found] ` <4BB74241.4060308-/Yg/VP3ZvrM@public.gmane.org>
2010-04-05 14:55   ` Chuck Lever
     [not found]     ` <4BB9F9D0.1040203-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2010-04-05 15:48       ` J. Bruce Fields
     [not found]         ` <20100405154850.GG16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2010-04-05 15:49           ` Chuck Lever
2010-04-05 15:50           ` Tom Tucker
     [not found]             ` <4BBA06B8.3090201-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-04-05 16:16               ` J. Bruce Fields
     [not found]                 ` <20100405161618.GI16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2010-04-05 16:20                   ` J. Bruce Fields
     [not found]                     ` <20100405162020.GJ16370-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2010-04-05 16:19                       ` Tom Tucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox