diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-26 00:14:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-26 00:14:06 -0500 |
commit | c1b56878fb68e9c14070939ea4537ad4db79ffae (patch) | |
tree | 589f890f81e075380493905509244a0970d942f8 /include/net/gen_stats.h | |
parent | 71bcb09a57894fa35591ce93dd972065eeecb63a (diff) |
tc: policing requires a rate estimator
Found that while trying average rate policing, it was possible to
request average rate policing without a rate estimator. This results
in no policing which is harmless but incorrect.
Since policing could be setup in two steps, need to check
in the kernel.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/gen_stats.h')
-rw-r--r-- | include/net/gen_stats.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/gen_stats.h b/include/net/gen_stats.h index 8cd8185fa2ed..dcf5bfa7d4f1 100644 --- a/include/net/gen_stats.h +++ b/include/net/gen_stats.h | |||
@@ -45,5 +45,6 @@ extern void gen_kill_estimator(struct gnet_stats_basic *bstats, | |||
45 | extern int gen_replace_estimator(struct gnet_stats_basic *bstats, | 45 | extern int gen_replace_estimator(struct gnet_stats_basic *bstats, |
46 | struct gnet_stats_rate_est *rate_est, | 46 | struct gnet_stats_rate_est *rate_est, |
47 | spinlock_t *stats_lock, struct nlattr *opt); | 47 | spinlock_t *stats_lock, struct nlattr *opt); |
48 | extern int gen_estimator_active(const struct gnet_stats_rate_est *rate_est); | ||
48 | 49 | ||
49 | #endif | 50 | #endif |