]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
refresh (create temporary patch)
authorSean Hefty <sean.hefty@intel.com>
Thu, 16 Dec 2010 01:28:45 +0000 (17:28 -0800)
committerSean Hefty <sean.hefty@intel.com>
Thu, 16 Dec 2010 01:28:45 +0000 (17:28 -0800)
meta
patches/refresh-temp [new file with mode: 0644]

diff --git a/meta b/meta
index 320f8ec0af7f53c62d325d2768841f75d181ba62..8eb76c3f22d4aefb5960265fb73f86e0e60fbd03 100644 (file)
--- a/meta
+++ b/meta
@@ -1,8 +1,9 @@
 Version: 1
-Previous: 4da0f4748f8497ed845b5e0a8c835737313543b8
-Head: 7dac2ca1d3c145f6a91aa8cac64d05f8f21d6f4f
+Previous: 7e583bbe6c1c458903abe40e6e268e2ea7de1765
+Head: 96c7db6bcd9444e2584b8eb5546bb1d87d7919fb
 Applied:
   lmc: 7dac2ca1d3c145f6a91aa8cac64d05f8f21d6f4f
+  refresh-temp: 96c7db6bcd9444e2584b8eb5546bb1d87d7919fb
 Unapplied:
   xref-lid: b5eda7109939c041d6a150ea6b4ca5b92cad4691
   ibacm-check-for-nodelay-on-pat: 1540687d721504ec1810aac7cc53ec7272415eb9
diff --git a/patches/refresh-temp b/patches/refresh-temp
new file mode 100644 (file)
index 0000000..c2cbe85
--- /dev/null
@@ -0,0 +1,36 @@
+Bottom: 1fcbb0d2b361b8a2ed7ce1d4252ecc8c4be8ae71
+Top:    44bac54467fee44e1945f9a0311472cc84ac5b50
+Author: Sean Hefty <sean.hefty@intel.com>
+Date:   2010-12-15 17:28:45 -0800
+
+Refresh of lmc
+
+---
+
+diff --git a/src/acm.c b/src/acm.c
+index 4ec01e8..e8f7a74 100644
+--- a/src/acm.c
++++ b/src/acm.c
+@@ -112,7 +112,7 @@ struct acm_port
+       int                 gid_cnt;
+       uint16_t            pkey_cnt;
+       uint16_t            lid;
+-      uint8_t             lmc;
++      uint8_t             lid_mask;
+       uint8_t             port_num;
+ };
+@@ -2582,11 +2582,11 @@ static void acm_init_port(struct acm_port *port)
+                       break;
+       }
+       port->lid = attr.lid;
+-      port->lmc = attr.lmc;
++      port->lid_mask = (1 << attr.lmc) - 1;
+       acm_init_dest(&port->sa_dest, ACM_ADDRESS_LID,
+               (uint8_t *) &attr.sm_lid, sizeof(attr.sm_lid));
+-      port->sa_dest.av.src_path_bits = attr.lid & attr.lmc;
++      port->sa_dest.av.src_path_bits = 0;
+       port->sa_dest.av.dlid = attr.sm_lid;
+       port->sa_dest.av.sl = attr.sm_sl;
+       port->sa_dest.av.port_num = port->port_num;