]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
RDS: Add a debug message suggesting to load transport modules
authorAndy Grover <andy.grover@oracle.com>
Wed, 12 Aug 2009 22:43:08 +0000 (15:43 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 23:41:18 +0000 (16:41 -0700)
Now that RDS transports are no longer compiled-in to RDS core,
there is now the possibility that they will not be loaded. This
adds a helpful suggestion when rds_bind() fails to find a transport.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
net/rds/bind.c

index c17cc39160cefd86d44a8787a83824e5f06ce660..5d95fc007f1aa6244d500561ccc0324063cda221 100644 (file)
@@ -187,6 +187,9 @@ int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
        if (trans == NULL) {
                ret = -EADDRNOTAVAIL;
                rds_remove_bound(rs);
+               if (printk_ratelimit())
+                       printk(KERN_INFO "RDS: rds_bind() could not find a transport, "
+                               "load rds_tcp or rds_rdma?\n");
                goto out;
        }