ipvs: optimize rates reading
authorJulian Anastasov <ja@ssi.bg>
Sun, 13 Mar 2011 23:41:54 +0000 (01:41 +0200)
committerSimon Horman <horms@verge.net.au>
Tue, 15 Mar 2011 00:36:53 +0000 (09:36 +0900)
  Move the estimator reading from estimation_timer to user
context. ip_vs_read_estimator() will be used to decode the rate
values. As the decoded rates are not set by estimation timer
there is no need to reset them in ip_vs_zero_stats.

  There is no need ip_vs_new_estimator() to encode stats
to rates, if the destination is in trash both the stats and the
rates are inactive.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>

No differences found