app/testpmd: add boundary check in flow command
authorWei Zhao <wei.zhao1@intel.com>
Thu, 6 Dec 2018 02:38:06 +0000 (10:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:41 +0000 (16:22 +0100)
commitef1202d188ef97586c880e113843e19340a73642
tree16b866df22b7679490f66f04469c93ff7573ac90
parent97cb8042ad808ee48b94c3729258a4097e042e29
app/testpmd: add boundary check in flow command

There is need to add boundary for input number from commandline,
If it beyond the definition, code will return error.

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline_flow.c