dpif-netdev: Implement batched flow dumping.
authorRyan Wilson <wryan@nicira.com>
Mon, 23 Jun 2014 19:36:11 +0000 (12:36 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 25 Jun 2014 19:54:26 +0000 (12:54 -0700)
commit8bb113da32dd2aabcb958bb16941ba73ae4610b3
treec2c191a5ebd9cd5b10ec93e3ebc430cdb7144e1c
parent4eb58d341fb51c84ffd464e5a38c2e2d87023a08
dpif-netdev: Implement batched flow dumping.

Previously, flows were retrieved one by one when dumping flows for
datapaths of type 'netdev'. This increased contention for the dump's
mutex, negatively affecting revalidator performance.

This patch retrieves batches of flows when dumping flows for datapaths
of type 'netdev'.

Signed-off-by: Ryan Wilson <wryan@nicira.com>
[blp@nicira.com relaxed max_flows restriction]
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-netdev.c