mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[NET_SCHED]: sch_api: introduce constant for rate table size
Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1587bac49f
commit
5feb5e1aaa
2 changed files with 4 additions and 1 deletions
|
|
@ -244,7 +244,8 @@ struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, struct nlattr *ta
|
|||
}
|
||||
}
|
||||
|
||||
if (tab == NULL || r->rate == 0 || r->cell_log == 0 || nla_len(tab) != 1024)
|
||||
if (tab == NULL || r->rate == 0 || r->cell_log == 0 ||
|
||||
nla_len(tab) != TC_RTAB_SIZE)
|
||||
return NULL;
|
||||
|
||||
rtab = kmalloc(sizeof(*rtab), GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue