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

index 90980b60c8f71a874b5ff5e9dd90c193445e9a6b..a96a5a483df8721b3358c030636687d95ac79745 100644 (file)
@@ -365,6 +365,9 @@ static void set_options(int rs)
                size = sizeof buffer_size;
                rs_setsockopt(rs, SOL_SOCKET, SO_SNDBUF, (void *) &buffer_size, size);
                rs_setsockopt(rs, SOL_SOCKET, SO_RCVBUF, (void *) &buffer_size, size);
+       } else {
+               if (optimization == opt_bandwidth) {
+                       rs_setsockopt(rs, SOL_SOCKET, SO_SNDBUF, &val, sizeof val)
        }
 
        val = 1;