aboutsummaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-08-07 10:30:48 -0700
committerBen Pfaff <blp@nicira.com>2009-08-07 15:11:42 -0700
commit6dac2b9ed9d77a92f53258f694117fa8b989aacb (patch)
treeb7efb56595260bc5a5dbe14c1ce45f37bbdb283c /datapath
parent35c979bff42010f54842d00bec8836f1d3f30545 (diff)
brcompat: Remove requirement that that no datapaths exist at load time.
We previously required that brcompat_mod be loaded before any datapaths were created, because creation and destruction of datapaths and ports differed when brcompat_mod was loaded, but the latter is no longer the case so there is no reason for the former anymore.
Diffstat (limited to 'datapath')
-rw-r--r--datapath/brcompat.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/datapath/brcompat.c b/datapath/brcompat.c
index 10b94f73..dfcc768e 100644
--- a/datapath/brcompat.c
+++ b/datapath/brcompat.c
@@ -515,21 +515,10 @@ error:
static int
__init brc_init(void)
{
- int i;
int err;
printk("Open vSwitch Bridge Compatibility, built "__DATE__" "__TIME__"\n");
- rcu_read_lock();
- for (i=0; i<ODP_MAX; i++) {
- if (get_dp(i)) {
- rcu_read_unlock();
- printk(KERN_EMERG "brcompat: no datapaths may exist!\n");
- return -EEXIST;
- }
- }
- rcu_read_unlock();
-
/* Set the bridge ioctl handler */
brioctl_set(brc_ioctl_deviceless_stub);