From 426a306cc10559275b809d68f3045deb80f928cb Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Wed, 25 Nov 2020 10:41:26 +0100 Subject: af_xdp: update interrupt mode to new infra MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: improvement Change-Id: Icb23af5f5e458a555f416cb0a829e84646b25dd9 Signed-off-by: Benoît Ganne --- src/plugins/af_xdp/af_xdp.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (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 3bd53ad768d..568380baa56 100644 --- a/src/plugins/af_xdp/af_xdp.h +++ b/src/plugins/af_xdp/af_xdp.h @@ -27,12 +27,12 @@ #define af_xdp_log(lvl, dev, f, ...) \ vlib_log(lvl, af_xdp_main.log_class, "%v: " f, (dev)->name, ##__VA_ARGS__) -#define foreach_af_xdp_device_flags \ - _(0, INITIALIZED, "initialized") \ - _(1, ERROR, "error") \ - _(2, ADMIN_UP, "admin-up") \ - _(4, LINK_UP, "link-up") \ - _(8, ZEROCOPY, "zero-copy") \ +#define foreach_af_xdp_device_flags \ + _ (0, INITIALIZED, "initialized") \ + _ (1, ERROR, "error") \ + _ (2, ADMIN_UP, "admin-up") \ + _ (3, LINK_UP, "link-up") \ + _ (4, ZEROCOPY, "zero-copy") enum { @@ -62,6 +62,8 @@ typedef struct /* fields below are accessed in control-plane only (cold) */ uword file_index; + u32 queue_index; + u8 is_polling; } af_xdp_rxq_t; typedef struct -- cgit 1.2.3-korg