Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103604
b: refs/heads/master
c: 15b458f
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jul 18, 2008
1 parent 550ccf4 commit ad21cca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 55dbc640c31db373fa07eb1e3af9b8eadbdf80db
refs/heads/master: 15b458fa65cbba395724a99ab1b7d3785ca76c1c
12 changes: 7 additions & 5 deletions trunk/net/sched/cls_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ static __inline__ int route4_fastmap_hash(u32 id, int iif)
}

static inline
void route4_reset_fastmap(struct net_device *dev, struct route4_head *head, u32 id)
void route4_reset_fastmap(struct Qdisc *q, struct route4_head *head, u32 id)
{
qdisc_lock_tree(dev);
spinlock_t *root_lock = qdisc_root_lock(q);

spin_lock_bh(root_lock);
memset(head->fastmap, 0, sizeof(head->fastmap));
qdisc_unlock_tree(dev);
spin_unlock_bh(root_lock);
}

static inline void
Expand Down Expand Up @@ -302,7 +304,7 @@ static int route4_delete(struct tcf_proto *tp, unsigned long arg)
*fp = f->next;
tcf_tree_unlock(tp);

route4_reset_fastmap(qdisc_dev(tp->q), head, f->id);
route4_reset_fastmap(tp->q, head, f->id);
route4_delete_filter(tp, f);

/* Strip tree */
Expand Down Expand Up @@ -500,7 +502,7 @@ static int route4_change(struct tcf_proto *tp, unsigned long base,
}
tcf_tree_unlock(tp);

route4_reset_fastmap(qdisc_dev(tp->q), head, f->id);
route4_reset_fastmap(tp->q, head, f->id);
*arg = (unsigned long)f;
return 0;

Expand Down

0 comments on commit ad21cca

Please sign in to comment.