Re: [PATCH v2 1/1] net: openvswitch: reduce cpu_used_mask memory

Jiri Pirko
2023-02-01T13:44:28Z

Wed, Feb 01, 2023 at 02:24:39PM CET, taoyuan_eddy@hotmail.com wrote:
>From: Eddy Tao <taoyuan_eddy@hotmail.com>
>
>'struct cpumask cpu_used_mask' is embedded in struct sw_flow.
>However, its size is hardcoded to CONFIG_NR_CPUS bits, which can be
>8192 by default, it costs memory and slows down ovs_flow_alloc.
>This fix uses actual CPU number instead
>
>Signed-off-by: Eddy Tao <taoyuan_eddy@hotmail.com>

Eddy, looks like you missed my second comment to v1. Could you please
check again?

Thanks!