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

2023-02-01 Thread Jiri Pirko
Wed, Feb 01, 2023 at 02:24:39PM CET, taoyuan_e...@hotmail.com wrote: >From: Eddy Tao > >'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

[ovs-dev] [PATCH v2 1/1] net: openvswitch: reduce cpu_used_mask memory

2023-02-01 Thread taoyuan_eddy
From: Eddy Tao '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 ---