Skip to contentSkip to conversation

Add support for preloading IPv4 and IPv6 ACM caches

PATCH In review Hal Rosenstock 1 participant 1 message Jun 21, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 14/15 Add support for preloading IPv4 and IPv6 ACM caches

A hosts file (ibacm_hosts.cfg) is configured with tuples of IP addresses (either IPv4 or IPv6) and IB GID. This information in conjunction with the path record preloading allows for the IPv4 and IPv6 ACM caches to be preloaded.

IPv4 was tested with both rping and ucmatose as well as acme. IPv6 was tested with ucmatose and acme.

The remaining ACM cache to be preloaded is the name cache. This will be added in subsequent patch.

---
 Makefile.am     |    2 +-
 acm_notes.txt   |    3 ++
 ibacm_hosts.cfg |   12 ++++++++
 linux/osd.h     |    1 +
 man/ibacm.1     |   11 ++++++-
 src/acm.c       |   84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 6 files changed, 109 insertions(+), 4 deletions(-)
 create mode 100644 ibacm_hosts.cfg
Makefile.am +1 -1
index de035bc..c97326a 100644
@@ -20,7 +20,7 @@ man_MANS = \
 
 EXTRA_DIST = src/acm_mad.h src/libacm.h ibacm.init.in \
 	     linux/osd.h linux/dlist.h ibacm.spec.in $(man_MANS) ibacm_opts.cfg \
-	     ibacm_addr.cfg
+	     ibacm_addr.cfg ibacm_hosts.cfg
 
 install-exec-hook:
 	install -D -m 755 ibacm.init $(DESTDIR)$(sysconfdir)/init.d/ibacm;
acm_notes.txt +3 -0
index 5c20129..a3f3a91 100644
@@ -139,3 +139,6 @@ this  file  format and how to configure OpenSM to output this file.  By
 default, if the -p option  is  specified,  the  default  file  used  to
 preload these caches is ACM_CONF_DIR/ibacm_path_record.dump
 
+Additional IPv4 and IPv6 caches can be be preloaded by using the -H
+option. By default, the default hosts file used to preload these
+caches is ACM_CONF_DIR/ibacm_hosts.cfg
ibacm_hosts.cfg new file +12 -0
new file mode 100644
index 0000000..32b6594
@@ -0,0 +1,12 @@
+# InfiniBand Communication Management Assistant for clusters hosts file
+#
+# Entry format is:
+# address IB GID
+#
+# address - IPv4 or IPv6 formatted address
+#
+# There can be multiple entries for a single IB GID
+#
+# Samples:
+# 192.168.1.3 fe80::8:f104:39a:169 
+# fe80::208:f104:39a:169 fe80::8:f104:39a:169
linux/osd.h +1 -0
index 0b6884f..6ea01cb 100644
@@ -59,6 +59,7 @@
 #define ACM_ADDR_FILE "ibacm_addr.cfg"
 #define ACM_OPTS_FILE "ibacm_opts.cfg"
 #define ACM_PATH_REC_FILE "ibacm_path_records.dump"
+#define ACM_HOSTS_FILE "ibacm_hosts.cfg"
 
 #define LIB_DESTRUCTOR __attribute__((destructor))
 #define CDECL_FUNC
man/ibacm.1 +9 -2
index 382b4c0..0693a8f 100644
@@ -1,10 +1,10 @@
-.TH "ibacm" 1 "2013-06-18" "ibacm" "ibacm" ibacm
+.TH "ibacm" 1 "2013-06-20" "ibacm" "ibacm" ibacm
 .SH NAME
 ibacm \- address and route resolution services for InfiniBand.
 .SH SYNOPSIS
 .sp
 .nf
-\fIibacm\fR [-D] [-P] [-A addr_file] [-O option_file] [-p [path_rec_file]]
+\fIibacm\fR [-D] [-P] [-A addr_file] [-O option_file] [-p [path_rec_file]] [-H [hosts_file]]
 .fi
 .SH "DESCRIPTION"
 The IB ACM implements and provides a framework for name,
@@ -49,6 +49,9 @@ option configuration file
 .TP
 \-p [path_rec_file]
 optional path records file for preloading ACM cache
+.TP
+\-H [hosts_file]
+optional hosts file for preloading ACM cache
 .SH "QUICK START GUIDE"
 1. Prerequisites: libibverbs and libibumad must be installed.
 The IB stack should be running with IPoIB configured.
@@ -159,5 +162,9 @@ format which is the default.  See dump_pr.notes.txt in dump_pr for
 more information on both this file format and how to configure OpenSM
 to output this file.  By default, if the -p option is specified, the default
 file used to preload these caches is ACM_CONF_DIR/ibacm_path_record.dump
+.P
+Additional IPv4 and IPv6 caches can be be preloaded by using the -H
+option. By default, the default hosts file used to preload these
+caches is ACM_CONF_DIR/ibacm_hosts.cfg
 .SH "SEE ALSO"
 ibacm(7), ib_acme(1), rdma_cm(7)
src/acm.c +83 -1

126 lines not on this page · raw message

Signature · 6 lines
1.7.8.2

--
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