From mboxrd@z Thu Jan 1 00:00:00 1970 From: "zhangsha (A)" Subject: [PATCH] bond: update the NTT flag when partner's state changes from slow to fast Date: Mon, 22 May 2017 06:40:38 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "declan.doherty@intel.com" , "pawelx.wodkowski@intel.com" , "Lilijun (Jerry)" , caihe To: "dev@dpdk.org" Return-path: Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by dpdk.org (Postfix) with ESMTP id 986BD23B for ; Mon, 22 May 2017 08:40:48 +0200 (CEST) Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >>From eddd395916002cca1c2f83a01d368b95295f2adf Mon Sep 17 00:00:00 2001 From: Sha Zhang Date: Mon, 22 May 2017 14:33:37 +0800 Subject: [PATCH] bond: update the NTT flag when partner's state changes fro= m slow to fast 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 sl= ow. Signed-off-by: Sha Zhang --- 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/bondin= g/rte_eth_bond_8023ad.c index 7b863d6..742fd44 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -435,7 +435,7 @@ * In other case (was fast a= nd now it is slow) just switch * timeout to slow without f= orcing send of LACP (because standard * say so)*/ - if (!is_partner_fast) + if (is_partner_fast) SM_FLAG_SET(= port, NTT); } else return; /* Nothing changed *= / -- 1.8.3.1