netdev-vport: Properly initialize tnl_port_config structure to 0.
authorBen Pfaff <blp@nicira.com>
Tue, 7 Dec 2010 18:41:05 +0000 (10:41 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 7 Dec 2010 18:41:05 +0000 (10:41 -0800)
Otherwise the configuration starts out indeterminate and tends to be
rejected by the kernel.

Bug #4195.

lib/netdev-vport.c

index f0de376..f101b93 100644 (file)
@@ -438,6 +438,7 @@ parse_tunnel_config(const struct netdev_dev *dev, const struct shash *args,
     bool ipsec_ip_set = false;
     bool ipsec_mech_set = false;
 
+    memset(&config, 0, sizeof config);
     config.flags |= TNL_F_PMTUD;
     config.flags |= TNL_F_HDR_CACHE;