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:56 +0000 (11:25 -0800)
commit803d3046195327acbab7101b1a4fefcc14d98942
tree1d755cef2b024446ffa41d0013ca26b024984673
parent3f4b2f7bcdc1a934aa6fa5e415c545a723729b4d
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