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/af_xdp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/af_xdp/af_xdp.h') 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; -- cgit 1.2.3-korg