examples/l3fwd: fix packets lost when stopping
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Thu, 31 Mar 2016 13:38:08 +0000 (15:38 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 20:56:00 +0000 (22:56 +0200)
commit9d203b76af2a4b310fdf3068e181ff52194bf7a8
tree49b8fa5d2b405e48be90c0beae6dd9ba911654cf
parent55d4c7756c5dd6fedc6327d08fae153a18d0f5a6
examples/l3fwd: fix packets lost when stopping

Not all tx ports was included in tx_port_id array, used to periodically
drain only available ports. This caused that some packets remain in buffer
when application stops to receiving packets.

Fixes: 52c97adc1f0f ("examples/l3fwd: fix exact match performance")

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/l3fwd/main.c