]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
udaddy: Remove support for port space IB
authorSean Hefty <sean.hefty@intel.com>
Mon, 27 Jan 2014 19:30:34 +0000 (11:30 -0800)
committerSean Hefty <sean.hefty@intel.com>
Mon, 27 Jan 2014 19:30:34 +0000 (11:30 -0800)
UD support for the IB port space requires that the application
use rdma_create_ep, rather than rdma_create_id.  However, using
rdma_create_ep results in address and route resolution being
performed synchronously as part of the rdma_create_ep call.
Since udaddy is an example, we want to show how it can be used
with asynchronous events.  So, rather than update udaddy to
use rdma_create_ep in order to support the IB port space, it
would be better to remove that support.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
examples/udaddy.c

index 031b0b6becd27ebd4fc2ba09fe17889eb41a18c4..6e6894482830694e26e672014ae1969a96514426 100644 (file)
@@ -642,9 +642,7 @@ int main(int argc, char **argv)
                        }
                        break;
                case 'P':
-                       if (!strncasecmp("ib", optarg, 2)) {
-                               hints.ai_port_space = RDMA_PS_IB;
-                       } else if (!strncasecmp("ipoib", optarg, 5)) {
+                       if (!strncasecmp("ipoib", optarg, 5)) {
                                hints.ai_port_space = RDMA_PS_IPOIB;
                        } else if (strncasecmp("udp", optarg, 3)) {
                                fprintf(stderr, "Warning: unknown port space format\n");
@@ -657,7 +655,7 @@ int main(int argc, char **argv)
                        printf("\t[-f address_format]\n");
                        printf("\t    name, ip, ipv6, or gid\n");
                        printf("\t[-P port_space]\n");
-                       printf("\t    udp, ipoib, or ib\n");
+                       printf("\t    udp or ipoib\n");
                        printf("\t[-c connections]\n");
                        printf("\t[-C message_count]\n");
                        printf("\t[-S message_size]\n");