]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of rstream-opt
authorSean Hefty <sean.hefty@intel.com>
Mon, 28 May 2012 09:06:56 +0000 (02:06 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 28 May 2012 09:06:56 +0000 (02:06 -0700)
examples/rstream.c

index 2a2e9372aa2fc86ccadaa362027ec56f19e80935..3a7f5109d217b870316cf5e0bc02908cac84801d 100644 (file)
@@ -365,11 +365,11 @@ static void set_options(int rs)
                              sizeof buffer_size);
                rs_setsockopt(rs, SOL_SOCKET, SO_RCVBUF, (void *) &buffer_size,
                              sizeof buffer_size);
-       } /* else if (optimization == opt_bandwidth) {
-               val = 1 << 20;
+       } else if (optimization == opt_bandwidth) {
+               val = 1 << 19;
                rs_setsockopt(rs, SOL_SOCKET, SO_SNDBUF, (void *) &val, sizeof val);
                rs_setsockopt(rs, SOL_SOCKET, SO_RCVBUF, (void *) &val, sizeof val);
-       } */
+       }
 
        val = 1;
        rs_setsockopt(rs, IPPROTO_TCP, TCP_NODELAY, (void *) &val, sizeof(val));