]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
refresh
authorSean Hefty <sean.hefty@intel.com>
Tue, 28 Jun 2011 23:51:41 +0000 (16:51 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 28 Jun 2011 23:51:41 +0000 (16:51 -0700)
meta
patches/counters
patches/refresh-temp [deleted file]

diff --git a/meta b/meta
index 4dcd05a2ab7753fc73677dbb0fca1a563a6c9e39..7e7a801c28f2d0d5242f3c0dbba7e3d218293b97 100644 (file)
--- a/meta
+++ b/meta
@@ -1,11 +1,10 @@
 Version: 1
-Previous: 01c4748653befe1590cac6020b0c3f0fd5b0ce05
-Head: 4b8e4701ec6eed4f12e371f1f1c823264292ec0d
+Previous: dc9fb9df68a4f2cc7eb5324630a251401c9b79f9
+Head: 11672c1f019a280eb1bf5835da2e4b72788cd548
 Applied:
   deam: 15fcbd5198ba0c15ab4e8fddcdba32c8ef45faf8
   braces: 5fb48c1b8d722b60332f83ca4c8b92b2a7e456a6
-  counters: feef8881551296005862ebaadc0086e594725c60
-  refresh-temp: 4b8e4701ec6eed4f12e371f1f1c823264292ec0d
+  counters: 11672c1f019a280eb1bf5835da2e4b72788cd548
 Unapplied:
   acm1.0.5: 1b225173756cfcec4d81d26b1160ebae7644261b
   name2ip: 8e00708e882239292492e13aa51c82042255933c
index c90645de72557d68e42cd6a97ba45982ed56bbde..503c7e77e1bfa2b6d79da25d3d6a69297182426c 100644 (file)
@@ -1,5 +1,5 @@
 Bottom: fad6610d1d2786b12bafb5cd923f53cfb674ebdb
-Top:    3ca44cb6f244a91dc40f2675d2828ce532d4d24f
+Top:    3550bace98f1e4ab54dfcdc255f2dd8774f3f09b
 Author: Sean Hefty <sean.hefty@intel.com>
 Date:   2011-06-27 10:29:36 -0700
 
@@ -24,7 +24,7 @@ Signed-off-by: Sean Hefty <sean.hefty@intel.com>
 ---
 
 diff --git a/include/infiniband/acm.h b/include/infiniband/acm.h
-index 143d512..20d1b9e 100644
+index 143d512..3cc778c 100644
 --- a/include/infiniband/acm.h
 +++ b/include/infiniband/acm.h
 @@ -37,6 +37,7 @@
@@ -44,13 +44,14 @@ index 143d512..20d1b9e 100644
        uint16_t                length;
        uint64_t                tid;
  };
