netdev-vport: Do not update netdev when there is no config change.
authorAlex Wang <alexw@nicira.com>
Fri, 27 Mar 2015 00:35:32 +0000 (17:35 -0700)
committerAlex Wang <alexw@nicira.com>
Fri, 27 Mar 2015 16:23:37 +0000 (09:23 -0700)
commitaaa1c7a982cb5fb078650e377333fdb267b11136
tree12c3719dc77bd7dfd206ffc1b57bac9adc1657bb
parent4750c96bd0731e29dd8da04617c73a2b747ec85e
netdev-vport: Do not update netdev when there is no config change.

When there is any update from ovsdb, ovs will call netdev_set_config()
for every vport.  Even though the change is not related to vport, the
current implementation will always increment the per-netdev sequence
number.  Subsequently this could cause even more unwanted effects,
e.g. the recreation of 'struct tnl_port' in ofproto level.

This commit fixes the issue by only updating the netdev when there
is actual configuration change.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev-vport.c