]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
refresh (create temporary patch)
authorSean Hefty <sean.hefty@intel.com>
Fri, 7 Dec 2012 07:34:31 +0000 (23:34 -0800)
committerSean Hefty <sean.hefty@intel.com>
Fri, 7 Dec 2012 07:34:31 +0000 (23:34 -0800)
meta
patches/refresh-temp [new file with mode: 0644]

diff --git a/meta b/meta
index 35da1dda261c13a4f2abc6b36ebd209e10d6c6c7..92735d0ca2d8ab8255e075fad58125d08685dfb3 100644 (file)
--- a/meta
+++ b/meta
@@ -1,9 +1,10 @@
 Version: 1
-Previous: 561aea3fb2bfad6703b5c26024e234163f117c85
-Head: 24951f20aac0dec4aa0ca8fcf796ac5599a511f7
+Previous: e3babd0b408648aa41a93ce85170ab0e6886f687
+Head: 180ce075dd8db2f6ec4597af8c06ba569e5787df
 Applied:
   dsocket: ad3be3a08de1c984c85f2f44d953894f30d279f6
   udpong: 24951f20aac0dec4aa0ca8fcf796ac5599a511f7
+  refresh-temp: 180ce075dd8db2f6ec4597af8c06ba569e5787df
 Unapplied:
   test-udp: f6c78ad2a26f452cf166aff1baa7b76160bd8bf7
   iom-dbg: 88434072d07f8edc58f454ac954d78bd39441eed
