diff mbox

[1/2] ibsim: Remove parse corner case with full ibnetdiscover output

Message ID 1371159040.13124.181.camel@auk59.llnl.gov (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Al Chu June 13, 2013, 9:30 p.m. UTC
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 <chu11@llnl.gov>
---
 ibsim/sim_net.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Comments

Hal Rosenstock June 25, 2013, 7:17 p.m. UTC | #1
On 6/13/2013 5:30 PM, Albert Chu wrote:
> 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 <chu11@llnl.gov>

Thanks. Applied.

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

Patch

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");