Hey Sasha,

As discussed in the other thread, ibclearerrors should now specify -a
instead of depend on passing port 255 to the tool.

Al

-- 
Albert Chu
[EMAIL PROTECTED]
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
>From 2466cb327ff8abc319a203d72f9a8fb5c9cabbaa Mon Sep 17 00:00:00 2001
From: Albert Chu <[EMAIL PROTECTED]>
Date: Thu, 9 Oct 2008 16:38:22 -0700
Subject: [PATCH] specify -a in perfquery call to clear all errors


Signed-off-by: Albert Chu <[EMAIL PROTECTED]>
---
 infiniband-diags/scripts/ibclearerrors.in |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/infiniband-diags/scripts/ibclearerrors.in b/infiniband-diags/scripts/ibclearerrors.in
index edf93f5..3dfb96b 100644
--- a/infiniband-diags/scripts/ibclearerrors.in
+++ b/infiniband-diags/scripts/ibclearerrors.in
@@ -65,6 +65,12 @@ text="`eval $netcmd`"
 rv=$?
 echo "$text" | awk '
 
+function clear_all_errors(lid, port)
+{
+	if (system("'$IBPATH'/perfquery'"$ca_info"' '$gflags' -R -a " lid " " port " 0x0fff"))
+		nodeerr++
+}
+
 function clear_errors(lid, port)
 {
 	if (system("'$IBPATH'/perfquery'"$ca_info"' '$gflags' -R " lid " " port " 0x0fff"))
@@ -79,7 +85,7 @@ function clear_errors(lid, port)
 
 			lid = substr($0, index($0, "port 0 lid ") + 11)
 			lid = substr(lid, 1, index(lid, " ") - 1)
-			clear_errors(lid, 255)
+			clear_all_errors(lid, 255)
 		}
 
 /^\[/   {
-- 
1.5.4.5

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to