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

From: Jiri Pirko
Date: Wed Feb 01 2023 - 08:44:30 EST


Wed, Feb 01, 2023 at 02:24:39PM CET, taoyuan_eddy@xxxxxxxxxxx wrote:
>From: Eddy Tao <taoyuan_eddy@xxxxxxxxxxx>
>
>'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@xxxxxxxxxxx>

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

Thanks!