app/testpmd: fix timeout in Rx queue flushing
authorJames Poole <james.g.poole@intel.com>
Thu, 8 Sep 2016 09:49:16 +0000 (10:49 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 23 Sep 2016 18:20:07 +0000 (20:20 +0200)
commit594302c722202659c4f6150504a51e99a25ee471
treefaea372be02961663f8885e184d1124ad01315f8
parent24427bb914a6375f29635897d23a3192d85b2127
app/testpmd: fix timeout in Rx queue flushing

When testpmd is run, the application would hang on the second time
that "start" is executed. This is because the timer limit would get
multiplied to an unreachably high number.

At the start of flush_fwd_rx_queues(), the timer limit now resets
to stop it from getting to this high number.

The timer has been made local for this function.

Fixes: f487715f36f5 ("app/testpmd: add timeout in Rx queue flushing")

Signed-off-by: James Poole <james.g.poole@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/testpmd.c