Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8e81908 authored by Steve Wise's avatar Steve Wise Committed by Roland Dreier
Browse files

RDMA/cxgb4: Allow loopback connections



find_route() must treat loopback as a valid egress interface.

Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent ffd43592
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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);
	n = dst_neigh_lookup(&rt->dst, &peer_ip);
	if (!n)
	if (!n)
		return NULL;
		return NULL;
	if (!our_interface(dev, n->dev)) {
	if (!our_interface(dev, n->dev) &&
	    !(n->dev->flags & IFF_LOOPBACK)) {
		dst_release(&rt->dst);
		dst_release(&rt->dst);
		return NULL;
		return NULL;
	}
	}