app/testpmd: fix config crash
authorDamien Millescamps <damien.millescamps@6wind.com>
Tue, 15 May 2012 14:27:04 +0000 (16:27 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 25 Jul 2013 14:07:51 +0000 (16:07 +0200)
commitc866aaa8544958bbed247addb5c1db530bb133dd
treede94eec169d77cc96c2da93ac34671c171cb6d75
parentc662f30dbe45c0827261d42b8082d73ab9b2be8e
app/testpmd: fix config crash

A chained topology must always have an increment of 1.
Here, it was 2 if ports number is even.

Signed-off-by: Damien Millescamps <damien.millescamps@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/config.c