From 95efa3cd649163094a7b0536d0a01d68f4267d3a Mon Sep 17 00:00:00 2001 From: Sha Zhang Date: Mon, 22 May 2017 15:52:11 +0800 Subject: [PATCH] net/bonding: fix when NTT flag updated According to the standard, state machine of LACP should transmit lacpdu when partner's state changes from slow to fast, rather than from fast to slow. Fixes: 46fb43683679 ("bond: add mode 4") Cc: stable@dpdk.org Signed-off-by: Sha Zhang Acked-by: Declan Doherty --- drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index d2b75927cf..8d296fad67 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -435,7 +435,7 @@ periodic_machine(struct bond_dev_private *internals, uint8_t slave_id) * In other case (was fast and now it is slow) just switch * timeout to slow without forcing send of LACP (because standard * say so)*/ - if (!is_partner_fast) + if (is_partner_fast) SM_FLAG_SET(port, NTT); } else return; /* Nothing changed */ -- 2.20.1