datapath: backport: ovs/gre,geneve: fix error path when creating an iface
authorPravin B Shelar <pshelar@ovn.org>
Fri, 8 Jul 2016 23:37:23 +0000 (16:37 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Sat, 9 Jul 2016 02:27:50 +0000 (19:27 -0700)
commit7cecb9c90b53720a7eb70fde30305946ad41b51b
tree2c724e213fbe6678a735f395dadcf0853e741e8a
parent43038e799cf464b2e766fef0e15da326b6fbbdf8
datapath: backport: ovs/gre,geneve: fix error path when creating an iface

Upstream commit:
    commit 106da663ff495e0aea3ac15b8317aa410754fcac
    Author: Nicolas Dichtel <nicolas.dichtel@6wind.com>

    ovs/gre,geneve: fix error path when creating an iface

    After ipgre_newlink()/geneve_configure() call, the netdev is registered.

    Fixes: 7e059158d57b ("vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices")
CC: David Wragg <david@weave.works>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jesse Gross <jesse@kernel.org>
datapath/linux/compat/geneve.c
datapath/linux/compat/ip_gre.c