]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Per cpu flow stats.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 30 Oct 2013 00:22:21 +0000 (17:22 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 6 Jan 2014 23:52:24 +0000 (15:52 -0800)
commitea3c88b53a8523840d0b69feb509b79fff895bca
treed2f4452ed7a4ec42a212690ac2633b006c1e10c0
parent1399620ee6f9d995c809c4879df5218cba843aa3
openvswitch: Per cpu flow stats.

With mega flow implementation ovs flow can be shared between
multiple CPUs which makes stats updates highly contended
operation. This patch uses per-CPU stats in cases where a flow
is likely to be shared (if there is a wildcard in the 5-tuple
and therefore likely to be spread by RSS). In other situations,
it uses the current strategy, saving memory and allocation time.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c
net/openvswitch/flow.c
net/openvswitch/flow.h
net/openvswitch/flow_netlink.c
net/openvswitch/flow_netlink.h
net/openvswitch/flow_table.c
net/openvswitch/flow_table.h