From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by dpdk.org (Postfix) with ESMTP id 57A67106A for ; Mon, 16 Jan 2017 15:18:49 +0100 (CET) Received: by mail-lf0-f53.google.com with SMTP id n124so15580619lfd.2 for ; Mon, 16 Jan 2017 06:18:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=i2wQ8fw8Fm86CSWiFEUOx7OXU1uQWd/oobCWvoobLmE=; b=dIGI5/nd+g77eUoJNwJmN+FW4Z2F0pDG6zChgRXE6BdFzYoXeEupYjY5Lv9gAqVmAx g5AGhm6bZ0OMjfFc3jd6JZL5aukqIcYWNqARBmObzcUzbYZb/+vLf2ihc8/QadQgDOgZ FwYZxLZ15P6+UhzOaPeziOHkxUYJdI8WanaGqUcGKSHTbo+voxVRHeNNLVibWNy6MKsk qYf/y7uDNLy/kVP2kzgHfVidqeM5hEKgpSTUQhNuxMog2YGPdLDB+R7KDXu2VO+2jRgD WSHSZ5silfi3fZU6aN7OrO+w23TouSdlJu1UQ5Jjrk3l7bHIdsdW0bzORjPbVGWT/x5i gyjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=i2wQ8fw8Fm86CSWiFEUOx7OXU1uQWd/oobCWvoobLmE=; b=KegKngeHc7Owx5PcfkE9zw2Uwe/KCtnnVtJL9vnNoETVpFYCbsncqK+6WxVpSWnTi0 t2x/fStKQOmY3CFS6wIroC2A4IaMs3PTlnmKIHS3QfanBpIYFLyaV7qcOfodRJh8a+an JaxMppb6GvWYvqzTZb3V3nSPLZBcIdrzNKVOYDPizBy9/dTgEs73ovxZDYeroYn5N9VD eL2pkFPiVB9a4hScX/woqOjrSW88WxBV9tWlVuZJcF3M+J7hg3O7jq/kC3SDYGXlICdg sQHJFaHvBMoxaVeUR0S6sJZQ9usSdL8pKFZmiIkOVCgqIS7tP+baqK357mT0Yt0BsTR3 bGTQ== X-Gm-Message-State: AIkVDXIM10LzMzgVNCDHOoQ4zqFZNJJTLcrsNIY56Gqg32lQsBN8ieMgDEB+cXj75OP73o+s X-Received: by 10.25.21.142 with SMTP id 14mr8236034lfv.138.1484576328952; Mon, 16 Jan 2017 06:18:48 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id r192sm7347600lfe.33.2017.01.16.06.18.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2017 06:18:48 -0800 (PST) From: Thomas Monjalon To: Maple Cc: dev@dpdk.org Date: Mon, 16 Jan 2017 15:18:47 +0100 Message-ID: <1982394.bHk3uHp29x@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <2017011619162170012425@raisecom.com> References: <2016122121181642100644@raisecom.com> <2017011619162170012425@raisecom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [dpdk-maintainers] Example(Load_balancer) Tx Flush Bug(This bug DPDK each version) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 14:18:49 -0000 Hi, Sorry if you feel your patch is ignored. It is not in the right format for several reasons we tried to explain earlier I think. Please read carefully this doc: http://dpdk.org/doc/guides/contributing/patches.html 2017-01-16 19:16, Maple: > From: Maple > To: ; > Cc: > Subject: [PATCH] Load_balancer Tx Flush Bug > Date: Mon, 16 Dec 2017 19:15:48 +0800 > Message-Id: <1482371868-19669-1-git-send-email-liujian@raisecom.com> > X-Mailer: git-send-email 1.9.1 > In-Reply-To: <2016122122394164225248@raisecom.com> > References: <2016122122394164225248@raisecom.com> > > We found a bug in use load_balancer example,and,This bug DPDK each version. > In IO tx flush, only flush port 0. > So,If I enable more than the Port,then,In addition to 0 port won't flush. > > Signed-off-by: Maple > --- > a/examples/load_balancer/runtime.c | 667 ++++++++++++++++++++++++++++++++++++ > b/examples/load_balancer/runtime.c | 669 +++++++++++++++++++++++++++++++++++++ > 2 files changed, 1336 insertions(+) > create mode 100644 a/examples/load_balancer/runtime.c > create mode 100644 b/examples/load_balancer/runtime.c > > diff --git a/examples/load_balancer/runtime.c b/examples/load_balancer/runtime.c > index 9612392..3a2e900 100644 > --- a/test/a/examples/load_balancer/runtime.c > +++ b/test/b/examples/load_balancer/runtime.c > @@ -418,9 +418,11 @@ app_lcore_io_tx( > static inline void > app_lcore_io_tx_flush(struct app_lcore_params_io *lp) > { > + uint8_t i; > uint8_t port; > > - for (port = 0; port < lp->tx.n_nic_ports; port ++) { > + port = lp->tx.nic_ports[0]; > + for (i = 0; i < lp->tx.n_nic_ports; i ++) { > uint32_t n_pkts; > > if (likely((lp->tx.mbuf_out_flush[port] == 0) || >