public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH librdmacm] rstream: fix "-T resolve" detection
@ 2014-04-21 15:17 Patrick MacArthur
       [not found] ` <1398093444-24384-1-git-send-email-pmacarth-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick MacArthur @ 2014-04-21 15:17 UTC (permalink / raw)
  To: Sean Hefty; +Cc: Patrick MacArthur, linux-rdma-u79uwXL29TY76Z2rM5mHXA

The effect of the check for "-T resolve" was reversed, so that -T with
any invalid value would result in the "-T resolve" behavior, and
"-T resolve" would result in an error.
---
 examples/rstream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/rstream.c b/examples/rstream.c
index 27326c2ebc7f..05598a89755d 100644
--- a/examples/rstream.c
+++ b/examples/rstream.c
@@ -577,7 +577,7 @@ static int set_test_opt(char *optarg)
 			flags = (flags & ~MSG_DONTWAIT) | MSG_WAITALL;
 		} else if (!strncasecmp("nonblock", optarg, 8)) {
 			flags |= MSG_DONTWAIT;
-		} else if (strncasecmp("resolve", optarg, 7)) {
+		} else if (!strncasecmp("resolve", optarg, 7)) {
 			use_rgai = 1;
 		} else if (!strncasecmp("verify", optarg, 6)) {
 			verify = 1;
-- 
1.8.5.3

--
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 related	[flat|nested] 3+ messages in thread

* Re: [PATCH librdmacm] rstream: fix "-T resolve" detection
       [not found] ` <1398093444-24384-1-git-send-email-pmacarth-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>
@ 2014-04-21 15:37   ` Patrick MacArthur
       [not found]     ` <53553B2E.9010404-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick MacArthur @ 2014-04-21 15:37 UTC (permalink / raw)
  To: Sean Hefty; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hi, Sean,

Add:

Signed-off-by: Patrick MacArthur <pmacarth-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>

I can resend the patch if you would like.

Thanks,
Patrick

-- 
Patrick MacArthur <pmacarth-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>
AIM: PmacarthAtIOL

Research and Development, High Performance Networking and Storage
UNH InterOperability Laboratory

On 04/21/2014 11:17 AM, Patrick MacArthur wrote:
> The effect of the check for "-T resolve" was reversed, so that -T with
> any invalid value would result in the "-T resolve" behavior, and
> "-T resolve" would result in an error.
> ---
>  examples/rstream.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/examples/rstream.c b/examples/rstream.c
> index 27326c2ebc7f..05598a89755d 100644
> --- a/examples/rstream.c
> +++ b/examples/rstream.c
> @@ -577,7 +577,7 @@ static int set_test_opt(char *optarg)
>  			flags = (flags & ~MSG_DONTWAIT) | MSG_WAITALL;
>  		} else if (!strncasecmp("nonblock", optarg, 8)) {
>  			flags |= MSG_DONTWAIT;
> -		} else if (strncasecmp("resolve", optarg, 7)) {
> +		} else if (!strncasecmp("resolve", optarg, 7)) {
>  			use_rgai = 1;
>  		} else if (!strncasecmp("verify", optarg, 6)) {
>  			verify = 1;
> 
--
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] 3+ messages in thread

* RE: [PATCH librdmacm] rstream: fix "-T resolve" detection
       [not found]     ` <53553B2E.9010404-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>
@ 2014-04-21 15:53       ` Hefty, Sean
  0 siblings, 0 replies; 3+ messages in thread
From: Hefty, Sean @ 2014-04-21 15:53 UTC (permalink / raw)
  To: Patrick MacArthur; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

> Signed-off-by: Patrick MacArthur <pmacarth-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>
> 
> I can resend the patch if you would like.

thanks - no need to resend
--
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] 3+ messages in thread

end of thread, other threads:[~2014-04-21 15:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-21 15:17 [PATCH librdmacm] rstream: fix "-T resolve" detection Patrick MacArthur
     [not found] ` <1398093444-24384-1-git-send-email-pmacarth-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>
2014-04-21 15:37   ` Patrick MacArthur
     [not found]     ` <53553B2E.9010404-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org>
2014-04-21 15:53       ` Hefty, Sean

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