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

2023-02-01 Thread Ilya Maximets
On 2/1/23 07:33, taoyuan_e...@hotmail.com wrote: > From: eddytaoyuan > > '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

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

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

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

2023-01-31 Thread 0-day Robot
Bleep bloop. Greetings yuan tao, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the failed

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

2023-01-31 Thread taoyuan_eddy
From: eddytaoyuan '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 This submission is for 2.17 LTS only.

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

2023-01-31 Thread 0-day Robot
Bleep bloop. Greetings yuan tao, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the failed

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

2023-01-31 Thread taoyuan_eddy
From: eddytaoyuan Signed-off-by: eddytaoyuan --- datapath/flow.c | 6 +++--- datapath/flow.h | 2 +- datapath/flow_table.c | 28 +--- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/datapath/flow.c b/datapath/flow.c index