app/testpmd: check not configuring port twice
authorThomas Monjalon <thomas@monjalon.net>
Thu, 25 Oct 2018 15:11:15 +0000 (17:11 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commit86fa5de1d8f34f0d5849d16edb33f7633c604367
tree44f6f4abe150b42be76949c748d204fe13d60326
parent4f1de450c90d1873652a4fa3c03370741a5ec55b
app/testpmd: check not configuring port twice

It is possible to request probing of a device twice,
and possibly get new ports for this device.
However, the ports which were already probed and setup
must not be setup again. That's why it is checked whether
the port is already part of fwd_ports_ids array at the beginning
of the function setup_attached_port().

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c