LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

Re: [RFC PATCHv2 2/4] ipvs: use kthreads for stats estimation

To: Jiri Wiesner <jwiesner@xxxxxxx>
Subject: Re: [RFC PATCHv2 2/4] ipvs: use kthreads for stats estimation
Cc: Simon Horman <horms@xxxxxxxxxxxx>, lvs-devel@xxxxxxxxxxxxxxx, yunhong-cgl jiang <xintian1976@xxxxxxxxx>, dust.li@xxxxxxxxxxxxxxxxx
From: Julian Anastasov <ja@xxxxxx>
Date: Fri, 9 Sep 2022 01:46:45 +0300 (EEST)
        Hello,

On Fri, 9 Sep 2022, Julian Anastasov wrote:

> +add_est:
> +     ktid = kd->id;
> +     /* add_row points after the row we should use */
> +     crow = READ_ONCE(kd->add_row) - 1;
> +     if (crow < 0)
> +             crow = IPVS_EST_NTICKS - 1;
> +     row = crow;
> +     if (crow) {

        OK, not fatal but this should be

        if (crow < IPVS_EST_NTICKS - 1) {

> +             crow++;
> +             row = find_last_bit(kd->avail, crow);
> +     }
> +     if (row >= crow)
> +             row = find_last_bit(kd->avail, IPVS_EST_NTICKS);
> +

Regards

--
Julian Anastasov <ja@xxxxxx>


<Prev in Thread] Current Thread [Next in Thread>