aboutsummaryrefslogtreecommitdiffstats
path: root/src/dpi_cli.c
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2019-11-06 06:12:03 +0000
committerGerrit Code Review <gerrit@fd.io>2019-11-06 06:12:03 +0000
commit9c5b99514ec3d9ba6cf61002394de1bd1a9fbdd9 (patch)
tree37b84ad5b41d6b4315513ac0c074b7bbda7fe5b5 /src/dpi_cli.c
parent4ec2e1124a00cd0f7841042a6d90096c77e0a72b (diff)
parentcac2bd1cefb29e7cc7a6602c7a0780a8c0d2fd86 (diff)
Merge "enable dpi hw-offload basic feature"
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;
}