Re: [PATCH] ipvs: Use flexible array for MH lookup table
From: Julian Anastasov
Date: Fri May 22 2026 - 13:13:22 EST
Hello,
On Mon, 18 May 2026, Rosen Penev wrote:
> Store the Maglev hash lookup table in the scheduler state
> allocation instead of allocating it separately.
>
> This keeps the lookup table tied to the RCU-freed state lifetime and
> simplifies the allocation and cleanup paths.
>
> Assisted-by: Codex:GPT-5.5
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Thanks for the efforts but it is better to keep the table
allocated separately. As Sashiko [1] points out, the table size is
properly selected and we risk double-sized allocations if we apply
this patch.
As for the problem in ip_vs_edit_service(), I have to
provide separate bugfix...
[1]:
https://sashiko.dev/#/patchset/20260519015506.634185-1-rosenp%40gmail.com
Regards
--
Julian Anastasov <ja@xxxxxx>