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:25:05 +0000 (11:25 -0800)
commitc2e49e3f650245fc04715bce527d95e682075623
tree29e4dd1c99a1b705a20b9a9eef40803900ed1580
parente2279381e1082c857d21ac5d5bab971e0a5d45d6
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