summaryrefslogtreecommitdiffstats
path: root/net/rds/bind.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2009-08-21 14:28:35 +0200
committerDavid S. Miller <davem@davemloft.net>2009-08-24 04:13:14 +0200
commitf2c449320d547bd5c281649eb1d99afb20765144 (patch)
treec08124ad81cd651db262c789af3f9702cee306c6 /net/rds/bind.c
parentRDS: Track transports via an array, not a list (diff)
downloadlinux-f2c449320d547bd5c281649eb1d99afb20765144.tar.xz
linux-f2c449320d547bd5c281649eb1d99afb20765144.zip
RDS: Add a debug message suggesting to load transport modules
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/bind.c')
-rw-r--r--net/rds/bind.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/rds/bind.c b/net/rds/bind.c
index c17cc39160ce..5d95fc007f1a 100644
--- a/net/rds/bind.c
+++ b/net/rds/bind.c
@@ -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;
}