brcompat: Remove requirement that that no datapaths exist at load time.
authorBen Pfaff <blp@nicira.com>
Fri, 7 Aug 2009 17:30:48 +0000 (10:30 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 7 Aug 2009 22:11:42 +0000 (15:11 -0700)
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.

datapath/brcompat.c

index 10b94f73a21f85e6dad7c3dcef1aff0ea3655d29..dfcc768e94d13ab54f50c7c85aeef10c391e4f04 100644 (file)
@@ -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);