From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0074.outbound.protection.outlook.com [157.56.110.74]) by dpdk.org (Postfix) with ESMTP id 92D042BA6 for ; Fri, 1 Apr 2016 14:18:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harmonic.onmicrosoft.com; s=selector1-harmonicinc-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pUWLY2BrxShOgv10W6wCh6FPChmHK9+VH6u7J9T4sjY=; b=T55xA4DVVxLmT81qk9RUyT+I3QO3R4etS/5Nm06ix76a+XpNPVloFHXSGJ/OmEoHmTkULYWSoLsit3naJBu5m+af24iLo1AVrhmAeVgdy0DLkMKmK7SE0XoZ5YK8DLPJA67r7jiT/l0Z0kMSlDxQGUhEJmYIPy6A2+2ksQv8ER4= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=harmonicinc.com; Received: from kms.harmonicinc.com (62.205.135.152) by CY1PR1101MB1050.namprd11.prod.outlook.com (10.165.3.10) with Microsoft SMTP Server (TLS) id 15.1.447.15; Fri, 1 Apr 2016 12:18:25 +0000 From: Vladyslav Buslov To: Date: Fri, 1 Apr 2016 15:16:59 +0300 Message-ID: <1459513019-3826-1-git-send-email-vladyslav.buslov@harmonicinc.com> X-Mailer: git-send-email 2.8.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [62.205.135.152] X-ClientProxiedBy: AM2PR02CA0032.eurprd02.prod.outlook.com (10.160.28.170) To CY1PR1101MB1050.namprd11.prod.outlook.com (10.165.3.10) X-MS-Office365-Filtering-Correlation-Id: bb4ba74e-fa5b-4b5e-8971-08d35a27ba08 X-Microsoft-Exchange-Diagnostics: 1; CY1PR1101MB1050; 2:dmC+xaILgunUfn7vMYgDht3/h8ajZsW6ZFWk5m5SdnoxJzKy+cAKDsz9g32g53Ie33GB4PhvxjtgcIcbeynt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yGT+G+XpERRn0tHW1frKuVcJGQOh1Wv77XTbzfXH7EjsQzxvBbxgLBY/S5EXFrz9pmW6cUr5jHymUCkqBrZ94anjj56vmrIf2R5th8OEtRkjAPKez9ciCklprGJ0R9G5WvVKkzG2IOaQCSLQVJJ8mv1kXdyx5O6jySA34THUmJArgSkIFxLCuPkQmtSeZmFAqSFmZDTcnhg0THW1Z8IgZwwFRj2hbs/BkvspzRMiNOOk2tSS+3P3JBFT4/QQE7jOpZb2QK3Rk4EmljbuKop0vEtZxcgmHQI9YuZ0Jcny/UE3sL0eFAv8RZnQ/Foj1Rr8siPi2bmHkWDPJNu4nb4/Dt9i6pIBxB5yL1+GtntRG2tIMn2nKGv; 4:Z/E8x/7pZMYGpXJwjs77X/ItU+GeIPgxiapfe+IOYcXZy79YHQ8iu4LqTMbTK5KfwGLdGtF2gkxo5rMaZecfDc/eF60rtVIdbegAMk9CaN+ZIwlhIfcA9uhhKl76ubLIojtxJROrXue6b5Y3ApxcJA7xGD8orpYv3QoxVg/bO7UIM/ppsADhlDSCpsap4/o9pL41NIjqKiYH16E05ep7rpttpHqFE39rZvJj0TyHQdz8ETzhMmh1GqOaCzuMBt3uY3xUidMmat1YXWm1idusGHqyiZFJnPBLJpp4f2MHWEOOktJ/y2le+1Qc2Ulh42hv8lOuDSwrTTzZ0MBOARLhDGGRxv2zgF5vd439j9XR03iFozuIMo689dQyFbJYxAso X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:CY1PR1101MB1050; BCL:0; PCL:0; RULEID:; SRVR:CY1PR1101MB1050; X-Forefront-PRVS: 0899B47777 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(77096005)(92566002)(47776003)(50226001)(66066001)(19580395003)(450100001)(19580405001)(2351001)(48376002)(81166005)(189998001)(36756003)(33646002)(551984002)(53416004)(229853001)(86362001)(1096002)(5004730100002)(50986999)(586003)(3846002)(5008740100001)(42186005)(50466002)(110136002)(107886002)(2906002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR1101MB1050; H:kms.harmonicinc.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1PR1101MB1050; 23:CnNbko+rOd7iFtmfXvDXjvNZcwUPqQs2pKOPmGt4k6wQO3rZnb+SDWkLAg6XuRIsYUC+vOayIVPt2qiL4/TRo+hAXg+IONZyuYy5c0UhzMwbtiqFqdV8xOXwWxVzdk2ECZI8rC69x8vfZS/xmrNAWMs64eMyRcZR8pzn1wCvWgf0uAGlWzT/jdQI4tgwMOfA7RBU35aT3CM9Lxousc3BTeR9GNH22Uzj90ncrvJSHId1AUXf8VVCOLtlRHpiHLL+LCDZoIgw5QoQ54f9HJqg86xz4xvfgXv7R2zrdweVUCP4uDsPpvpZt9zZdWmROIf0hE2cnnINLf9rg4Zwxxsc6epPXEqaltwGoFgamPV9PE6DodgeD/ljuEPyG4TihRsSe6Lfm/0S0Qd7IKko6R+2Dyi05P5NaIRZdyKRlYbqw3Sn3MG2dpWIAV9lOV5/MZ1X4WcgdCEQep9bXXd+hhMaQFo27C/vhHrwvo+jE24wsWlP8Ce0zrpG8eMWhVcBQZi1kyvyO9kCjuBsEEvFpGBZS7Cw3TGnoEC3q4a8D/+Ven8ARMJpT4JtR85if4/IROMDjKvpy2qHikLMpi2ft4rD0mOp7oOkCXOwcXHam+ULiL/U5Pq3m1IOAybEyGjIVRiPisvec/+3qveOd/0XhZYesxQIFZBsMlTfA4tdPhhaD059qcg5bd/Vq2buC+5gTZorkj5Ca9Ec+I4weaKDpcfOUEbBXLMAF6n4884RhucFvmvCW+6S0uBoLi9bIyP3i0v3np5pwuKs7+f8/VE9uStszkReNnoUPGHCNbqp72Jzn223kAqwYdg+smVLC97L9acQSAaOOhFPd0arZRYjP2p650uZHhLj3do5GIBAD6ITovOmGQJcv/tBRe0zNGO7uyqA X-Microsoft-Exchange-Diagnostics: 1; CY1PR1101MB1050; 5:Dr4QF/Y2lX1TQ6pozRO0/hOooScivdJprTwFVfs8ywzHlmKE4OMP7juqcjIPCDB9ATpKnqRYW1esqZMiY/hnl9Owo0Um0HRrNnbTSDzWcLuUs4Qf0AOUP70QJ4a0iBfBoH7mgpIRXundxwMugSA8Fg==; 24:UMvfN41IaYNNoF3cbV+ikFkX/WEj2jFeWvV+W9pV+c7ixWJNQvpoFzY4Z5sWAnyczXIMfsTS/HKS7DdzMUuW+cB1tTqBT6n3LLWmjyL9+iw=; 20:Rj6OfkHnUZvESwyR/EHVN9eKdZlvqLCheQVQO3SkbIjGPYHAQ4L3dI5oXjgwlGwaVLwx78675bdCLQvMZPgJfVZRQjgCsrnoGQ6ey+P+SvD4xB71jvRPeuhWzNdAHJWz9Up7h48CvvZsq2K7NFCvXfu91ltJDpkoyTkvxw+DQbA= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: harmonicinc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2016 12:18:25.5874 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR1101MB1050 Subject: [dpdk-dev] [PATCH] bonding: fix incorrect loop boundary condition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2016 12:18:28 -0000 Loop that calculates total number of tx descriptors in slave tx queues should iterate up to nb_tx_queues, not nb_rx_queues. Signed-off-by: Vladyslav Buslov --- 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 1b7e93a..c4448b7 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -890,7 +890,7 @@ bond_mode_8023ad_activate_slave(struct rte_eth_dev *bond_dev, uint8_t slave_id) /* The size of the mempool should be at least: * the sum of the TX descriptors + BOND_MODE_8023AX_SLAVE_TX_PKTS */ total_tx_desc = BOND_MODE_8023AX_SLAVE_TX_PKTS; - for (q_id = 0; q_id < bond_dev->data->nb_rx_queues; q_id++) { + for (q_id = 0; q_id < bond_dev->data->nb_tx_queues; q_id++) { bd_tx_q = (struct bond_tx_queue*)bond_dev->data->tx_queues[q_id]; total_tx_desc += bd_tx_q->nb_tx_desc; } -- 2.8.0