-@@ -97,6 +98,21 @@ struct acm_resolve_msg {
+@@ -97,6 +98,22 @@ struct acm_resolve_msg {
        struct acm_ep_addr_data data[0];
  };
  
 +enum {
 +      ACM_CNTR_ERROR,
 +      ACM_CNTR_RESOLVE,
++      ACM_CNTR_NODATA,
 +      ACM_CNTR_ADDR_CACHE,
 +      ACM_CNTR_ADDR_QUERY,
 +      ACM_CNTR_ROUTE_CACHE,
@@ -80,7 +81,7 @@ index acf6a1d..af57d0b 100644
  4. Optionally, run 'ib_acme -d <dest_ip> -v' to verify that
  the ib_acm service is running.
 diff --git a/src/acm.c b/src/acm.c
-index 8b01adb..c4b60e8 100644
+index 8b01adb..d1cdb8b 100644
 --- a/src/acm.c
 +++ b/src/acm.c
 @@ -47,7 +47,7 @@
@@ -112,7 +113,19 @@ index 8b01adb..c4b60e8 100644
        dest->state = ACM_QUERY_ROUTE;
        acm_post_send(&ep->sa_queue, msg);
        return ACM_STATUS_SUCCESS;
-@@ -1015,7 +1020,7 @@ acm_client_resolve_resp(struct acm_client *client, struct acm_resolve_msg *req_m
+@@ -1004,6 +1009,11 @@ acm_client_resolve_resp(struct acm_client *client, struct acm_resolve_msg *req_m
+       acm_log(2, "client %d, status 0x%x\n", client->index, status);
+       memset(&msg, 0, sizeof msg);
++      if (status == ACM_STATUS_ENODATA)
++              atomic_inc(counters[ACM_CNTR_NODATA]);
++      else if (status)
++              atomic_inc(counters[ACM_CNTR_ERROR]);
++
+       lock_acquire(&client->lock);
+       if (client->sock == INVALID_SOCKET) {
+               acm_log(0, "ERROR - connection lost\n");
+@@ -1015,7 +1025,7 @@ acm_client_resolve_resp(struct acm_client *client, struct acm_resolve_msg *req_m
        resp_msg->hdr.opcode |= ACM_OP_ACK;
        resp_msg->hdr.status = status;
        resp_msg->hdr.length = ACM_MSG_HDR_LENGTH;
@@ -121,7 +134,7 @@ index 8b01adb..c4b60e8 100644
  
        if (status == ACM_STATUS_SUCCESS) {
                resp_msg->hdr.length += ACM_MSG_EP_LENGTH;
-@@ -1848,6 +1853,7 @@ acm_svr_query_path(struct acm_client *client, struct acm_resolve_msg *msg)
+@@ -1848,6 +1858,7 @@ acm_svr_query_path(struct acm_client *client, struct acm_resolve_msg *msg)
        memcpy(mad->data, &msg->data[0].info.path, sizeof(struct ibv_path_record));
        mad->comp_mask = acm_path_comp_mask(&msg->data[0].info.path);
  
@@ -129,7 +142,7 @@ index 8b01adb..c4b60e8 100644
        acm_post_send(&ep->sa_queue, sa_msg);
        return ACM_STATUS_SUCCESS;
  
-@@ -1896,6 +1902,7 @@ acm_send_resolve(struct acm_ep *ep, struct acm_dest *dest,
+@@ -1896,6 +1907,7 @@ acm_send_resolve(struct acm_ep *ep, struct acm_dest *dest,
        for (i = 0; i < ep->mc_cnt; i++)
                memcpy(&rec->gid[i], ep->mc_dest[i].address, 16);
        
@@ -137,7 +150,7 @@ index 8b01adb..c4b60e8 100644
        acm_post_send(&ep->resolve_queue, msg);
        return 0;
  }
-@@ -2038,7 +2045,7 @@ acm_svr_queue_req(struct acm_dest *dest, struct acm_client *client,
+@@ -2038,7 +2050,7 @@ acm_svr_queue_req(struct acm_dest *dest, struct acm_client *client,
  }
  
  static int
@@ -146,7 +159,7 @@ index 8b01adb..c4b60e8 100644
  {
        struct acm_ep *ep;
        struct acm_dest *dest;
-@@ -2082,10 +2089,12 @@ acm_svr_resolve(struct acm_client *client, struct acm_resolve_msg *msg)
+@@ -2082,10 +2094,12 @@ acm_svr_resolve(struct acm_client *client, struct acm_resolve_msg *msg)
        switch (dest->state) {
        case ACM_READY:
                acm_log(2, "request satisfied from local cache\n");
@@ -159,7 +172,7 @@ index 8b01adb..c4b60e8 100644
                status = acm_resolve_path(ep, dest, acm_dest_sa_resp);
                if (status) {
                        break;
-@@ -2175,6 +2184,7 @@ acm_svr_resolve_path(struct acm_client *client, struct acm_resolve_msg *msg)
+@@ -2175,6 +2189,7 @@ acm_svr_resolve_path(struct acm_client *client, struct acm_resolve_msg *msg)
        switch (dest->state) {
        case ACM_READY:
                acm_log(2, "request satisfied from local cache\n");
@@ -167,7 +180,7 @@ index 8b01adb..c4b60e8 100644
                status = ACM_STATUS_SUCCESS;
                break;
        case ACM_INIT:
-@@ -2209,6 +2219,42 @@ put:
+@@ -2209,6 +2224,42 @@ put:
        return ret;
  }
  
@@ -210,7 +223,7 @@ index 8b01adb..c4b60e8 100644
  static void acm_svr_receive(struct acm_client *client)
  {
        struct acm_msg msg;
-@@ -2228,19 +2274,17 @@ static void acm_svr_receive(struct acm_client *client)
+@@ -2228,19 +2279,17 @@ static void acm_svr_receive(struct acm_client *client)
                goto out;
        }
  
@@ -240,7 +253,7 @@ index 8b01adb..c4b60e8 100644
        }
  
  out:
-@@ -2577,9 +2621,6 @@ acm_alloc_ep(struct acm_port *port, uint16_t pkey, uint16_t pkey_index)
+@@ -2577,9 +2626,6 @@ acm_alloc_ep(struct acm_port *port, uint16_t pkey, uint16_t pkey_index)
        DListInit(&ep->wait_queue);
        lock_init(&ep->lock);
  
@@ -250,7 +263,7 @@ index 8b01adb..c4b60e8 100644
        return ep;
  }
  
-@@ -3080,7 +3121,7 @@ static void show_usage(char *program)
+@@ -3080,7 +3126,7 @@ static void show_usage(char *program)
  
  int CDECL_FUNC main(int argc, char **argv)
  {
@@ -259,7 +272,7 @@ index 8b01adb..c4b60e8 100644
  
        while ((op = getopt(argc, argv, "DA:O:")) != -1) {
                switch (op) {
-@@ -3120,6 +3161,9 @@ int CDECL_FUNC main(int argc, char **argv)
+@@ -3120,6 +3166,9 @@ int CDECL_FUNC main(int argc, char **argv)
        DListInit(&dev_list);
        DListInit(&timeout_list);
        event_init(&timeout_event);
@@ -270,7 +283,7 @@ index 8b01adb..c4b60e8 100644
        if (acm_open_devices()) {
                acm_log(0, "ERROR - unable to open any devices\n");
 diff --git a/src/acme.c b/src/acme.c
-index d42ba81..bc51faa 100644
+index d42ba81..3be1f86 100644
 --- a/src/acme.c
 +++ b/src/acme.c
 @@ -52,8 +52,6 @@ static char *src_addr;
@@ -325,7 +338,7 @@ index d42ba81..bc51faa 100644
 +              return -1;
 +      }
 +
-+      printf("Destination,Error Count,Resolve Count,Addr Cache Count,"
++      printf("Destination,Error Count,Resolve Count,No Data,Addr Cache Count,"
 +             "Addr Query Count,Route Cache Count,Route Query Count\n")
 +      for (dest_addr = get_dest(dest_list[d], &dest_type); dest_addr;
 +           dest_addr = get_dest(dest_list[++d], &dest_type)) {
diff --git a/patches/refresh-temp b/patches/refresh-temp
deleted file mode 100644 (file)
index 539c3c9..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-Bottom: 3ca44cb6f244a91dc40f2675d2828ce532d4d24f
-Top:    3550bace98f1e4ab54dfcdc255f2dd8774f3f09b
-Author: Sean Hefty <sean.hefty@intel.com>
-Date:   2011-06-28 16:51:41 -0700
-
-Refresh of counters
-
----
-
-diff --git a/include/infiniband/acm.h b/include/infiniband/acm.h
-index 20d1b9e..3cc778c 100644
---- a/include/infiniband/acm.h
-+++ b/include/infiniband/acm.h
-@@ -101,6 +101,7 @@ struct acm_resolve_msg {
- enum {
-       ACM_CNTR_ERROR,
-       ACM_CNTR_RESOLVE,
-+      ACM_CNTR_NODATA,
-       ACM_CNTR_ADDR_CACHE,
-       ACM_CNTR_ADDR_QUERY,
-       ACM_CNTR_ROUTE_CACHE,
-diff --git a/src/acm.c b/src/acm.c
-index c4b60e8..d1cdb8b 100644
---- a/src/acm.c
-+++ b/src/acm.c
-@@ -1009,6 +1009,11 @@ acm_client_resolve_resp(struct acm_client *client, struct acm_resolve_msg *req_m
-       acm_log(2, "client %d, status 0x%x\n", client->index, status);
-       memset(&msg, 0, sizeof msg);
-+      if (status == ACM_STATUS_ENODATA)
-+              atomic_inc(counters[ACM_CNTR_NODATA]);
-+      else if (status)
-+              atomic_inc(counters[ACM_CNTR_ERROR]);
-+
-       lock_acquire(&client->lock);
-       if (client->sock == INVALID_SOCKET) {
-               acm_log(0, "ERROR - connection lost\n");
-diff --git a/src/acme.c b/src/acme.c
-index bc51faa..3be1f86 100644
---- a/src/acme.c
-+++ b/src/acme.c
-@@ -645,7 +645,7 @@ static int perf_query(char *program, char *dest_arg)
-               return -1;
-       }
--      printf("Destination,Error Count,Resolve Count,Addr Cache Count,"
-+      printf("Destination,Error Count,Resolve Count,No Data,Addr Cache Count,"
-              "Addr Query Count,Route Cache Count,Route Query Count\n")
-       for (dest_addr = get_dest(dest_list[d], &dest_type); dest_addr;
-            dest_addr = get_dest(dest_list[++d], &dest_type)) {