Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278349
b: refs/heads/master
c: c4be62a
h: refs/heads/master
i:
  278347: 8be4b76
v: v3
  • Loading branch information
David Miller committed Dec 5, 2011
1 parent aaa5484 commit 14b5162
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 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: a4757123aeadf450b5b3c5f51f214660e20477f3
refs/heads/master: c4be62a4d27cf4170c2e0eca5a4f8d6fa84d85e4
18 changes: 15 additions & 3 deletions trunk/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,11 @@ static int is_offloading(struct net_device *dev)

static void cxgb_neigh_update(struct neighbour *neigh)
{
struct net_device *dev = neigh->dev;
struct net_device *dev;

if (!neigh)
return;
dev = neigh->dev;
if (dev && (is_offloading(dev))) {
struct t3cdev *tdev = dev2t3cdev(dev);

Expand Down Expand Up @@ -1107,15 +1110,24 @@ static void set_l2t_ix(struct t3cdev *tdev, u32 tid, struct l2t_entry *e)
static void cxgb_redirect(struct dst_entry *old, struct dst_entry *new)
{
struct net_device *olddev, *newdev;
struct neighbour *n;
struct tid_info *ti;
struct t3cdev *tdev;
u32 tid;
int update_tcb;
struct l2t_entry *e;
struct t3c_tid_entry *te;

olddev = dst_get_neighbour_noref(old)->dev;
newdev = dst_get_neighbour_noref(new)->dev;
n = dst_get_neighbour_noref(old);
if (!n)
return;
olddev = n->dev;

n = dst_get_neighbour_noref(new);
if (!n)
return;
newdev = n->dev;

if (!is_offloading(olddev))
return;
if (!is_offloading(newdev)) {
Expand Down

0 comments on commit 14b5162

Please sign in to comment.