datapath: Backport: openvswitch: properly refcount vport-vxlan module
authorPravin B Shelar <pshelar@nicira.com>
Tue, 8 Dec 2015 02:23:19 +0000 (18:23 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 8 Dec 2015 17:48:22 +0000 (09:48 -0800)
commitf07995ef94c582946e8c28ccbae1b525bfaea7ed
tree431bc8f186299abe90fe544887a2d46a44ea6a6c
parent1e41fa16f0e4342473a3642286b8aa7d887d3dde
datapath: Backport: openvswitch: properly refcount vport-vxlan module

Upstream commit:
    After 614732eaa12d, no refcount is maintained for the vport-vxlan module.
    This allows the userspace to remove such module while vport-vxlan
    devices still exist, which leads to later oops.

    v1 -> v2:
     - move vport 'owner' initialization in ovs_vport_ops_register()
       and make such function a macro

    Fixes: 614732eaa12d ("openvswitch: Use regular VXLAN net_device device")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Upstream: 83e4bf7a74 ("openvswitch: properly refcount vport-vxlan
module").
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@kernel.org>
datapath/vport-geneve.c
datapath/vport-gre.c
datapath/vport-lisp.c
datapath/vport-stt.c
datapath/vport.c
datapath/vport.h