From patchwork Thu Jun 13 21:30:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Chu X-Patchwork-Id: 2718601 X-Patchwork-Delegate: hal@mellanox.com 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 0CADC9F967 for ; Thu, 13 Jun 2013 21:31:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CE302028A for ; Thu, 13 Jun 2013 21:31:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 23BCF2027A for ; Thu, 13 Jun 2013 21:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757270Ab3FMVbo (ORCPT ); Thu, 13 Jun 2013 17:31:44 -0400 Received: from prdiron-3.llnl.gov ([128.15.143.173]:32236 "EHLO prdiron-3.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755565Ab3FMVbn (ORCPT ); Thu, 13 Jun 2013 17:31:43 -0400 X-Greylist: delayed 308 seconds by postgrey-1.27 at vger.kernel.org; Thu, 13 Jun 2013 17:31:43 EDT X-Attachments: Received: from auk59.llnl.gov (HELO [134.9.93.24]) ([134.9.93.24]) by prdiron-3.llnl.gov with ESMTP; 13 Jun 2013 14:30:40 -0700 Subject: [PATCH 1/2] ibsim: Remove parse corner case with full ibnetdiscover output From: Albert Chu To: linux-rdma@vger.kernel.org Date: Thu, 13 Jun 2013 14:30:40 -0700 Message-Id: <1371159040.13124.181.camel@auk59.llnl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-19.el5) 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.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 When feeding in ibnetdiscover full output (i.e. -f option), ibsim would not parse the lid and lmc of ports correctly. Signed-off-by: Albert L. Chu --- ibsim/sim_net.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/ibsim/sim_net.c b/ibsim/sim_net.c index 13c3b8c..10820ba 100644 --- a/ibsim/sim_net.c +++ b/ibsim/sim_net.c @@ -679,7 +679,6 @@ static int parse_port(char *line, Node * node, int type, int maxports) IBWARN("bad port option"); return -1; } - line = s + 1; } if (type != SWITCH_NODE && line && parse_port_lid_and_lmc(port, line) < 0) { IBWARN("cannot parse lid, lmc");