Re: [PATCH net] bonding: re-evaluate force_primary when the primary slave name changes

2018-06-07 Thread David Miller
From: Xiangning Yu Date: Thu, 7 Jun 2018 13:39:59 +0800 > From: Xiangning Yu > > There is a timing issue under active-standy mode, when bond_enslave() is > called, bond->params.primary might not be initialized yet. > > Any time the primary slave string changes, bond->force_primary should be >

[PATCH net] bonding: re-evaluate force_primary when the primary slave name changes

2018-06-06 Thread Xiangning Yu
From: Xiangning Yu There is a timing issue under active-standy mode, when bond_enslave() is called, bond->params.primary might not be initialized yet. Any time the primary slave string changes, bond->force_primary should be set to true to make sure the primary becomes the active slave. Signed-o