mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user