ofproto: Use netdev's 'change_seq' to reduce port modification check.
authorAlex Wang <alexw@nicira.com>
Thu, 3 Apr 2014 17:07:20 +0000 (10:07 -0700)
committerAlex Wang <alexw@nicira.com>
Thu, 10 Apr 2014 19:55:28 +0000 (12:55 -0700)
This commit uses the 'change_seq' in 'struct netdev' to determine
whether to update the 'ofport'.  This helps eliminate unnecessary
update.

In the experiment of configuring 5K internal port, there is neither
observable configuration overhead nor additional cpu consumption
after configuration finishes.  When one internal port state is
flapped every 0.3 second, this commit reduces the cpu utilization
of ovs-vswitchd thread from 40 to 12.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>

No differences found