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;
} 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;
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");
.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"
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)