upcall: Remove datapath flows when setting n-threads.
authorJoe Stringer <joestringer@nicira.com>
Tue, 11 Feb 2014 21:55:36 +0000 (13:55 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 26 Feb 2014 00:21:05 +0000 (16:21 -0800)
commit147156847344c32840e489aad67873d6b927624c
treefc16239c4401a7cf4a0fe9f48f5268b040c2c08a
parent959cc796edfdd4e183d502d65deb4033bf48e7a8
upcall: Remove datapath flows when setting n-threads.

Previously, we would delete all ukeys when changing the number of
threads, but leave all flows in the datapath. This would cause
double-counting of stats for any flows that remain in the datapath. This
patch fixes the issue by ensuring that all flows are deleted from the
datapath before changing the number of threads.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-upcall.c
tests/ofproto-dpif.at