upcall: Cache the number of flows from the datapath.
authorJoe Stringer <joestringer@nicira.com>
Wed, 22 Jan 2014 06:50:49 +0000 (06:50 +0000)
committerEthan Jackson <ethan@nicira.com>
Tue, 21 Jan 2014 23:45:44 +0000 (15:45 -0800)
commitbe556da0566016729da90bae39868752438fed7b
tree5a6d74fc5f23123a9658392919ee649bc140ee03
parent7c3968eea4986d745f636ba61fb7d05fb1952a03
upcall: Cache the number of flows from the datapath.

Fetching the number of flows in the datapath has been causing
unnecessary contention on the kernel ovs_lock in recent TCP CRR tests.
This patch caches this number for up to 100ms in the userspace to reduce
such kernel calls.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Co-authored-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off--by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif-upcall.c