From 57bdb26ba42c3fc6da601d007b27fa5c3f09dd96 Mon Sep 17 00:00:00 2001 From: arikachen Date: Fri, 12 Nov 2021 06:40:55 +0000 Subject: 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 Change-Id: Iab42d6a0abb2b330a284d519018a90aff2fa4371 --- src/plugins/af_xdp/unformat.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/af_xdp/unformat.c') diff --git a/src/plugins/af_xdp/unformat.c b/src/plugins/af_xdp/unformat.c index bb4c3048d23..8c0482d83ff 100644 --- a/src/plugins/af_xdp/unformat.c +++ b/src/plugins/af_xdp/unformat.c @@ -46,6 +46,8 @@ unformat_af_xdp_create_if_args (unformat_input_t * input, va_list * vargs) ; else if (unformat (line_input, "prog %s", &args->prog)) ; + else if (unformat (line_input, "netns %s", &args->netns)) + ; else if (unformat (line_input, "no-zero-copy")) args->mode = AF_XDP_MODE_COPY; else if (unformat (line_input, "zero-copy")) -- cgit 1.2.3-korg