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)
commit61501798a453f71733c0d4b478c45354c638e047
tree7fe8472da9b04a2af7acc8371d6f5da48a19c17b
parent045c0d1a77ae0592658f69ce071018ef32938253
ofproto: Use netdev's 'change_seq' to reduce port modification check.

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>
ofproto/ofproto-provider.h
ofproto/ofproto.c