[ovs-dev] [netdev 07/27] netdev-linux: Initialize change_seq for tap devices too.

Ben Pfaff blp at nicira.com
Thu Aug 1 21:29:30 UTC 2013


change_seq is supposed to always be nonzero but tap devices got this wrong.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/netdev-linux.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index 0baa40f..55f676a 100644
--- a/lib/netdev-linux.c
+++ b/lib/netdev-linux.c
@@ -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();
-- 
1.7.10.4




More information about the dev mailing list