提交 4493b81b 编写于 作者: M Mahesh Bandewar 提交者: David S. Miller

bonding: initialize work-queues during creation of bond

Initializing work-queues every time ifup operation performed is unnecessary
and can be performed only once when the port is created.
Signed-off-by: NMahesh Bandewar <maheshb@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d5e73f7b
......@@ -3270,8 +3270,6 @@ static int bond_open(struct net_device *bond_dev)
}
}
bond_work_init_all(bond);
if (bond_is_lb(bond)) {
/* bond_alb_initialize must be called before the timer
* is started.
......@@ -4691,6 +4689,8 @@ int bond_create(struct net *net, const char *name)
netif_carrier_off(bond_dev);
bond_work_init_all(bond);
rtnl_unlock();
if (res < 0)
bond_destructor(bond_dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册