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:01:54 +0000 (16:01 -0800)
commite96a5c24e853c005c62937c1826d4dac8d8c009a
tree5851ae43d25c83254df372b0d4256c7342d19432
parente4b79342001c74b829afde60f060a9ae2e95d340
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