datapath: Refuse module load if an active bridge exists.
authorBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 18:13:01 +0000 (11:13 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 18:13:18 +0000 (11:13 -0700)
commitfb8dc8eff38ae583fa692111bd5b515e9e627f1d
tree02fbbf08dd2ead4bad47ea2427684dd1f8c4ce0b
parentf1f00e6d62a7425f2b2b4070f87858d6164504a1
datapath: Refuse module load if an active bridge exists.

Loading when an active bridge exists will cause an OOPS as soon as any
packet is received on a bridged interface, because the datapath will
attempt to interpret the bridge's "struct net_bridge_port" as a datapath
"struct net_bridge_port", which is completely wrong.
datapath/datapath.c
datapath/linux-2.6/compat-2.6/include/linux/netdevice.h