Skip to content

Commit

Permalink
netdev-dummy: change netdev seq on ip address change.
Browse files Browse the repository at this point in the history
tnl-port monitors netdev change using netdev sequence number.
So to propagate ip address change we need to change netdev seq-no.

Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
pshelar committed Mar 24, 2016
1 parent b23ddcc commit d2b11b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/netdev-dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ netdev_dummy_set_in4(struct netdev *netdev_, struct in_addr address,
ovs_mutex_lock(&netdev->mutex);
netdev->address = address;
netdev->netmask = netmask;
netdev_change_seq_changed(netdev_);
ovs_mutex_unlock(&netdev->mutex);

return 0;
Expand All @@ -800,6 +801,7 @@ netdev_dummy_set_in6(struct netdev *netdev_, struct in6_addr *in6,
ovs_mutex_lock(&netdev->mutex);
netdev->ipv6 = *in6;
netdev->ipv6_mask = *mask;
netdev_change_seq_changed(netdev_);
ovs_mutex_unlock(&netdev->mutex);

return 0;
Expand Down

0 comments on commit d2b11b5

Please sign in to comment.