summaryrefslogtreecommitdiff
path: root/lib/lacp.c
diff options
context:
space:
mode:
authorJoe Stringer <joestringer@nicira.com>2013-12-13 03:33:46 +0000
committerEthan Jackson <ethan@nicira.com>2013-12-12 15:03:19 -0800
commitda4a619179d6d6e9e6a82977c41cfcc2d1533ad8 (patch)
tree22fd2aa4e22f381d2a0861be943a317629aa04c5 /lib/lacp.c
parent2ffe6042ad994ec5428922370052b0ed13923c9a (diff)
downloadopenvswitch-da4a619179d6d6e9e6a82977c41cfcc2d1533ad8.tar.gz
netdev: Globally track port status changes
Previously, we tracked status changes for ofports on a per-device basis. Each time in the main thread's loop, we would inspect every ofport to determine whether the status had changed for corresponding devices. This patch replaces the per-netdev change_seq with a global 'struct seq' which tracks status change for all ports. In the average case where ports are not constantly going up or down, this allows us to check the sequence once per main loop and not poll any ports. In the worst case, execution is expected to be similar to how it is currently. In a test environment of 5000 internal ports and 50 tunnel ports with bfd, this reduces average CPU usage of the main thread from about 40% to about 35%. Signed-off-by: Joe Stringer <joestringer@nicira.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/lacp.c')
0 files changed, 0 insertions, 0 deletions