diff options
| author | Patrick McHardy <kaber@trash.net> | 2007-03-23 14:29:43 -0400 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:27:56 -0400 |
| commit | a48b5a61448899040dfbd2e0cd55b06a2bd2466c (patch) | |
| tree | b7efde642bde0eec3cb7171fdda38de349e409ff /include | |
| parent | 3bebcda28077375470dd60545b71bba2f83335fd (diff) | |
[NET_SCHED]: Unline tcf_destroy
Uninline tcf_destroy and add a helper function to destroy an entire filter
chain.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/sch_generic.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index a3f4ddd1d6a8..1b8e35197ebe 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h | |||
| @@ -177,14 +177,8 @@ extern void qdisc_tree_decrease_qlen(struct Qdisc *qdisc, unsigned int n); | |||
| 177 | extern struct Qdisc *qdisc_alloc(struct net_device *dev, struct Qdisc_ops *ops); | 177 | extern struct Qdisc *qdisc_alloc(struct net_device *dev, struct Qdisc_ops *ops); |
| 178 | extern struct Qdisc *qdisc_create_dflt(struct net_device *dev, | 178 | extern struct Qdisc *qdisc_create_dflt(struct net_device *dev, |
| 179 | struct Qdisc_ops *ops, u32 parentid); | 179 | struct Qdisc_ops *ops, u32 parentid); |
| 180 | 180 | extern void tcf_destroy(struct tcf_proto *tp); | |
| 181 | static inline void | 181 | extern void tcf_destroy_chain(struct tcf_proto *fl); |
| 182 | tcf_destroy(struct tcf_proto *tp) | ||
| 183 | { | ||
| 184 | tp->ops->destroy(tp); | ||
| 185 | module_put(tp->ops->owner); | ||
| 186 | kfree(tp); | ||
| 187 | } | ||
| 188 | 182 | ||
| 189 | static inline int __qdisc_enqueue_tail(struct sk_buff *skb, struct Qdisc *sch, | 183 | static inline int __qdisc_enqueue_tail(struct sk_buff *skb, struct Qdisc *sch, |
| 190 | struct sk_buff_head *list) | 184 | struct sk_buff_head *list) |
