Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278352
b: refs/heads/master
c: a58b61e
h: refs/heads/master
v: v3
  • Loading branch information
David Miller committed Dec 5, 2011
1 parent 4520cae commit 8c84443
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3786cf189f8b39cac870193368f9ad9f95fff9a4
refs/heads/master: a58b61e5b79bc9ce5f8d7b0cd03e8c6525c657f8
10 changes: 8 additions & 2 deletions trunk/drivers/scsi/cxgbi/libcxgbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ static struct cxgbi_sock *cxgbi_check_route(struct sockaddr *dst_addr)
struct net_device *ndev;
struct cxgbi_device *cdev;
struct rtable *rt = NULL;
struct neighbour *n;
struct flowi4 fl4;
struct cxgbi_sock *csk = NULL;
unsigned int mtu = 0;
Expand All @@ -493,7 +494,12 @@ static struct cxgbi_sock *cxgbi_check_route(struct sockaddr *dst_addr)
goto err_out;
}
dst = &rt->dst;
ndev = dst_get_neighbour_noref(dst)->dev;
n = dst_get_neighbour_noref(dst);
if (!n) {
err = -ENODEV;
goto rel_rt;
}
ndev = n->dev;

if (rt->rt_flags & (RTCF_MULTICAST | RTCF_BROADCAST)) {
pr_info("multi-cast route %pI4, port %u, dev %s.\n",
Expand All @@ -507,7 +513,7 @@ static struct cxgbi_sock *cxgbi_check_route(struct sockaddr *dst_addr)
ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr);
mtu = ndev->mtu;
pr_info("rt dev %s, loopback -> %s, mtu %u.\n",
dst_get_neighbour_noref(dst)->dev->name, ndev->name, mtu);
n->dev->name, ndev->name, mtu);
}

cdev = cxgbi_device_find_by_netdev(ndev, &port);
Expand Down

0 comments on commit 8c84443

Please sign in to comment.