diff options
author | arikachen <eaglesora@gmail.com> | 2021-11-12 06:40:55 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-11-18 16:56:22 +0000 |
commit | 57bdb26ba42c3fc6da601d007b27fa5c3f09dd96 (patch) | |
tree | a5f4a9f29bff156a974139416ee75e3a69c867e9 /src/plugins/af_xdp/cli.c | |
parent | ef048034be365ba312e37e0fd19c22414f4e6434 (diff) |
af_xdp: introduce to netns api
In some situation, we support to deploy vpp as per host
and handler packet in container, so we use xdp to redirect
the flow.
Type: improvement
Signed-off-by: arikachen <eaglesora@gmail.com>
Change-Id: Iab42d6a0abb2b330a284d519018a90aff2fa4371
Diffstat (limited to 'src/plugins/af_xdp/cli.c')
-rw-r--r-- | src/plugins/af_xdp/cli.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/af_xdp/cli.c b/src/plugins/af_xdp/cli.c index 2f3deffaaee..660725813aa 100644 --- a/src/plugins/af_xdp/cli.c +++ b/src/plugins/af_xdp/cli.c @@ -40,6 +40,8 @@ af_xdp_create_command_fn (vlib_main_t * vm, unformat_input_t * input, vec_free (args.linux_ifname); vec_free (args.name); + vec_free (args.prog); + vec_free (args.netns); return args.error; } @@ -50,7 +52,7 @@ VLIB_CLI_COMMAND (af_xdp_create_command, static) = { .short_help = "create interface af_xdp <host-if linux-ifname> [name ifname] " "[rx-queue-size size] [tx-queue-size size] [num-rx-queues <num|all>] " - "[prog pathname] [zero-copy|no-zero-copy] [no-syscall-lock]", + "[prog pathname] [netns ns] [zero-copy|no-zero-copy] [no-syscall-lock]", .function = af_xdp_create_command_fn, }; /* *INDENT-ON* */ |