app/testpmd: use port sibling iterator in device cleanup
authorThomas Monjalon <thomas@monjalon.net>
Mon, 1 Apr 2019 02:27:00 +0000 (04:27 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commit13302cd5bd63bb789b613f019a1b3c155d62964a
tree5b9a423e249a23bb056601e47fa773454d8fbdca
parentd874a4eed5b6ed3380637089f5e2f0ba04d58eb5
app/testpmd: use port sibling iterator in device cleanup

When removing a rte_device on a port-based request,
all the sibling ports must be marked as closed.
The iterator loop can be simplified by using the dedicated macro.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
app/test-pmd/testpmd.c