Re: Question about force_primary in bonding driver

2018-06-06 Thread David Miller
From: Xiangning Yu Date: Wed, 6 Jun 2018 03:18:23 -0700 > diff --git a/drivers/net/bonding/bond_options.c > b/drivers/net/bonding/bond_options.c > index 58c705f..b594bae 100644 > --- a/drivers/net/bonding/bond_options.c > +++ b/drivers/net/bonding/bond_options.c > @@ -1142,6 +1142,7 @@ static int

Question about force_primary in bonding driver

2018-06-06 Thread Xiangning Yu
Hi netdev folks, While playing with bonding active-standby mode, we found a possible timing issue that the primary might not initialized in bond_enslave(): if (bond_uses_primary(bond) && bond->params.primary[0]) { /* if there is a primary slave, remember it */