From patchwork Fri Nov 7 12:22:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Doherty, Declan" X-Patchwork-Id: 1200 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 20E537F74; Fri, 7 Nov 2014 13:13:53 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id CA6077F51 for ; Fri, 7 Nov 2014 13:13:43 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 07 Nov 2014 04:21:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,332,1413270000"; d="scan'208";a="604086302" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 07 Nov 2014 04:23:13 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id sA7CNCun002844; Fri, 7 Nov 2014 12:23:12 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id sA7CNCTj007631; Fri, 7 Nov 2014 12:23:12 GMT Received: (from dwdohert@localhost) by sivswdev02.ir.intel.com with id sA7CNCXv007627; Fri, 7 Nov 2014 12:23:12 GMT From: Declan Doherty To: dev@dpdk.org Date: Fri, 7 Nov 2014 12:22:53 +0000 Message-Id: <1415362978-6306-4-git-send-email-declan.doherty@intel.com> X-Mailer: git-send-email 1.7.12.2 In-Reply-To: <1415362978-6306-1-git-send-email-declan.doherty@intel.com> References: <1413291597-27326-1-git-send-email-declan.doherty@intel.com> <1415362978-6306-1-git-send-email-declan.doherty@intel.com> Subject: [dpdk-dev] [PATCH v6 3/8] bond: fix naming inconsistency in tx_burst_round_robin 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Declan Doherty --- lib/librte_pmd_bond/rte_eth_bond_pmd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/librte_pmd_bond/rte_eth_bond_pmd.c b/lib/librte_pmd_bond/rte_eth_bond_pmd.c index f2fe930..6e770af 100644 --- a/lib/librte_pmd_bond/rte_eth_bond_pmd.c +++ b/lib/librte_pmd_bond/rte_eth_bond_pmd.c @@ -93,7 +93,7 @@ static uint16_t bond_ethdev_tx_burst_round_robin(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) { - struct bond_dev_private *dev_private; + struct bond_dev_private *internals; struct bond_tx_queue *bd_tx_q; struct rte_mbuf *slave_bufs[RTE_MAX_ETHPORTS][nb_pkts]; @@ -108,13 +108,13 @@ bond_ethdev_tx_burst_round_robin(void *queue, struct rte_mbuf **bufs, int i, cs_idx = 0; bd_tx_q = (struct bond_tx_queue *)queue; - dev_private = bd_tx_q->dev_private; + internals = bd_tx_q->dev_private; /* Copy slave list to protect against slave up/down changes during tx * bursting */ - num_of_slaves = dev_private->active_slave_count; - memcpy(slaves, dev_private->active_slaves, - sizeof(dev_private->active_slaves[0]) * num_of_slaves); + num_of_slaves = internals->active_slave_count; + memcpy(slaves, internals->active_slaves, + sizeof(internals->active_slaves[0]) * num_of_slaves); if (num_of_slaves < 1) return num_tx_total;