examples/ip_pipeline: fix action flow bulk command
authorSankar Chokkalingam <sankarx.chokkalingam@intel.com>
Mon, 18 Jul 2016 17:32:58 +0000 (10:32 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 22 Jul 2016 10:40:26 +0000 (12:40 +0200)
commit399b2d4758009868a578c618015bf2aa47e222a5
treedbd96b0dab7aa195c5dab6725ea0e04f8d91924d
parent9a9751b58bd608f9d4d5f0df2b0e96c43ae44bfb
examples/ip_pipeline: fix action flow bulk command

Error while executing action flow bulk command
pipeline> p 1 action flow bulk ./config/action.txt
Command "action flow bulk" failed
pipeline>

The flow action entries are added successfully.
But the return value is not computed correctly.
Due to this, the error message appears on CLI.

The return value is computed with rsp->n_flows after rsp pointer is freed.
This fix computes the return value before rsp pointer is freed.

Signed-off-by: Sankar Chokkalingam <sankarx.chokkalingam@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/pipeline/pipeline_flow_actions.c