examples: fix draining all queues in l3fwd derivatives
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Thu, 7 Apr 2016 16:38:31 +0000 (18:38 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 7 Apr 2016 21:05:47 +0000 (23:05 +0200)
commitdd1c68fab28e74d6795155666694bdb0a2510a7c
tree550006ba6df92063c01e799eab47391f846a0a58
parent99218e76fec87681053ea207ae2ae2253827c56a
examples: fix draining all queues in l3fwd derivatives

In l3fwd-acl and l3fwd-power not all tx ports was included in tx_port_id
array, used to periodically drain only available ports. This caused that
some packets can remain in buffer when application stops to receiving
packets or when size of burst is small.

Fixes: e2366e74e029 ("examples: use buffered Tx")

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
examples/l3fwd-acl/main.c
examples/l3fwd-power/main.c