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
This commit is contained in:

committed by
Damjan Marion

parent
07a0f212c4
commit
e8c9f4f1c0
@ -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))
|
||||
;
|
||||
|
Reference in New Issue
Block a user