lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