[ofa-general] [PATCH] opensm: diags bug fix in iblinkinfo.pl

Timothy A. Meier meier3 at llnl.gov
Wed Jan 30 16:05:50 PST 2008


Sasha,

Sorry, I missed this in my previous patch.

 From b9bd2d2e5be0121c148fe7087ca7e6cce357a55e Mon Sep 17 00:00:00 2001
From: Tim Meier <meier3 at llnl.gov>
Date: Wed, 30 Jan 2008 16:00:50 -0800
Subject: [PATCH] opensm: diags bug fix in iblinkinfo.pl

Fixes -D bug determining guid from dr

Signed-off-by: Tim Meier <meier3 at llnl.gov>
---
  infiniband-diags/scripts/iblinkinfo.pl |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/infiniband-diags/scripts/iblinkinfo.pl b/infiniband-diags/scripts/iblinkinfo.pl
index 5f268dd..195c8cf 100755
--- a/infiniband-diags/scripts/iblinkinfo.pl
+++ b/infiniband-diags/scripts/iblinkinfo.pl
@@ -98,7 +98,7 @@ sub main
         get_link_ends($regenerate_map, $ca_name, $ca_port);
         if (defined($direct_route)) {
                 # convert DR to guid, then use original single_switch option
-               $single_switch = $IBswcountlimits::convert_dr_to_guid{$direct_route};
+               $single_switch = convert_dr_to_guid($direct_route);
                 if (!defined($single_switch) || !is_switch($single_switch)) {
                         printf("The direct route (%s) does not map to a switch.\n",
                                 $direct_route);
--
1.5.1


-- 
Timothy A. Meier
Computer Scientist
ICCD/High Performance Computing
925.422.3341
meier3 at llnl.gov



More information about the general mailing list