diff options
-rw-r--r-- | net/core/gen_estimator.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/core/gen_estimator.c b/net/core/gen_estimator.c index 86037d16f199..7ab9060bccd0 100644 --- a/net/core/gen_estimator.c +++ b/net/core/gen_estimator.c | |||
@@ -241,7 +241,7 @@ void gen_kill_estimator(struct gnet_stats_basic *bstats, | |||
241 | } | 241 | } |
242 | 242 | ||
243 | /** | 243 | /** |
244 | * gen_replace_estimator - replace rate estimator configruation | 244 | * gen_replace_estimator - replace rate estimator configuration |
245 | * @bstats: basic statistics | 245 | * @bstats: basic statistics |
246 | * @rate_est: rate estimator statistics | 246 | * @rate_est: rate estimator statistics |
247 | * @stats_lock: statistics lock | 247 | * @stats_lock: statistics lock |
@@ -252,13 +252,12 @@ void gen_kill_estimator(struct gnet_stats_basic *bstats, | |||
252 | * | 252 | * |
253 | * Returns 0 on success or a negative error code. | 253 | * Returns 0 on success or a negative error code. |
254 | */ | 254 | */ |
255 | int | 255 | int gen_replace_estimator(struct gnet_stats_basic *bstats, |
256 | gen_replace_estimator(struct gnet_stats_basic *bstats, | 256 | struct gnet_stats_rate_est *rate_est, |
257 | struct gnet_stats_rate_est *rate_est, spinlock_t *stats_lock, | 257 | spinlock_t *stats_lock, struct rtattr *opt) |
258 | struct rtattr *opt) | ||
259 | { | 258 | { |
260 | gen_kill_estimator(bstats, rate_est); | 259 | gen_kill_estimator(bstats, rate_est); |
261 | return gen_new_estimator(bstats, rate_est, stats_lock, opt); | 260 | return gen_new_estimator(bstats, rate_est, stats_lock, opt); |
262 | } | 261 | } |
263 | 262 | ||
264 | 263 | ||