From patchwork Mon Apr 21 15:17:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick MacArthur X-Patchwork-Id: 4025381 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2BB999F319 for ; Mon, 21 Apr 2014 15:27:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 43948202EB for ; Mon, 21 Apr 2014 15:27:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F23EE20221 for ; Mon, 21 Apr 2014 15:27:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751534AbaDUP1W (ORCPT ); Mon, 21 Apr 2014 11:27:22 -0400 Received: from exprod5og106.obsmtp.com ([64.18.0.182]:53879 "HELO exprod5og106.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751449AbaDUP1V (ORCPT ); Mon, 21 Apr 2014 11:27:21 -0400 X-Greylist: delayed 564 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Apr 2014 11:27:21 EDT Received: from postal.iol.unh.edu ([132.177.123.84]) by exprod5ob106.postini.com ([64.18.4.12]) with SMTP ID DSNKU1U42L/D9jWB3xpZBwQgAv4VTluja0pL@postini.com; Mon, 21 Apr 2014 08:27:21 PDT Received: from groose.iol.unh.edu (groose.iol.unh.edu [132.177.124.21]) by postal.iol.unh.edu (Postfix) with ESMTP id 8B37C8F0078; Mon, 21 Apr 2014 11:17:55 -0400 (EDT) Received: by groose.iol.unh.edu (Postfix, from userid 517) id 7CC39C4002C; Mon, 21 Apr 2014 11:17:55 -0400 (EDT) From: Patrick MacArthur To: Sean Hefty Cc: Patrick MacArthur , linux-rdma@vger.kernel.org Subject: [PATCH librdmacm] rstream: fix "-T resolve" detection Date: Mon, 21 Apr 2014 11:17:24 -0400 Message-Id: <1398093444-24384-1-git-send-email-pmacarth@iol.unh.edu> X-Mailer: git-send-email 1.9.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Patrick MacArthur --- 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;