netem: define NETEM_DIST_MAX
Rather than magic constant in code, expose the maximum size of packet distribution table in API. In iproute2, q_netem defines MAX_DIST as 16K already. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6373a9a286
commit
df173bda26
2 changed files with 2 additions and 1 deletions
|
|
@ -495,6 +495,7 @@ struct tc_netem_corrupt {
|
|||
};
|
||||
|
||||
#define NETEM_DIST_SCALE 8192
|
||||
#define NETEM_DIST_MAX 16384
|
||||
|
||||
/* DRR */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue