[PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-27 Thread Manish Kurup
The VLAN action maintains one set of stats across all cores, and uses a spinlock to synchronize updates to it from the same. Changed this to use a per-CPU stats context instead. This change will result in better performance. Acked-by: Jamal Hadi Salim Acked-by: Jiri Pirko Signed-off-by: Manish K

[PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-26 Thread Manish Kurup
The VLAN action maintains one set of stats across all cores, and uses a spinlock to synchronize updates to it from the same. Changed this to use a per-CPU stats context instead. This change will result in better performance. Signed-off-by: Manish Kurup --- net/sched/act_vlan.c | 10 ++ 1

Re: [PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-11 Thread Jiri Pirko
Wed, Oct 11, 2017 at 04:32:27AM CEST, kurup.man...@gmail.com wrote: >The VLAN action maintains one set of stats across all cores, and uses a >spinlock to synchronize updates to it from the same. Changed this to use a >per-CPU stats context instead. >This change will result in better performance. >

Re: [E] Re: [PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-11 Thread Jiri Pirko
From: Jamal Hadi Salim [mailto:j...@mojatatu.com] >Sent: Wednesday, October 11, 2017 8:28 AM >To: Manish Kurup; xiyou.wangc...@gmail.com; j...@resnulli.us; >da...@davemloft.net; netdev@vger.kernel.org >Cc: ar...@mojatatu.com; m...@mojatatu.com; Kurup, Manish B >Subject: [E] Re: [PATCH net-next 1/

RE: [E] Re: [PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-11 Thread Kurup, Manish B
om; j...@resnulli.us; da...@davemloft.net; netdev@vger.kernel.org Cc: ar...@mojatatu.com; m...@mojatatu.com; Kurup, Manish B Subject: [E] Re: [PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats minus lk On 17-10-10 10:32 PM, Manish Kurup wrote: > The VLAN action maintains on

Re: [PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-11 Thread Jamal Hadi Salim
minus lk On 17-10-10 10:32 PM, Manish Kurup wrote: The VLAN action maintains one set of stats across all cores, and uses a spinlock to synchronize updates to it from the same. Changed this to use a per-CPU stats context instead. This change will result in better performance. Signed-off-by: Mani

[PATCH net-next 1/2] net sched act_vlan: Change stats update to use per-core stats

2017-10-10 Thread Manish Kurup
The VLAN action maintains one set of stats across all cores, and uses a spinlock to synchronize updates to it from the same. Changed this to use a per-CPU stats context instead. This change will result in better performance. Signed-off-by: Manish Kurup --- net/sched/act_vlan.c | 10 ++ 1