Skip to content

Commit 4493b81

Browse files
Mahesh Bandewardavem330
authored andcommitted
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: Mahesh Bandewar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d5e73f7 commit 4493b81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/bonding/bond_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,8 +3270,6 @@ static int bond_open(struct net_device *bond_dev)
32703270
}
32713271
}
32723272

3273-
bond_work_init_all(bond);
3274-
32753273
if (bond_is_lb(bond)) {
32763274
/* bond_alb_initialize must be called before the timer
32773275
* is started.
@@ -4691,6 +4689,8 @@ int bond_create(struct net *net, const char *name)
46914689

46924690
netif_carrier_off(bond_dev);
46934691

4692+
bond_work_init_all(bond);
4693+
46944694
rtnl_unlock();
46954695
if (res < 0)
46964696
bond_destructor(bond_dev);

0 commit comments

Comments
 (0)