patch-2.4.25 linux-2.4.25/include/net/pkt_cls.h

Next file: linux-2.4.25/include/net/pkt_sched.h
Previous file: linux-2.4.25/include/net/irda/nsc-ircc.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/include/net/pkt_cls.h linux-2.4.25/include/net/pkt_cls.h
@@ -77,7 +77,11 @@
 	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);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)