summaryrefslogtreecommitdiff
path: root/lib/netdev-provider.h
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2020-04-14 06:22:55 -0700
committerIlya Maximets <i.maximets@ovn.org>2020-04-28 17:58:31 +0200
commit5bfc519fee499b5b8b1eeb2d26c1baa6a5f42d5b (patch)
tree3f58126a136172430e562dd69b681597aadc3b07 /lib/netdev-provider.h
parentffc0c87393012402e4647c07cc848f68aee7faf9 (diff)
downloadopenvswitch-5bfc519fee499b5b8b1eeb2d26c1baa6a5f42d5b.tar.gz
netdev-afxdp: Add interrupt mode netdev class.
The patch adds a new netdev class 'afxdp-nonpmd' to enable afxdp interrupt mode. This is similar to 'type=afxdp', except that the is_pmd field is set to false. As a result, the packet processing is handled by main thread, not pmd thread. This avoids burning the CPU to always 100% when there is no traffic. Signed-off-by: William Tu <u9012063@gmail.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r--lib/netdev-provider.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h
index 6f509424b..d9503adb0 100644
--- a/lib/netdev-provider.h
+++ b/lib/netdev-provider.h
@@ -850,6 +850,7 @@ extern const struct netdev_class netdev_tap_class;
#ifdef HAVE_AF_XDP
extern const struct netdev_class netdev_afxdp_class;
+extern const struct netdev_class netdev_afxdp_nonpmd_class;
#endif
#ifdef __cplusplus
}