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:21:22 +0000 (09:21 -0700)
commita19083996c4f7ec20d5f6abf8ea4e25157cf9820
treebfbe1ffd8b23270733111ab0428d1a5cb219a311
parentc1ddf0915c4ebdf8626d9fbeb91fab8e7719cd9a
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