]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: fix hangup on vxlan/gre/geneve device deletion
authorPaolo Abeni <pabeni@redhat.com>
Tue, 1 Dec 2015 17:33:36 +0000 (18:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 19:29:25 +0000 (14:29 -0500)
commita162aadd7ac9a89639a6d6373ee0ce89c1251962
tree86b2fe0c37663a516936295bf695a6894d5b33c1
parentf4a76d76a007fa039a85601cf0be33a3fb778285
openvswitch: fix hangup on vxlan/gre/geneve device deletion

Each openvswitch tunnel vport (vxlan,gre,geneve) holds a reference
to the underlying tunnel device, but never released it when such
device is deleted.
Deleting the underlying device via the ip tool cause the kernel to
hangup in the netdev_wait_allrefs() loop.
This commit ensure that on device unregistration dp_detach_port_notify()
is called for all vports that hold the device reference, properly
releasing it.

Fixes: 8f83206ada5e ("openvswitch: Use regular VXLAN net_device device")
Fixes: 973c028dc0dd ("openvswitch: Use regular GRE net_device instead of vport")
Fixes: c8201ab160eb ("openvswitch: Use Geneve device.")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/dp_notify.c
net/openvswitch/vport-netdev.c