aboutsummaryrefslogtreecommitdiffstats
path: root/src/dpi_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dpi_cli.c')
-rw-r--r--src/dpi_cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dpi_cli.c b/src/dpi_cli.c
index 5810a27..f7f233d 100644
--- a/src/dpi_cli.c
+++ b/src/dpi_cli.c
@@ -205,6 +205,7 @@ dpi_flow_offload_command_fn (vlib_main_t * vm,
u32 hw_if_index = ~0;
int is_add = 1;
u32 is_ipv6 = 0;
+ u32 is_enable = 1;
dpi_flow_entry_t *flow;
vnet_hw_interface_t *hw_if;
u32 rx_fib_index = ~0;
@@ -260,6 +261,8 @@ dpi_flow_offload_command_fn (vlib_main_t * vm,
return clib_error_return (0, "error %s flow",
is_add ? "enabling" : "disabling");
+ dpi_flow_offload_mode (hw_if_index, is_ipv6, is_enable);
+
return 0;
}