app/testpmd: move speed and duplex parsing in a function
authorMarc Sune <marcdevel@gmail.com>
Thu, 31 Mar 2016 22:12:26 +0000 (00:12 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 1 Apr 2016 19:38:34 +0000 (21:38 +0200)
commit88fbedcd5e5ac7c4f6d09c02038b9cdc0391c5c3
treef28b395dd5467bf01bc307884d026035f8c4c5be
parent1131900006078c2e4f8cd5493c9a794a91701ab9
app/testpmd: move speed and duplex parsing in a function

The code for checking and parsing speed/duplex was duplicated.
The new function is also checking the speed/duplex combination.

Signed-off-by: Marc Sune <marcdevel@gmail.com>
app/test-pmd/cmdline.c