* [PATCH] net_sched: use __TCA_HTB_MAX and TCA_HTB_MAX
@ 2010-09-30 16:17 Changli Gao
2010-10-09 16:23 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Changli Gao @ 2010-09-30 16:17 UTC (permalink / raw)
To: Jamal Hadi Salim; +Cc: David S. Miller, netdev, Changli Gao
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
---
net/sched/sch_htb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index 4be8d04..87d9449 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -1302,14 +1302,14 @@ static int htb_change_class(struct Qdisc *sch, u32 classid,
struct htb_class *cl = (struct htb_class *)*arg, *parent;
struct nlattr *opt = tca[TCA_OPTIONS];
struct qdisc_rate_table *rtab = NULL, *ctab = NULL;
- struct nlattr *tb[TCA_HTB_RTAB + 1];
+ struct nlattr *tb[__TCA_HTB_MAX];
struct tc_htb_opt *hopt;
/* extract all subattrs from opt attr */
if (!opt)
goto failure;
- err = nla_parse_nested(tb, TCA_HTB_RTAB, opt, htb_policy);
+ err = nla_parse_nested(tb, TCA_HTB_MAX, opt, htb_policy);
if (err < 0)
goto failure;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net_sched: use __TCA_HTB_MAX and TCA_HTB_MAX
2010-09-30 16:17 [PATCH] net_sched: use __TCA_HTB_MAX and TCA_HTB_MAX Changli Gao
@ 2010-10-09 16:23 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-10-09 16:23 UTC (permalink / raw)
To: xiaosuo; +Cc: hadi, netdev
From: Changli Gao <xiaosuo@gmail.com>
Date: Fri, 1 Oct 2010 00:17:44 +0800
> Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-09 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 16:17 [PATCH] net_sched: use __TCA_HTB_MAX and TCA_HTB_MAX Changli Gao
2010-10-09 16:23 ` 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).