From patchwork Wed Sep 16 03:42:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Keshetti Mahesh X-Patchwork-Id: 47812 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8G3gaKV007705 for ; Wed, 16 Sep 2009 03:42:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751038AbZIPDmb (ORCPT ); Tue, 15 Sep 2009 23:42:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750868AbZIPDmb (ORCPT ); Tue, 15 Sep 2009 23:42:31 -0400 Received: from mail-pz0-f184.google.com ([209.85.222.184]:62883 "EHLO mail-pz0-f184.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbZIPDma convert rfc822-to-8bit (ORCPT ); Tue, 15 Sep 2009 23:42:30 -0400 Received: by pzk14 with SMTP id 14so3999613pzk.1 for ; Tue, 15 Sep 2009 20:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=MebNfXGL/HPsVoSv55gxmZQlnY0FYTinvQu4HfOvBzg=; b=bkdUB4cHk9De4b1Gs0b2eIoSUKF9ChScieRreQSjdIQESaGR+McLVCvI8Mylrf8Lw4 caviTh5JxVywSgcOoQF4bkUASnIrNvaRSN/31+1dfbOBO8b47NapNNKrbxgGGb2BQRtq pBJqO2V9I/zZDVBRUbnbqGQSEb+iQsHntQkVk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=gC6Yj71/PMKbdymgm56lN3Gpymynb9WWHlxOMnDM4J+DQ04YEhyR+MLXpr6hWh+YHK 723stSSILX3y0U3E7RUW6kzCv4m52RTFz9rUUp/ACf8zY+/bUXJWEuNcZ/nccAVrZq+D sD/G9EoIjHMzrD7gMaeGrbinmceB61c4ZuO4I= MIME-Version: 1.0 Received: by 10.140.131.5 with SMTP id e5mr1059582rvd.205.1253072554157; Tue, 15 Sep 2009 20:42:34 -0700 (PDT) From: Keshetti Mahesh Date: Wed, 16 Sep 2009 09:12:14 +0530 Message-ID: <829ded920909152042y227a709u6e74ee05d6ff05@mail.gmail.com> Subject: [PATCH] 'ibcheckportwidth' : Exit if LWS is 1X To: Sasha Khapyorsky , OFED mailing list , OFED mailing list , Hal Rosenstock Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Fix: Modify ibcheckportwidth to exit if LWS is 1X instead of processing next lines. Trivial: ibcheckportwidth man page cosmetic change Signed-off-by: Keshetti Mahesh --- infiniband-diags/man/ibcheckportwidth.8      |    2 +- infiniband-diags/scripts/ibcheckportwidth.in |    2 +- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/infiniband-diags/man/ibcheckportwidth.8 b/infiniband-diags/man/ibcheckportwidth.8 index 85c06fc..c368467 100644 --- a/infiniband-diags/man/ibcheckportwidth.8 +++ b/infiniband-diags/man/ibcheckportwidth.8 @@ -4,7 +4,7 @@  ibcheckportwidth \- validate IB port for 1x link width  .SH SYNOPSIS -.B ibcheckport +.B ibcheckportwidth  [\-h] [\-v] [\-N | \-nocolor] [\-G] [\-C ca_name] [\-P ca_port]  [\-t(imeout) timeout_ms]   diff --git a/infiniband-diags/scripts/ibcheckportwidth.in b/infiniband-diags/scripts/ibcheckportwidth.in index 32c5c5e..60a0892 100644 --- a/infiniband-diags/scripts/ibcheckportwidth.in +++ b/infiniband-diags/scripts/ibcheckportwidth.in @@ -103,7 +103,7 @@ function blue(s)  }  # Only check LinkWidthActive if LinkWidthSupported is not 1X -/^LinkWidthSupported/{ if ($2 != "1X") { next } } +/^LinkWidthSupported/{ if ($2 == "1X") { exit } } -- 1.6.4.2 -- Keshetti Mahesh