• Julian Anastasov's avatar
    ipvs: optimize rates reading · ea9f22cc
    Julian Anastasov authored
     	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: default avatarJulian Anastasov <ja@ssi.bg>
    Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
    ea9f22cc
ip_vs.h 38.9 KB