ofproto-dpif: Only run bundles when lacp or bonds are enabled
authorJoe Stringer <joestringer@nicira.com>
Fri, 13 Dec 2013 03:33:48 +0000 (03:33 +0000)
committerEthan Jackson <ethan@nicira.com>
Fri, 13 Dec 2013 00:41:33 +0000 (16:41 -0800)
commite2d13c430a5c648852369e4ce6808053eb076e5b
treeec81323407e1b445b73fc49d2be3cef1265923ac
parent30fbc7b61c3ba9ad66b9974f266ec8dd41b09291
ofproto-dpif: Only run bundles when lacp or bonds are enabled

When dealing with a large number of ports, bundle_run() and
bundle_wait() add significant unnecessary processing to the main run
loop, even when there are no bonds and lacp is not configured. This
patch skips such execution if it is unneeded, reducing average CPU usage
of the main thread from about 25% to about 20% in a test environment of
5000 internal ports and 50 tunnel ports running bfd.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c