examples/l3fwd: skip Tx queue drain on first iteration
authorKathleen Capella <kathleen.capella@arm.com>
Thu, 8 Apr 2021 21:35:49 +0000 (21:35 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 20 Apr 2021 01:13:38 +0000 (03:13 +0200)
commita8f8b672d575d65970e8bc20f28ee6e302d63d38
treeb5e52b9e52664ef95c527bd5db42f9f94d475f2b
parente1d10a42f6e0e44b07ea7936f6704b93a8d2a1ef
examples/l3fwd: skip Tx queue drain on first iteration

Initialize prev_tsc to cur_tsc. This avoids running the TX queue drain
in the first iteration of the packet processing loop.

Signed-off-by: Kathleen Capella <kathleen.capella@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
examples/l3fwd/l3fwd_em.c
examples/l3fwd/l3fwd_lpm.c