diff --git a/patches/refresh-temp b/patches/refresh-temp
new file mode 100644 (file)
index 0000000..0295030
--- /dev/null
@@ -0,0 +1,152 @@
+Bottom: e9c95ad102b85dd4ad2970df253388b475935d48
+Top:    2e4c0d441a2f3b1ce7007c61679306e6d64bd8b1
+Author: Sean Hefty <sean.hefty@intel.com>
+Date:   2012-12-06 23:34:31 -0800
+
+Refresh of udpong
+
+---
+
+diff --git a/examples/common.c b/examples/common.c
+index 43bfb6b..939f50c 100644
+--- a/examples/common.c
++++ b/examples/common.c
+@@ -45,6 +45,8 @@
+ #include <rdma/rdma_cma.h>
+ #include "common.h"
++int use_rs = 1;
++
+ int get_rdma_addr(char *src, char *dst, char *port,
+                 struct rdma_addrinfo *hints, struct rdma_addrinfo **rai)
+ {
+diff --git a/examples/common.h b/examples/common.h
+index ef0ea7b..37dc79e 100644
+--- a/examples/common.h
++++ b/examples/common.h
+@@ -35,8 +35,10 @@
+ #include <stdlib.h>
+ #include <sys/types.h>
+ #include <byteswap.h>
++#include <poll.h>
+ #include <rdma/rdma_cma.h>
++#include <rdma/rsocket.h>
+ #if __BYTE_ORDER == __BIG_ENDIAN
+ static inline uint64_t cpu_to_be64(uint64_t x) { return x; }
+@@ -46,6 +48,28 @@ static inline uint64_t cpu_to_be64(uint64_t x) { return bswap_64(x); }
+ static inline uint32_t cpu_to_be32(uint32_t x) { return bswap_32(x); }
+ #endif
++extern int use_rs;
++
++#define rs_socket(f,t,p)  use_rs ? rsocket(f,t,p)  : socket(f,t,p)
++#define rs_bind(s,a,l)    use_rs ? rbind(s,a,l)    : bind(s,a,l)
++#define rs_listen(s,b)    use_rs ? rlisten(s,b)    : listen(s,b)
++#define rs_connect(s,a,l) use_rs ? rconnect(s,a,l) : connect(s,a,l)
++#define rs_accept(s,a,l)  use_rs ? raccept(s,a,l)  : accept(s,a,l)
++#define rs_shutdown(s,h)  use_rs ? rshutdown(s,h)  : shutdown(s,h)
++#define rs_close(s)       use_rs ? rclose(s)       : close(s)
++#define rs_recv(s,b,l,f)  use_rs ? rrecv(s,b,l,f)  : recv(s,b,l,f)
++#define rs_send(s,b,l,f)  use_rs ? rsend(s,b,l,f)  : send(s,b,l,f)
++#define rs_recvfrom(s,b,l,f,a,al) \
++      use_rs ? rrecvfrom(s,b,l,f,a,al) : recvfrom(s,b,l,f,a,al)
++#define rs_sendto(s,b,l,f,a,al) \
++      use_rs ? rsendto(s,b,l,f,a,al)   : sendto(s,b,l,fa,al)
++#define rs_poll(f,n,t)          use_rs ? rpoll(f,n,t)    : poll(f,n,t)
++#define rs_fcntl(s,c,p)   use_rs ? rfcntl(s,c,p)   : fcntl(s,c,p)
++#define rs_setsockopt(s,l,n,v,ol) \
++      use_rs ? rsetsockopt(s,l,n,v,ol) : setsockopt(s,l,n,v,ol)
++#define rs_getsockopt(s,l,n,v,ol) \
++      use_rs ? rgetsockopt(s,l,n,v,ol) : getsockopt(s,l,n,v,ol)
++
+ union socket_addr {
+       struct sockaddr         sa;
+       struct sockaddr_in      sin;
+diff --git a/examples/rstream.c b/examples/rstream.c
+index fa7491c..617710e 100644
+--- a/examples/rstream.c
++++ b/examples/rstream.c
+@@ -45,7 +45,7 @@
+ #include <rdma/rdma_cma.h>
+ #include <rdma/rsocket.h>
+-include "common.h"
++#include "common.h"
+ struct test_size_param {
+       int size;
+@@ -80,7 +80,6 @@ enum rs_optimization {
+ };
+ static int rs, lrs;
+-static int use_rs = 1;
+ static int use_async;
+ static int verify;
+ static int flags = MSG_DONTWAIT;
+@@ -101,22 +100,6 @@ static char *src_addr;
+ static struct timeval start, end;
+ static void *buf;
+-#define rs_socket(f,t,p)  use_rs ? rsocket(f,t,p)  : socket(f,t,p)
+-#define rs_bind(s,a,l)    use_rs ? rbind(s,a,l)    : bind(s,a,l)
+-#define rs_listen(s,b)    use_rs ? rlisten(s,b)    : listen(s,b)
+-#define rs_connect(s,a,l) use_rs ? rconnect(s,a,l) : connect(s,a,l)
+-#define rs_accept(s,a,l)  use_rs ? raccept(s,a,l)  : accept(s,a,l)
+-#define rs_shutdown(s,h)  use_rs ? rshutdown(s,h)  : shutdown(s,h)
+-#define rs_close(s)       use_rs ? rclose(s)       : close(s)
+-#define rs_recv(s,b,l,f)  use_rs ? rrecv(s,b,l,f)  : recv(s,b,l,f)
+-#define rs_send(s,b,l,f)  use_rs ? rsend(s,b,l,f)  : send(s,b,l,f)
+-#define rs_poll(f,n,t)          use_rs ? rpoll(f,n,t)    : poll(f,n,t)
+-#define rs_fcntl(s,c,p)   use_rs ? rfcntl(s,c,p)   : fcntl(s,c,p)
+-#define rs_setsockopt(s,l,n,v,ol) \
+-      use_rs ? rsetsockopt(s,l,n,v,ol) : setsockopt(s,l,n,v,ol)
+-#define rs_getsockopt(s,l,n,v,ol) \
+-      use_rs ? rgetsockopt(s,l,n,v,ol) : getsockopt(s,l,n,v,ol)
+-
+ static void show_perf(void)
+ {
+       char str[32];
+diff --git a/examples/udpong.c b/examples/udpong.c
+index d29e584..4adec2f 100644
+--- a/examples/udpong.c
++++ b/examples/udpong.c
+@@ -45,6 +45,7 @@
+ #include <rdma/rdma_cma.h>
+ #include <rdma/rsocket.h>
++#include "common.h"
+ static int test_size[] = {
+       { 1 <<  6 },
+@@ -80,7 +81,6 @@ static struct client clients[256];
+ static int id;
+ static int rs;
+-static int use_rs = 1;
+ static int use_async;
+ static int flags = MSG_DONTWAIT;
+ static int poll_timeout;
+@@ -98,21 +98,6 @@ static socklen_t addrlen;
+ static struct timeval start, end;
+ static struct message msg;
+-#define rs_socket(f,t,p)  use_rs ? rsocket(f,t,p)  : socket(f,t,p)
+-#define rs_bind(s,a,l)    use_rs ? rbind(s,a,l)    : bind(s,a,l)
+-#define rs_connect(s,a,l) use_rs ? rconnect(s,a,l) : connect(s,a,l)
+-#define rs_close(s)       use_rs ? rclose(s)       : close(s)
+-#define rs_recvfrom(s,b,l,f,a,al) \
+-      use_rs ? rrecvfrom(s,b,l,f,a,al) : recvfrom(s,b,l,f,a,al)
+-#define rs_sendto(s,b,l,f,a,al) \
+-      use_rs ? rsendto(s,b,l,f,a,al)   : sendto(s,b,l,fa,al)
+-#define rs_poll(f,n,t)          use_rs ? rpoll(f,n,t)    : poll(f,n,t)
+-#define rs_fcntl(s,c,p)   use_rs ? rfcntl(s,c,p)   : fcntl(s,c,p)
+-#define rs_setsockopt(s,l,n,v,ol) \
+-      use_rs ? rsetsockopt(s,l,n,v,ol) : setsockopt(s,l,n,v,ol)
+-#define rs_getsockopt(s,l,n,v,ol) \
+-      use_rs ? rgetsockopt(s,l,n,v,ol) : getsockopt(s,l,n,v,ol)
+-
+ static void show_perf(void)
+ {
+       char str[32];