From: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
To: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH] infiniband-diags: remove unused options from check_lft_balance.pl
Date: Mon, 27 Feb 2012 14:21:40 -0800 [thread overview]
Message-ID: <20120227142140.b03511d5.weiny2@llnl.gov> (raw)
Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
---
scripts/check_lft_balance.pl | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/scripts/check_lft_balance.pl b/scripts/check_lft_balance.pl
index 48f756b..395096c 100755
--- a/scripts/check_lft_balance.pl
+++ b/scripts/check_lft_balance.pl
@@ -45,7 +45,6 @@ use Getopt::Std;
my $ibnetdiscover_cache = "";
my $dump_lft_file = "";
my $verbose = 0;
-my $query_opt = "";
my $switch_lid = undef;
my $switch_guid = undef;
@@ -73,8 +72,6 @@ sub usage
print " Generate ibnetdiscover-cache via \"ibnetdiscover --cache ibnetdiscover-cache\"\n";
print " -e turn on heuristic(s) to look at switch balances deeper\n";
print " -v verbose output, output all switches\n";
- print " -C <ca_name> use selected Channel Adaptor name for queries\n";
- print " -P <ca_port> use selected channel adaptor port for queries\n";
exit 2;
}
@@ -178,7 +175,7 @@ sub output_switch_port_usage
my $all_zero_flag = 1;
my $ret;
- $iblinkinfo_output = `iblinkinfo $query_opt --load-cache $ibnetdiscover_cache -S $switch_guid`;
+ $iblinkinfo_output = `iblinkinfo --load-cache $ibnetdiscover_cache -S $switch_guid`;
for $port (@ports) {
if (!defined($switch_port_count{$port})) {
@@ -359,14 +356,6 @@ if (defined($main::opt_e)) {
$heuristic_flag = 1;
}
-if (defined $Getopt::Std::opt_C) {
- $query_opt = "$query_opt -C $Getopt::Std::opt_C";
-}
-
-if (defined $Getopt::Std::opt_P) {
- $query_opt = "$query_opt -P $Getopt::Std::opt_P";
-}
-
if (!open(FH, "< $dump_lft_file")) {
print STDERR ("Couldn't open dump lfts file: $dump_lft_file: $!\n");
}
--
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
reply other threads:[~2012-02-27 22:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120227142140.b03511d5.weiny2@llnl.gov \
--to=weiny2-i2bct+ncu+m@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox