From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 8C48D567F for ; Tue, 2 May 2017 11:36:39 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 May 2017 02:36:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,404,1488873600"; d="scan'208";a="1163483236" Received: from yliu-dev.sh.intel.com ([10.239.67.162]) by fmsmga002.fm.intel.com with ESMTP; 02 May 2017 02:36:38 -0700 From: Yuanhan Liu To: Andriy Berestovskyy Cc: Yuanhan Liu , dpdk stable Date: Tue, 2 May 2017 17:32:24 +0800 Message-Id: <1493717548-12434-23-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1493717548-12434-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1493717548-12434-1-git-send-email-yuanhan.liu@linux.intel.com> Subject: [dpdk-stable] patch 'examples/load_balancer: fix Tx flush' has been queued to LTS release 16.11.2 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: Tue, 02 May 2017 09:36:40 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/07/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 82803d1d77f5e3c68f99130e4ebde7d2302bdb55 Mon Sep 17 00:00:00 2001 From: Andriy Berestovskyy Date: Thu, 27 Apr 2017 11:27:54 +0200 Subject: [PATCH] examples/load_balancer: fix Tx flush [ upstream commit 509f35d4c48434ec5a4a8b60342bf633eea69062 ] Port ID is not an index from 0 to n_nic_ports, but rather a value of nic_ports array. Fixes: af75078fece3 ("first public release") Signed-off-by: Andriy Berestovskyy --- examples/load_balancer/runtime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/load_balancer/runtime.c b/examples/load_balancer/runtime.c index 6944325..ed63fc9 100644 --- a/examples/load_balancer/runtime.c +++ b/examples/load_balancer/runtime.c @@ -418,10 +418,12 @@ static inline void app_lcore_io_tx_flush(struct app_lcore_params_io *lp) { uint8_t port; + uint32_t i; - for (port = 0; port < lp->tx.n_nic_ports; port ++) { + for (i = 0; i < lp->tx.n_nic_ports; i++) { uint32_t n_pkts; + port = lp->tx.nic_ports[i]; if (likely((lp->tx.mbuf_out_flush[port] == 0) || (lp->tx.mbuf_out[port].n_mbufs == 0))) { lp->tx.mbuf_out_flush[port] = 1; -- 1.9.0