]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of addrtype
authorSean Hefty <sean.hefty@intel.com>
Fri, 31 Aug 2012 21:47:35 +0000 (14:47 -0700)
committerSean Hefty <sean.hefty@intel.com>
Fri, 31 Aug 2012 21:47:35 +0000 (14:47 -0700)
examples/cmatose.c
man/ucmatose.1

index c00d28fb517937a5d4c037071c3089bac14e07ee..167f509bc556161501919e54ff3f6bdae9827b9d 100644 (file)
@@ -641,7 +641,7 @@ int main(int argc, char **argv)
        int op, ret;
 
        hints.ai_port_space = RDMA_PS_TCP;
-       while ((op = getopt(argc, argv, "s:b:f:c:C:S:t:p:m")) != -1) {
+       while ((op = getopt(argc, argv, "s:b:f:P:c:C:S:t:p:m")) != -1) {
                switch (op) {
                case 's':
                        dst_addr = optarg;
@@ -655,11 +655,17 @@ int main(int argc, char **argv)
                        } else if (!strncasecmp("gid", optarg, 3)) {
                                hints.ai_flags = RAI_NUMERICHOST | RAI_FAMILY;
                                hints.ai_family = AF_IB;
-                               hints.ai_port_space = RDMA_PS_IB;
                        } else if (strncasecmp("name", optarg, 4)) {
                                fprintf(stderr, "Warning: unknown address format\n");
                        }
                        break;
+               case 'P':
+                       if (!strncasecmp("ib", optarg, 2)) {
+                               hints.ai_port_space = RDMA_PS_IB;
+                       } else if (strncasecmp("tcp", optarg, 3)) {
+                               fprintf(stderr, "Warning: unknown port space format\n");
+                       }
+                       break;
                case 'c':
                        connections = atoi(optarg);
                        break;
@@ -685,6 +691,8 @@ int main(int argc, char **argv)
                        printf("\t[-b bind_address]\n");
                        printf("\t[-f address_format]\n");
                        printf("\t    name, ip, ipv6, or gid\n");
+                       printf("\t[-P port_space]\n");
+                       printf("\t    tcp or ib\n");
                        printf("\t[-c connections]\n");
                        printf("\t[-C message_count]\n");
                        printf("\t[-S message_size]\n");
index baf5837f657b09796bad3f70ff8aabbcd7b2523f..95dc2d612737fea5929879f462f7cc26ccb424d3 100644 (file)
@@ -4,9 +4,11 @@ ucmatose \- RDMA CM connection and simple ping-pong test.
 .SH SYNOPSIS
 .sp
 .nf
-\fIucmatose\fR [-s server_address] [-b bind_address] [-f address_format]
+\fIucmatose\fR [-s server_address] [-b bind_address]
+               [-f address_format] [-P port_space]
                [-c connections] [-C message_count] [-S message_size]
-\fIucmatose\fR -s server_address [-b bind_address] [-f address_format]
+\fIucmatose\fR -s server_address [-b bind_address]
+               [-f address_format] [-P port_space]
                [-c connections] [-C message_count] [-S message_size] [-t tos]
 .fi
 .SH "DESCRIPTION"
@@ -29,6 +31,11 @@ address, or an IPv6 address.  This option may be used to indicate that
 a specific address format has been provided.  Supported address_format
 values are: name, ip, ipv6, and gid.
 .TP
+\-P port_space
+Specifies the port space for the connection.  Be default, the port space
+is the RDMA TCP port space. (Note that the RDMA port space may be separate
+from that used for IP.)  Supported port_space values are: tcp and ib.
+.TP
 \-c connections
 The number of connections to establish between the client and server.
 (default 1)