[ovs-git] [openvswitch/ovs] a19083: netdev-vport: Do not update netdev when there is n...

GitHub noreply at github.com
Fri Mar 27 16:19:17 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: a19083996c4f7ec20d5f6abf8ea4e25157cf9820
      https://github.com/openvswitch/ovs/commit/a19083996c4f7ec20d5f6abf8ea4e25157cf9820
  Author: Alex Wang <alexw at nicira.com>
  Date:   2015-03-27 (Fri, 27 Mar 2015)

  Changed paths:
    M lib/netdev-vport.c

  Log Message:
  -----------
  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 at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>




More information about the git mailing list