DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] l2fwd_fork: fix missing updating the prev_tsc
@ 2017-02-23  2:00 Zhiyong Yang
  2017-04-28  9:23 ` Yang, Zhiyong
  2017-05-01 14:31 ` Thomas Monjalon
  0 siblings, 2 replies; 3+ messages in thread
From: Zhiyong Yang @ 2017-02-23  2:00 UTC (permalink / raw)
  To: dev; +Cc: sergio.gonzalez.monroy, Zhiyong Yang

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 <zhiyong.yang@intel.com>
---
 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] l2fwd_fork: fix missing updating the prev_tsc
  2017-02-23  2:00 [dpdk-dev] [PATCH] l2fwd_fork: fix missing updating the prev_tsc Zhiyong Yang
@ 2017-04-28  9:23 ` Yang, Zhiyong
  2017-05-01 14:31 ` Thomas Monjalon
  1 sibling, 0 replies; 3+ messages in thread
From: Yang, Zhiyong @ 2017-04-28  9:23 UTC (permalink / raw)
  To: dev, ;thomas@monjalon.net; +Cc: Gonzalez Monroy, Sergio

Hi,  Thomas:
	The patch is always not noticed by anyone.
Could  it be applied to 17.05 ?  it indeed is a bug.

Thanks
Zhiyong

> -----Original Message-----
> From: Yang, Zhiyong
> Sent: Thursday, February 23, 2017 10:01 AM
> To: dev@dpdk.org
> Cc: Gonzalez Monroy, Sergio <sergio.gonzalez.monroy@intel.com>; Yang,
> Zhiyong <zhiyong.yang@intel.com>
> Subject: [PATCH] l2fwd_fork: fix missing updating the prev_tsc
> 
> 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 <zhiyong.yang@intel.com>
> ---
>  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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] l2fwd_fork: fix missing updating the prev_tsc
  2017-02-23  2:00 [dpdk-dev] [PATCH] l2fwd_fork: fix missing updating the prev_tsc Zhiyong Yang
  2017-04-28  9:23 ` Yang, Zhiyong
@ 2017-05-01 14:31 ` Thomas Monjalon
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2017-05-01 14:31 UTC (permalink / raw)
  To: Zhiyong Yang; +Cc: dev, sergio.gonzalez.monroy

23/02/2017 03:00, Zhiyong Yang:
> 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 <zhiyong.yang@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-01 14:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23  2:00 [dpdk-dev] [PATCH] l2fwd_fork: fix missing updating the prev_tsc Zhiyong Yang
2017-04-28  9:23 ` Yang, Zhiyong
2017-05-01 14:31 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).