summaryrefslogtreecommitdiff
path: root/lib/netdev.c
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.c
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.c')
-rw-r--r--lib/netdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/netdev.c b/lib/netdev.c
index 8c44eee8e..90962eec6 100644
--- a/lib/netdev.c
+++ b/lib/netdev.c
@@ -154,6 +154,7 @@ netdev_initialize(void)
netdev_register_flow_api_provider(&netdev_offload_tc);
#ifdef HAVE_AF_XDP
netdev_register_provider(&netdev_afxdp_class);
+ netdev_register_provider(&netdev_afxdp_nonpmd_class);
#endif
#endif
#if defined(__FreeBSD__) || defined(__NetBSD__)