[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090502204320.6332.39868.stgit@fritz>
Date: Sat, 02 May 2009 13:43:20 -0700
From: Robert Love <robert.w.love@...el.com>
To: hadi@...erus.ca, netdev@...r.kernel.org
Cc: davem@...emloft.net, robert.w.love@...el.com,
jeffrey.t.kirsher@...el.com
Subject: [PATCH] net: Only store high 16 bits of kernel generated filter
priorities
The kernel should only be using the high 16 bits of a kernel
generated priority. Filter priorities in all other cases only
use the upper 16 bits of the u32 'prio' field of 'struct tcf_proto',
but when the kernel generates the priority of a filter is saves all
32 bits which can result in incorrect lookup failures when a filter
needs to be deleted or modified.
Signed-off-by: Robert Love <robert.w.love@...el.com>
---
net/sched/cls_api.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 173fcc4..0759f32 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -254,7 +254,7 @@ replay:
}
tp->ops = tp_ops;
tp->protocol = protocol;
- tp->prio = nprio ? : tcf_auto_prio(*back);
+ tp->prio = nprio ? : TC_H_MAJ(tcf_auto_prio(*back));
tp->q = q;
tp->classify = tp_ops->classify;
tp->classid = parent;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists