Sabrina Dubroca 889ce937c9 vxlan: correctly set vxlan->net when creating the device in a netns
Commit a985343ba906 ("vxlan: refactor verification and application of
configuration") modified vxlan device creation, and replaced the
assignment of vxlan->net to src_net with dev_net(netdev) in ->setup().

But dev_net(netdev) is not the same as src_net. At the time ->setup()
is called, dev_net hasn't been set yet, so we end up creating the
socket for the vxlan device in init_net.

Fix this by bringing back the assignment of vxlan->net during device
creation.

Fixes: a985343ba906 ("vxlan: refactor verification and application of configuration")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-07-03 02:04:10 -07:00
..
2017-06-14 16:48:03 -07:00
2017-05-04 19:15:35 -07:00
2017-06-18 08:51:35 +09:00
2017-05-05 19:33:07 -07:00
2017-07-01 14:30:39 -07:00
2017-06-19 14:24:41 -04:00
2017-04-20 09:54:24 +02:00
2017-06-27 17:44:05 -06:00
2017-05-09 10:01:15 -07:00
2017-06-16 17:30:44 +09:00
2017-05-04 19:15:35 -07:00
2017-05-18 23:54:47 -07:00
2017-05-05 11:36:44 -07:00
2017-06-09 09:59:51 -07:00