netdev-linux: Initialize change_seq for tap devices too.
authorBen Pfaff <blp@nicira.com>
Fri, 26 Jul 2013 23:27:19 +0000 (16:27 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 2 Aug 2013 19:24:18 +0000 (12:24 -0700)
change_seq is supposed to always be nonzero but tap devices got this wrong.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-linux.c

index 0baa40f..55f676a 100644 (file)
@@ -650,6 +650,7 @@ netdev_linux_create_tap(const struct netdev_class *class OVS_UNUSED,
     int error;
 
     netdev = xzalloc(sizeof *netdev);
+    netdev->change_seq = 1;
     state = &netdev->state.tap;
 
     error = cache_notifier_ref();