From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 50E481B1B4 for ; Wed, 24 Jan 2018 16:37:45 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 070E6223B5; Wed, 24 Jan 2018 10:37:45 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:37:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=3vWkXMWhTQHXs3v+h g/u7CwLwDh1dnQMIdvTXkDfk1E=; b=sVGG2IeI5YxI8m/NlWSGU1FtGK4An4ZdW /SwqB7m+O8iM6Y72y+amVYNRNOi2nuld5I2Pfc+qrYz27j2dCHZKJtISGNmiz8Jg CzyRUCK0r9eocPk3pHhNyyiMWWHxhkojQa3BsRpyiKgoQc0XIqpFDMGC6KUwwioP 3g2BMVVbUx63x0jWK5gnYaLWrOFxWz5fg542cgrRW+SI5xprCr2NVgtYHkr/ombV ty3IB3SG+E26zeiU70eKv1hbegifcSYEyoj5HGcHDcTWEWw9jXXk0xFy3mLXH1QR Z6hTULNmHDSzbbMg/YMOu4nrspVgTLOcPSWXo94MU1U3TVot/h8sQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=3vWkXMWhTQHXs3v+hg/u7CwLwDh1dnQMIdvTXkDfk1E=; b=qq0mFEVs iBPL0hunglfWTt51d+UsDQynJRuoH/fTM9OWvqNTsVoJVYlngJsIHYROfRnCeQQR RFabNSG1TFZKnkuC/PszqE9AddiEi998E/gy8B/sLX8vQu1+sgNyVFE8DnyE8SRP 6kss9Rt6WQZqEmQ8TX0wrGI9gPkyAHMQviQw3bADj1Fq49BnIWX6/192e5nCxH6W LDTGDwSVR70cRaC6+OKoWP0OEy7mR1ed5mQ6wS2VXEz21grvh020l9uSqyBEjfsb dOV/gcMFG52/mx3+I8vcjydTpEJ3cEeLLNKFEjifDWWqdMUHkt2obJNRyI/f+lnf w9UAabchPaG9pw== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 884317E3D4; Wed, 24 Jan 2018 10:37:42 -0500 (EST) From: Yuanhan Liu To: Jerry Lilijun Cc: Kyle Larose , Declan Doherty , dpdk stable Date: Wed, 24 Jan 2018 23:31:51 +0800 Message-Id: <1516808026-25523-43-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/bonding: fix activated slave in 8023ad mode' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:37:45 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 12cd8fb9a71903c79cbeeae82208cbbbac5535d8 Mon Sep 17 00:00:00 2001 From: Jerry Lilijun Date: Mon, 20 Nov 2017 07:15:41 +0000 Subject: [PATCH] net/bonding: fix activated slave in 8023ad mode [ upstream commit 7a25826fc14b2b012f734a215bdef4acadac1f7a ] In the function bond_mode_8023ad_enable(), the var i is used as slave port id to the function bond_mode_8023ad_activate_slave(). This variable is only a index for array internals->active_slaves. So its need to be fixed and change i to internals->active_slaves[i]. Fixes: 46fb43683679 ("bond: add mode 4") Signed-off-by: Jerry Lilijun Tested-by: Kyle Larose Acked-by: Declan Doherty --- drivers/net/bonding/rte_eth_bond_8023ad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index eee9e50..1351808 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -1173,7 +1173,8 @@ bond_mode_8023ad_enable(struct rte_eth_dev *bond_dev) uint8_t i; for (i = 0; i < internals->active_slave_count; i++) - bond_mode_8023ad_activate_slave(bond_dev, i); + bond_mode_8023ad_activate_slave(bond_dev, + internals->active_slaves[i]); return 0; } -- 2.7.4