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
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
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.
>
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/
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
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
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