]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
delete
authorSean Hefty <sean.hefty@intel.com>
Tue, 16 Nov 2010 18:39:40 +0000 (10:39 -0800)
committerSean Hefty <sean.hefty@intel.com>
Tue, 16 Nov 2010 18:39:40 +0000 (10:39 -0800)
meta
patches/loopback [deleted file]

diff --git a/meta b/meta
index 93caf1054fd5f6f90561f08a8e5458d45e9b47cb..c93cf086c5cd3054f923888b65fbcac9b58bf1d9 100644 (file)
--- a/meta
+++ b/meta
@@ -1,5 +1,5 @@
 Version: 1
-Previous: 0b8d0a51d4e3baec50290a7c2a4f77edf00fdebb
+Previous: e8b2cedc4176884375569f768de02046d2df902b
 Head: 51d39059c7fec3ee6e764fe2f473b5ce227a3967
 Applied:
   acm_snoop: 4241a1ee0838579443846233ba67f9f6464db855
@@ -8,5 +8,4 @@ Applied:
   dest_string: d234c9d83479e496fa925c7f46b806d07a35d3d4
   loop: 51d39059c7fec3ee6e764fe2f473b5ce227a3967
 Unapplied:
-  loopback: 8c3473645ff2d6097b6a9c351a726ea48c1d8165
 Hidden:
diff --git a/patches/loopback b/patches/loopback
deleted file mode 100644 (file)
index 6ab602b..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-Bottom: 30326a5093b7b177c8d7612eba401d4999793f71
-Top:    8e12fd9af041eada9d787d668ec7a927950bc540
-Author: Sean Hefty <sean.hefty@intel.com>
-Date:   2010-11-09 15:37:58 -0800
-
-ibacm: allow disabling for loopback
-
-Multicast traffic is not always routed back to the QP which sent
-the datagram.  To account for HCA firmware bugs, we allow the
-user to disable ACM when the destination address is on the local
-system.
-
-Signed-off-by: Sean Hefty <sean.hefty@intel.com>
-
-
----
-
-diff --git a/acm_opts.cfg b/acm_opts.cfg
-index 3dbb0c6..61872ef 100644
---- a/acm_opts.cfg
-+++ b/acm_opts.cfg
-@@ -41,6 +41,13 @@ addr_prot acm
\r
- route_prot sa\r
\r
-+# disable_loopback:\r
-+# If non-zero, the ACM will fail resolution requests for local destination\r
-+# addresses.  This works around issues with HCAs that do not copy\r
-+# multicast traffic back to the QP that issues the send.\r
-+\r
-+disable_loopback 0\r
-+\r
- # server_port:\r
- # TCP port number that the server listens on.\r
- # If this value is changed, then a corresponding change is required for\r
-diff --git a/src/acm.c b/src/acm.c
-index 820365c..ddd5cf0 100644
---- a/src/acm.c
-+++ b/src/acm.c
-@@ -200,6 +200,7 @@ static char log_file[128] = "stdout";
- static int log_level = 0;
- static enum acm_addr_prot addr_prot = ACM_ADDR_PROT_ACM;
- static enum acm_route_prot route_prot = ACM_ROUTE_PROT_ACM;
-+static int disable_loopback = 0;
- static short server_port = 6125;
- static int timeout = 2000;
- static int retries = 15;
-@@ -1700,7 +1701,6 @@ acm_get_ep(struct acm_ep_addr_data *data)
-               }
-       }
--      acm_log_addr(0, "acm_get_ep: could not find ", data->type, data->info.addr);
-       return NULL;
- }
-@@ -1726,7 +1726,8 @@ acm_svr_query(struct acm_client *client, struct acm_resolve_msg *msg)
-       ep = acm_get_ep(&msg->data[0]);
-       if (!ep) {
--              acm_log(0, "could not find local end point\n");
-+              acm_log_addr(0, "acm_svr_query: could not find ",
-+                           msg->data[0].type, msg->data[0].info.addr);
-               status = ACM_STATUS_ESRCADDR;
-               goto resp;
-       }
-@@ -1947,10 +1948,22 @@ acm_svr_resolve(struct acm_client *client, struct acm_resolve_msg *msg)
-               return acm_client_resolve_resp(client, msg, NULL, status);
-       }
-+      if (disable_loopback) {
-+              acm_log_addr(2, "acm_svr_resolve: dest loopback? ",
-+                           daddr->type, daddr->info.addr);
-+              ep = acm_get_ep(daddr);
-+              if (ep) {
-+                      acm_log(2, "dest is local, and loopback is disabled\n");
-+                      return acm_client_resolve_resp(client, msg, NULL,
-+                                                     ACM_STATUS_EDESTADDR);
-+              }
-+      }
-+
-       acm_log_addr(2, "acm_svr_resolve: source ", saddr->type, saddr->info.addr);
-       ep = acm_get_ep(saddr);
-       if (!ep) {
--              acm_log(0, "unknown local end point\n");
-+              acm_log_addr(0, "acm_svr_resolve: could not find ",
-+                           saddr->type, saddr->info.addr);
-               return acm_client_resolve_resp(client, msg, NULL, ACM_STATUS_ESRCADDR);
-       }
-@@ -2562,6 +2575,8 @@ static void acm_set_options(void)
-                       addr_prot = acm_convert_addr_prot(value);
-               else if (!stricmp("route_prot", opt))
-                       route_prot = acm_convert_route_prot(value);
-+              else if (!stricmp("disable_loopback", opt))
-+                      disable_loopback = atoi(value);
-               else if (!stricmp("server_port", opt))
-                       server_port = (short) atoi(value);
-               else if (!stricmp("timeout", opt))
-@@ -2590,6 +2605,7 @@ static void acm_log_options(void)
-       acm_log(0, "log level %d\n", log_level);
-       acm_log(0, "address resolution %d\n", addr_prot);
-       acm_log(0, "route resolution %d\n", route_prot);
-+      acm_log(0, "disable loopback %d\n", disable_loopback);
-       acm_log(0, "server_port %d\n", server_port);
-       acm_log(0, "timeout %d ms\n", timeout);
-       acm_log(0, "retries %d\n", retries);
-diff --git a/src/acme.c b/src/acme.c
-index e03679f..6080b46 100644
---- a/src/acme.c
-+++ b/src/acme.c
-@@ -121,6 +121,13 @@ static void gen_opts_temp(FILE *f)
-       fprintf(f, "\n");
-       fprintf(f, "route_prot sa\n");
-       fprintf(f, "\n");
-+      fprintf(f, "# disable_loopback:\n");
-+      fprintf(f, "# If non-zero, the ACM will fail resolution requests for local destination\n");
-+      fprintf(f, "# addresses.  This works around issues with HCAs that do not copy\n");
-+      fprintf(f, "# multicast traffic back to the QP that issues the send.\n");
-+      fprintf(f, "\n");
-+      fprintf(f, "disable_loopback 0\n");
-+      fprintf(f, "\n");
-       fprintf(f, "# server_port:\n");
-       fprintf(f, "# TCP port number that the server listens on.\n");
-       fprintf(f, "# If this value is changed, then a corresponding change is required for\n");