[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241031023408.31008-1-chengyechun1@huawei.com>
Date: Thu, 31 Oct 2024 10:34:08 +0800
From: chengyechun <chengyechun1@...wei.com>
To: <netdev@...r.kernel.org>, <j.vosburgh@...il.com>, <andy@...yhouse.net>
CC: <vfalico@...il.com>
Subject: [PATCH] enable port after switch
After switching the best aggregator,
change the backup value of the corresponding slave node to 0
Signed-off-by: chengyechun <chengyechun1@...wei.com>
---
drivers/net/bonding/bond_3ad.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c
index b19e0e41b..b07e42950 100644
--- a/drivers/net/bonding/bond_3ad.c
+++ b/drivers/net/bonding/bond_3ad.c
@@ -1830,6 +1830,8 @@ static void ad_agg_selection_logic(struct aggregator *agg,
__disable_port(port);
}
}
+ port = best->lag_ports;
+ __enable_port(port);
/* Slave array needs update. */
*update_slave_arr = true;
}
--
2.33.0
Powered by blists - more mailing lists