Skip to contentSkip to conversation

infiniband-diags: add a general config file

PATCH New Ira Weiny 1 participant 1 message Oct 26, 2011

Subsystems (2)
lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

PATCH 1/1 infiniband-diags: add a general config file

This supports the common options for CA, Port, and timeout.

---
 Makefile.am               |    1 +
 configure.in              |    1 +
 etc/ibdiag.conf           |   13 +++
 man/infiniband-diags.8    |  198 -------------------------------------------
 man/infiniband-diags.8.in |  205 +++++++++++++++++++++++++++++++++++++++++++++
 src/ibdiag_common.c       |   55 +++++++++++-
 6 files changed, 271 insertions(+), 202 deletions(-)
 create mode 100644 etc/ibdiag.conf
 delete mode 100644 man/infiniband-diags.8
 create mode 100644 man/infiniband-diags.8.in
Makefile.am +1 -0
index ea85280..b793fb4 100644
@@ -110,3 +110,4 @@ install-data-hook:
 	fi
 	$(top_srcdir)/config/install-sh -c -m 444 $(top_srcdir)/scripts/IBswcountlimits.pm $(DESTDIR)/$(PERL_INSTALLDIR)/IBswcountlimits.pm
 	$(top_srcdir)/config/install-sh -c -m 444 $(top_srcdir)/etc/error_thresholds $(DESTDIR)/$(sysconfdir)/infiniband-diags
+	$(top_srcdir)/config/install-sh -c -m 444 $(top_srcdir)/etc/ibdiag.conf $(DESTDIR)/$(sysconfdir)/infiniband-diags
configure.in +1 -0
index 41e3f53..0237c99 100644
@@ -179,6 +179,7 @@ AC_CONFIG_FILES([\
 	scripts/iblinkinfo.pl \
 	scripts/ibqueryerrors.pl \
 	man/ibqueryerrors.8 \
+	man/infiniband-diags.8 \
 	libibnetdisc/Makefile \
 ])
 AC_OUTPUT
etc/ibdiag.conf new file +13 -0
new file mode 100644
index 0000000..1668a90
@@ -0,0 +1,13 @@
+# Define different defaults for all infiniband-diag tools.  These can be
+# defined on the command line but this offers a more global config.
+
+# Defaults are to find the first port with Physical state == "LinkUp"
+#CA=mlx4_0
+
+# NOTE: that using a different Port may require an altered DR path.
+#       for example -D 0,1 will not work with port 2
+#Port=1
+
+# define a different default timeout
+#timeout=50
+
man/infiniband-diags.8 deleted +0 -198

198 lines not on this page · raw message

man/infiniband-diags.8.in new file +205 -0

205 lines not on this page · raw message

src/ibdiag_common.c +51 -4

83 lines not on this page · raw message

Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html