From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 07EA82C2B for ; Thu, 23 Feb 2017 03:03:40 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Feb 2017 18:03:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,197,1484035200"; d="scan'208";a="51566910" Received: from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.188]) by orsmga002.jf.intel.com with ESMTP; 22 Feb 2017 18:03:34 -0800 From: Zhiyong Yang To: dev@dpdk.org Cc: sergio.gonzalez.monroy@intel.com, Zhiyong Yang Date: Thu, 23 Feb 2017 10:00:58 +0800 Message-Id: <1487815258-58112-1-git-send-email-zhiyong.yang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] l2fwd_fork: fix missing updating the prev_tsc 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: Thu, 23 Feb 2017 02:03:41 -0000 To miss updating the variable prev_tsc in function l2fwd_main_loop() The patch fixes it. Fixes:e2366e74e029("examples: use buffered Tx") CC: sergio.gonzalez.monroy@intel.com Signed-off-by: Zhiyong Yang --- examples/multi_process/l2fwd_fork/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/multi_process/l2fwd_fork/main.c b/examples/multi_process/l2fwd_fork/main.c index 2d951d9..6052c84 100644 --- a/examples/multi_process/l2fwd_fork/main.c +++ b/examples/multi_process/l2fwd_fork/main.c @@ -672,6 +672,8 @@ l2fwd_main_loop(void) port_statistics[portid].tx += sent; } + + prev_tsc = cur_tsc; } /* -- 2.7.4