![]() |
lvs-devel
|
| 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> |
|---|---|---|
| ||
| Previous by Date: | [RFC PATCHv2 2/4] ipvs: use kthreads for stats estimation, Julian Anastasov |
|---|---|
| Next by Date: | Re: [RFC PATCHv2 0/4] ipvs: Use kthreads for stats, Jiri Wiesner |
| Previous by Thread: | [RFC PATCHv2 2/4] ipvs: use kthreads for stats estimation, Julian Anastasov |
| Next by Thread: | Re: [RFC PATCHv2 0/4] ipvs: Use kthreads for stats, Jiri Wiesner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |