X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev.c;fp=lib%2Fnetdev.c;h=1bcd80ff765b71fe5f44f2d98aedf72d321c7b74;hb=da4a619179d6d6e9e6a82977c41cfcc2d1533ad8;hp=9aa6d27f7602b4ad9e389403fd22152ea57c049b;hpb=2ffe6042ad994ec5428922370052b0ed13923c9a;p=sliver-openvswitch.git diff --git a/lib/netdev.c b/lib/netdev.c index 9aa6d27f7..1bcd80ff7 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -24,6 +24,7 @@ #include #include +#include "connectivity.h" #include "coverage.h" #include "dpif.h" #include "dynamic-string.h" @@ -36,6 +37,7 @@ #include "openflow/openflow.h" #include "packets.h" #include "poll-loop.h" +#include "seq.h" #include "shash.h" #include "smap.h" #include "sset.h" @@ -331,6 +333,7 @@ netdev_open(const char *name, const char *type, struct netdev **netdevp) int old_ref_cnt; atomic_add(&rc->ref_cnt, 1, &old_ref_cnt); + seq_change(connectivity_seq_get()); } else { free(netdev->name); ovs_assert(list_is_empty(&netdev->saved_flags_list)); @@ -1500,18 +1503,6 @@ netdev_dump_queue_stats(const struct netdev *netdev, : EOPNOTSUPP); } -/* Returns a sequence number which indicates changes in one of 'netdev''s - * properties. The returned sequence will be nonzero so that callers have a - * value which they may use as a reset when tracking 'netdev'. - * - * The returned sequence number will change whenever 'netdev''s flags, - * features, ethernet address, or carrier changes. It may change for other - * reasons as well, or no reason at all. */ -unsigned int -netdev_change_seq(const struct netdev *netdev) -{ - return netdev->netdev_class->change_seq(netdev); -} /* Returns the class type of 'netdev'. *