]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
commit
authorSean Hefty <sean.hefty@intel.com>
Mon, 27 Aug 2012 23:39:40 +0000 (16:39 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 27 Aug 2012 23:39:40 +0000 (16:39 -0700)
meta
patches/errmsg [deleted file]
patches/pfx [deleted file]
patches/stder [deleted file]

diff --git a/meta b/meta
index fd3c7155e0420b86f321636a3bbb9c4b25e455f5..03c928fb6c993f5a8bc6b9da8f83a2d41e999b45 100644 (file)
--- a/meta
+++ b/meta
@@ -1,10 +1,7 @@
 Version: 1
-Previous: 5c886b72af7cd9235a7c183083a91af2f9e04507
+Previous: 46a70175290f3c00787422dd0573f7cab369ebda
 Head: 9ed76bfdfaac559582ea1562cdd47135624afe88
 Applied:
-  stder: 991c701f81cab5a1860ac7774f654edfef956068
-  pfx: 7f17ffc87301d39567af873e9aeb5e361bbcf2a7
-  errmsg: 9ed76bfdfaac559582ea1562cdd47135624afe88
 Unapplied:
   sa_family: 85be179d2f63865dbf1f5adc1dc76c093c6b811e
   af_ib: d6ca81dc1b7923005309b04c3bb684da0361cbc9
diff --git a/patches/errmsg b/patches/errmsg
deleted file mode 100644 (file)
index a2014f3..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-Bottom: 8ecca87db88331d6078a80c3fd9825bc2059cd28
-Top:    29515e2e36f97c36cfce9dc0aace196aae3e2879
-Author: Yann Droneaud <ydroneaud@opteya.com>
-Date:   2012-08-27 16:37:29 -0700
-
-librdmacm: Report error level in error messages
-
-Report error messages as either 'Warning' or 'Fatal'.
-
-Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
-Signed-off-by: Sean Hefty <sean.hefty@intel.com>
-
-
----
-
-diff --git a/src/cma.c b/src/cma.c
-index 7002513..4f6a5ab 100755
---- a/src/cma.c
-+++ b/src/cma.c
-@@ -158,15 +158,15 @@ static int check_abi_version(void)
-                * backports, assume the most recent version of the ABI.  If
-                * we're wrong, we'll simply fail later when calling the ABI.
-                */
--              fprintf(stderr, PFX "couldn't read ABI version.\n");
--              fprintf(stderr, PFX "assuming: %d\n", abi_ver);
-+              fprintf(stderr, PFX "Warning: couldn't read ABI version.\n");
-+              fprintf(stderr, PFX "Warning: assuming: %d\n", abi_ver);
-               return 0;
-       }
-       abi_ver = strtol(value, NULL, 10);
-       if (abi_ver < RDMA_USER_CM_MIN_ABI_VERSION ||
-           abi_ver > RDMA_USER_CM_MAX_ABI_VERSION) {
--              fprintf(stderr, PFX "kernel ABI version %d "
-+              fprintf(stderr, PFX "Fatal: kernel ABI version %d "
-                               "doesn't match library version %d.\n",
-                               abi_ver, RDMA_USER_CM_MAX_ABI_VERSION);
-               return -1;
-@@ -226,13 +226,13 @@ int ucma_init(void)
-       dev_list = ibv_get_device_list(&dev_cnt);
-       if (!dev_list) {
--              fprintf(stderr, PFX "unable to get RDMA device list\n");
-+              fprintf(stderr, PFX "Fatal: unable to get RDMA device list\n");
-               ret = ERR(ENODEV);
-               goto err1;
-       }
-       if (!dev_cnt) {
--              fprintf(stderr, PFX "no RDMA devices found\n");
-+              fprintf(stderr, PFX "Fatal: no RDMA devices found\n");
-               ret = ERR(ENODEV);
-               goto err2;
-       }
-@@ -249,7 +249,7 @@ int ucma_init(void)
-               cma_dev->guid = ibv_get_device_guid(dev_list[i]);
-               cma_dev->verbs = ibv_open_device(dev_list[i]);
-               if (!cma_dev->verbs) {
--                      fprintf(stderr, PFX "unable to open RDMA device\n");
-+                      fprintf(stderr, PFX "Fatal: unable to open RDMA device\n");
-                       ret = ERR(ENODEV);
-                       goto err3;
-               }
-@@ -257,7 +257,7 @@ int ucma_init(void)
-               i++;
-               ret = ibv_query_device(cma_dev->verbs, &attr);
-               if (ret) {
--                      fprintf(stderr, PFX "unable to query RDMA device\n");
-+                      fprintf(stderr, PFX "Fatal: unable to query RDMA device\n");
-                       ret = ERR(ret);
-                       goto err3;
-               }
-@@ -329,7 +329,7 @@ struct rdma_event_channel *rdma_create_event_channel(void)
-       channel->fd = open("/dev/infiniband/rdma_cm", O_RDWR);
-       if (channel->fd < 0) {
--              fprintf(stderr, PFX "unable to open /dev/infiniband/rdma_cm\n");
-+              fprintf(stderr, PFX "Fatal: unable to open /dev/infiniband/rdma_cm\n");
-               goto err;
-       }
-       return channel;
diff --git a/patches/pfx b/patches/pfx
deleted file mode 100644 (file)
index 0b54506..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-Bottom: 57d7314fff3682c73b462fc63ad5d1b91784f59a
-Top:    8ecca87db88331d6078a80c3fd9825bc2059cd28
-Author: Yann Droneaud <ydroneaud@opteya.com>
-Date:   2012-08-27 16:35:32 -0700
-
-librdmacm: Use common prefix for error messages
-
-Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
-Signed-off-by: Sean Hefty <sean.hefty@intel.com>
-
-
----
-
-diff --git a/src/cma.c b/src/cma.c
-index ddd81d1..7002513 100755
---- a/src/cma.c
-+++ b/src/cma.c
-@@ -158,15 +158,15 @@ static int check_abi_version(void)
-                * backports, assume the most recent version of the ABI.  If
-                * we're wrong, we'll simply fail later when calling the ABI.
-                */
--              fprintf(stderr, "librdmacm: couldn't read ABI version.\n");
--              fprintf(stderr, "librdmacm: assuming: %d\n", abi_ver);
-+              fprintf(stderr, PFX "couldn't read ABI version.\n");
-+              fprintf(stderr, PFX "assuming: %d\n", abi_ver);
-               return 0;
-       }
-       abi_ver = strtol(value, NULL, 10);
-       if (abi_ver < RDMA_USER_CM_MIN_ABI_VERSION ||
-           abi_ver > RDMA_USER_CM_MAX_ABI_VERSION) {
--              fprintf(stderr, "librdmacm: kernel ABI version %d "
-+              fprintf(stderr, PFX "kernel ABI version %d "
-                               "doesn't match library version %d.\n",
-                               abi_ver, RDMA_USER_CM_MAX_ABI_VERSION);
-               return -1;
-@@ -226,13 +226,13 @@ int ucma_init(void)
-       dev_list = ibv_get_device_list(&dev_cnt);
-       if (!dev_list) {
--              fprintf(stderr, "CMA: unable to get RDMA device list\n");
-+              fprintf(stderr, PFX "unable to get RDMA device list\n");
-               ret = ERR(ENODEV);
-               goto err1;
-       }
-       if (!dev_cnt) {
--              fprintf(stderr, "CMA: no RDMA devices found\n");
-+              fprintf(stderr, PFX "no RDMA devices found\n");
-               ret = ERR(ENODEV);
-               goto err2;
-       }
-@@ -249,7 +249,7 @@ int ucma_init(void)
-               cma_dev->guid = ibv_get_device_guid(dev_list[i]);
-               cma_dev->verbs = ibv_open_device(dev_list[i]);
-               if (!cma_dev->verbs) {
--                      fprintf(stderr, "CMA: unable to open RDMA device\n");
-+                      fprintf(stderr, PFX "unable to open RDMA device\n");
-                       ret = ERR(ENODEV);
-                       goto err3;
-               }
-@@ -257,7 +257,7 @@ int ucma_init(void)
-               i++;
-               ret = ibv_query_device(cma_dev->verbs, &attr);
-               if (ret) {
--                      fprintf(stderr, "CMA: unable to query RDMA device\n");
-+                      fprintf(stderr, PFX "unable to query RDMA device\n");
-                       ret = ERR(ret);
-                       goto err3;
-               }
-@@ -329,7 +329,7 @@ struct rdma_event_channel *rdma_create_event_channel(void)
-       channel->fd = open("/dev/infiniband/rdma_cm", O_RDWR);
-       if (channel->fd < 0) {
--              fprintf(stderr, "CMA: unable to open /dev/infiniband/rdma_cm\n");
-+              fprintf(stderr, PFX "unable to open /dev/infiniband/rdma_cm\n");
-               goto err;
-       }
-       return channel;
diff --git a/patches/stder b/patches/stder
deleted file mode 100644 (file)
index bf34745..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-Bottom: f28ec49823485e069c95d7c5851dbd01583cf091
-Top:    57d7314fff3682c73b462fc63ad5d1b91784f59a
-Author: Yann Droneaud <ydroneaud@opteya.com>
-Date:   2012-08-27 16:33:50 -0700
-
-librdmacm: Report error messages on stderr
-
-Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
-Signed-off-by: Sean Hefty <sean.hefty@intel.com>
-
-
----
-
-diff --git a/src/cma.c b/src/cma.c
-index 5280620..ddd81d1 100755
---- a/src/cma.c
-+++ b/src/cma.c
-@@ -226,13 +226,13 @@ int ucma_init(void)
-       dev_list = ibv_get_device_list(&dev_cnt);
-       if (!dev_list) {
--              printf("CMA: unable to get RDMA device list\n");
-+              fprintf(stderr, "CMA: unable to get RDMA device list\n");
-               ret = ERR(ENODEV);
-               goto err1;
-       }
-       if (!dev_cnt) {
--              printf("CMA: no RDMA devices found\n");
-+              fprintf(stderr, "CMA: no RDMA devices found\n");
-               ret = ERR(ENODEV);
-               goto err2;
-       }
-@@ -249,7 +249,7 @@ int ucma_init(void)
-               cma_dev->guid = ibv_get_device_guid(dev_list[i]);
-               cma_dev->verbs = ibv_open_device(dev_list[i]);
-               if (!cma_dev->verbs) {
--                      printf("CMA: unable to open RDMA device\n");
-+                      fprintf(stderr, "CMA: unable to open RDMA device\n");
-                       ret = ERR(ENODEV);
-                       goto err3;
-               }
-@@ -257,7 +257,7 @@ int ucma_init(void)
-               i++;
-               ret = ibv_query_device(cma_dev->verbs, &attr);
-               if (ret) {
--                      printf("CMA: unable to query RDMA device\n");
-+                      fprintf(stderr, "CMA: unable to query RDMA device\n");
-                       ret = ERR(ret);
-                       goto err3;
-               }
-@@ -329,7 +329,7 @@ struct rdma_event_channel *rdma_create_event_channel(void)
-       channel->fd = open("/dev/infiniband/rdma_cm", O_RDWR);
-       if (channel->fd < 0) {
--              printf("CMA: unable to open /dev/infiniband/rdma_cm\n");
-+              fprintf(stderr, "CMA: unable to open /dev/infiniband/rdma_cm\n");
-               goto err;
-       }
-       return channel;