netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pkt_sched: pedit use proper struct
@ 2009-10-11 14:21 jamal
  2009-10-12  6:04 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: jamal @ 2009-10-11 14:21 UTC (permalink / raw)
  To: davem; +Cc: netdev

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

This probably deserves to go into -stable. 

cheers,
jamal

[-- Attachment #2: patch-pedit --]
[-- Type: text/plain, Size: 847 bytes --]

commit 6debfdb8e600da8216399d182d6e52f1629c6b22
Author: Jamal Hadi Salim <hadi@cyberus.ca>
Date:   Sun Oct 11 10:07:03 2009 -0400

    [PATCH] pkt_sched: pedit use proper struct
    
    Pedit will reject a policy that is large because it
    uses the wrong structure in the policy validation.
    This fixes it.
    
    Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>

diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c
index 96c0ed1..6b0359a 100644
--- a/net/sched/act_pedit.c
+++ b/net/sched/act_pedit.c
@@ -34,7 +34,7 @@ static struct tcf_hashinfo pedit_hash_info = {
 };
 
 static const struct nla_policy pedit_policy[TCA_PEDIT_MAX + 1] = {
-	[TCA_PEDIT_PARMS]	= { .len = sizeof(struct tcf_pedit) },
+	[TCA_PEDIT_PARMS]	= { .len = sizeof(struct tc_pedit) },
 };
 
 static int tcf_pedit_init(struct nlattr *nla, struct nlattr *est,

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

* Re: [PATCH] pkt_sched: pedit use proper struct
  2009-10-11 14:21 [PATCH] pkt_sched: pedit use proper struct jamal
@ 2009-10-12  6:04 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-10-12  6:04 UTC (permalink / raw)
  To: hadi; +Cc: netdev

From: jamal <hadi@cyberus.ca>
Date: Sun, 11 Oct 2009 10:21:38 -0400

> This probably deserves to go into -stable. 

Applied, thanks Jamal, I'll queue this up for -stable.

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

end of thread, other threads:[~2009-10-12  6:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-11 14:21 [PATCH] pkt_sched: pedit use proper struct jamal
2009-10-12  6:04 ` David 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).