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
-  Lines: 13
-  Date:
2004-02-18 05:36:32.000000000 -0800
-  Orig file: 
linux-2.4.24/include/net/pkt_cls.h
-  Orig date: 
2000-09-18 15:04:13.000000000 -0700
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)