summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2014-03-19 13:14:39 +0100
committerRoland Dreier <roland@purestorage.com>2014-03-20 17:59:04 +0100
commitf8e819081f797df355cffbdedb9301ea50ae76b2 (patch)
treeaaeeac2a57f4c700227b8a9c157b1e44cbfe8ecd /drivers/infiniband
parentRDMA/cxgb4: Cap CQ size at T4_MAX_IQ_SIZE (diff)
downloadlinux-f8e819081f797df355cffbdedb9301ea50ae76b2.tar.xz
linux-f8e819081f797df355cffbdedb9301ea50ae76b2.zip
RDMA/cxgb4: Allow loopback connections
find_route() must treat loopback as a valid egress interface. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/cxgb4/cm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index d286bdebe2ab..360807eaffec 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -400,7 +400,8 @@ static struct dst_entry *find_route(struct c4iw_dev *dev, __be32 local_ip,
n = dst_neigh_lookup(&rt->dst, &peer_ip);
if (!n)
return NULL;
- if (!our_interface(dev, n->dev)) {
+ if (!our_interface(dev, n->dev) &&
+ !(n->dev->flags & IFF_LOOPBACK)) {
dst_release(&rt->dst);
return NULL;
}