From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] bonding: re-evaluate force_primary when the primary slave name changes Date: Thu, 07 Jun 2018 16:54:07 -0400 (EDT) Message-ID: <20180607.165407.1134875337657297314.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: yuxiangning@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:34356 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932516AbeFGUyL (ORCPT ); Thu, 7 Jun 2018 16:54:11 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: 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 > set to true to make sure the primary becomes the active slave. > > Signed-off-by: Xiangning Yu Applied and queued up for -stable.