summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2019-10-15 20:36:16 +0800
committerDamjan Marion <dmarion@me.com>2019-10-16 18:34:51 +0000
commite8c9f4f1c07f41986c50a744eee8ed4897178fda (patch)
treecaedaaa216d833d559c6b0ec3bb4ac0a3042e53b /src/vnet
parent07a0f212c4fed965928c311227067add8e39dc91 (diff)
flow: Add 'drop' and 'redirect-to-queue' actions support
Type: feature Add 'drop' and 'redirect-to-queue' support in 'test-flow' command and DPDK plugin Signed-off-by: Chenmin Sun <chenmin.sun@intel.com> Change-Id: I567bb77cb401c9bd1309ecabe802fe9de88c746b
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/flow/flow_cli.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/flow/flow_cli.c b/src/vnet/flow/flow_cli.c
index 0e10c90f55b..5481aa303fe 100644
--- a/src/vnet/flow/flow_cli.c
+++ b/src/vnet/flow/flow_cli.c
@@ -323,6 +323,11 @@ test_flow (vlib_main_t * vm, unformat_input_t * input,
else if (unformat (line_input, "buffer-advance %d",
&flow.buffer_advance))
flow.actions |= VNET_FLOW_ACTION_BUFFER_ADVANCE;
+ else if (unformat (line_input, "redirect-to-queue %d",
+ &flow.redirect_queue))
+ flow.actions |= VNET_FLOW_ACTION_REDIRECT_TO_QUEUE;
+ else if (unformat (line_input, "drop"))
+ flow.actions |= VNET_FLOW_ACTION_DROP;
else if (unformat (line_input, "%U", unformat_vnet_hw_interface, vnm,
&hw_if_index))
;