diff options
author | Benoît Ganne <bganne@cisco.com> | 2020-11-25 10:41:26 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-01-21 13:22:40 +0000 |
commit | 426a306cc10559275b809d68f3045deb80f928cb (patch) | |
tree | ad4e01dc101f172ccbbaa559386d89ff9c407a2e /src/plugins/af_xdp/af_xdp.h | |
parent | 692b52dca66770e48aae550efce7145c31b0a4f6 (diff) |
af_xdp: update interrupt mode to new infra
Type: improvement
Change-Id: Icb23af5f5e458a555f416cb0a829e84646b25dd9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/af_xdp/af_xdp.h')
-rw-r--r-- | src/plugins/af_xdp/af_xdp.h | 14 |
1 files changed, 8 insertions, 6 deletions
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 |