app/testpmd: allow to set part of flow control parameters
authorDavid Marchand <david.marchand@6wind.com>
Tue, 24 Jun 2014 13:06:52 +0000 (15:06 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 27 Jun 2014 00:39:44 +0000 (02:39 +0200)
commitb0f4a445eab2de2962f76e469abac08f079ec113
tree5828956da6a2d72f1a2176205bbd7bcaf55111cd
parent026cba7aa7e692092af850ab00f2a37ac79e68eb
app/testpmd: allow to set part of flow control parameters

We might want to only change a parameter rather than have to set all possible
parameters, so add "partial" commands.
These commands only change the specified parameter.

To avoid duplicating code all around, a unique parser is kept. This parser uses
the .data parameter to select the right behavior.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/cmdline.c