summaryrefslogtreecommitdiffstats
path: root/src/plugins/af_xdp/af_xdp.h
diff options
context:
space:
mode:
authorarikachen <eaglesora@gmail.com>2021-11-12 06:40:55 +0000
committerBeno�t Ganne <bganne@cisco.com>2021-11-18 16:56:22 +0000
commit57bdb26ba42c3fc6da601d007b27fa5c3f09dd96 (patch)
treea5f4a9f29bff156a974139416ee75e3a69c867e9 /src/plugins/af_xdp/af_xdp.h
parentef048034be365ba312e37e0fd19c22414f4e6434 (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/af_xdp.h')
-rw-r--r--src/plugins/af_xdp/af_xdp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/af_xdp/af_xdp.h b/src/plugins/af_xdp/af_xdp.h
index 825a3fb29fd..85c8fee545d 100644
--- a/src/plugins/af_xdp/af_xdp.h
+++ b/src/plugins/af_xdp/af_xdp.h
@@ -113,6 +113,8 @@ typedef struct
u8 rxq_num;
+ char *netns;
+
struct xsk_umem **umem;
struct xsk_socket **xsk;
@@ -149,6 +151,7 @@ typedef struct
char *linux_ifname;
char *name;
char *prog;
+ char *netns;
af_xdp_mode_t mode;
af_xdp_create_flag_t flags;
u32 rxq_size;