From 4aca87515a5083ae0e31ce3177189fd43b6d05ac Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 3 Jan 2015 13:58:15 +0100 Subject: patch to Vanilla Tomato 1.28 --- release/src/linux/linux/include/net/pkt_cls.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'release/src/linux/linux/include/net/pkt_cls.h') diff --git a/release/src/linux/linux/include/net/pkt_cls.h b/release/src/linux/linux/include/net/pkt_cls.h index cb2bde23..0926f823 100644 --- a/release/src/linux/linux/include/net/pkt_cls.h +++ b/release/src/linux/linux/include/net/pkt_cls.h @@ -77,7 +77,11 @@ static inline int tc_classify(struct sk_buff *skb, struct tcf_proto *tp, struct return -1; } - +static inline void tcf_destroy(struct tcf_proto *tp) +{ + tp->ops->destroy(tp); + kfree(tp); +} extern int register_tcf_proto_ops(struct tcf_proto_ops *ops); extern int unregister_tcf_proto_ops(struct tcf_proto_ops *ops); -- cgit v1.2.3-54-g00ecf