datapath: Enforce mutual exclusion between bridge and brcompat_mod.
authorBen Pfaff <blp@nicira.com>
Tue, 17 Jan 2012 19:15:49 +0000 (11:15 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 17 Jan 2012 19:27:01 +0000 (11:27 -0800)
commit781788ced916f84317334f5d03eeaa66d117f2e1
treecf89fe1da646b7fcb2a11ac5bcd9348745ba1c0c
parentd962ebc5dfaf63fb932940ab29d986876ff0749e
datapath: Enforce mutual exclusion between bridge and brcompat_mod.

In kernels 2.6.36, Open vSwitch can (and does) safely coexist with the
Linux bridge module, but it does not make sense to load both bridge and
brcompat_mod at the same time.  Until now, nothing has prevented both from
loading; when they both load, confusion (at best) results.  This fixes
the problem by enforcing mutual exclusion.

Bug #9226.
Launchpad bug #917309.
Reported-by: Rogério Vinhal Nunes
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/brcompat.c
datapath/compat.h
datapath/vport-netdev.c