netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cls patchlet
@ 2004-10-03 19:52 jamal
  2004-10-03 20:12 ` Resend WAS(Re: " jamal
  0 siblings, 1 reply; 5+ messages in thread
From: jamal @ 2004-10-03 19:52 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 76 bytes --]

Dave,

resets class when tc_classid non-zero.

Please apply.

cheers,
jamal

[-- Attachment #2: classfix_p --]
[-- Type: text/plain, Size: 921 bytes --]

--- a/net/sched/cls_u32.c	2004-08-14 01:36:33.000000000 -0400
+++ b/net/sched/cls_u32.c	2004-10-01 08:29:48.000000000 -0400
@@ -178,6 +178,7 @@
 					int pol_res = tcf_action_exec(skb, n->action);
 					if (skb->tc_classid > 0) {
 						res->classid = skb->tc_classid;
+						res->class = 0;
 						skb->tc_classid = 0;
 					}
 
--- /usr/src/269-rc3-mod/net/sched/cls_fw.c	2004/10/01 12:36:06	1.1
+++ /usr/src/269-rc3-mod/net/sched/cls_fw.c	2004/10/01 14:22:30
@@ -103,6 +103,12 @@
 #endif
                                if (f->action) {
                                        int pol_res = tcf_action_exec(skb, f->action);
+					if (skb->tc_classid > 0) {
+						res->classid = skb->tc_classid;
+						res->class = 0;
+						skb->tc_classid = 0;
+					}
+
                                        if (pol_res >= 0)
                                                return pol_res;
                                } else

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-03 22:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-03 19:52 cls patchlet jamal
2004-10-03 20:12 ` Resend WAS(Re: " jamal
2004-10-03 22:12   ` David S. Miller
2004-10-03 22:22     ` jamal
2004-10-03 22:22       ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).