app/testpmd: forbid actions on invalid port
authorMichael Qiu <michael.qiu@intel.com>
Mon, 9 Mar 2015 06:05:47 +0000 (14:05 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 9 Mar 2015 11:47:25 +0000 (12:47 +0100)
commit4468635fdd0463847f3c3bd1e8a04118c51fea96
tree9a2bb31df9b0df6d95cf078d813571179e925bb8
parent92d2703e2c432cd9004d7eee261c85ec2f474df2
app/testpmd: forbid actions on invalid port

Currently, if try to start/stop/close one invalid port,
no error shows in testpmd.
This is a bug, need check the port number.

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Acked-by: Tetsuya Mukawa <mukawa@igel.co.jp>
app/test-pmd/config.c
app/test-pmd/testpmd.c