public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ibsim: Remove parse corner case with full ibnetdiscover output
@ 2013-06-13 21:30 Albert Chu
       [not found] ` <1371159040.13124.181.camel-akkeaxHeDKRliZ7u+bvwcg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Albert Chu @ 2013-06-13 21:30 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

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-i2BcT+NCU+M@public.gmane.org>
---
 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");
-- 
1.7.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 related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] ibsim: Remove parse corner case with full ibnetdiscover output
       [not found] ` <1371159040.13124.181.camel-akkeaxHeDKRliZ7u+bvwcg@public.gmane.org>
@ 2013-06-25 19:17   ` Hal Rosenstock
  0 siblings, 0 replies; 2+ messages in thread
From: Hal Rosenstock @ 2013-06-25 19:17 UTC (permalink / raw)
  To: Albert Chu; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

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-i2BcT+NCU+M@public.gmane.org>

Thanks. Applied.

-- Hal
--
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] 2+ messages in thread

end of thread, other threads:[~2013-06-25 19:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-13 21:30 [PATCH 1/2] ibsim: Remove parse corner case with full ibnetdiscover output Albert Chu
     [not found] ` <1371159040.13124.181.camel-akkeaxHeDKRliZ7u+bvwcg@public.gmane.org>
2013-06-25 19:17   ` Hal Rosenstock

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