summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2019-10-23 14:06:01 -0700
committerIlya Maximets <i.maximets@ovn.org>2019-10-29 19:26:59 +0100
commite50547b51a4362a53f6a4d1af90ee32837ed664e (patch)
tree43f8ec63ef2b4dfbcae7300b5c0d36eca2d2ad43 /NEWS
parented1617406ceaa79c83417bd1ad8c05944eddda71 (diff)
downloadopenvswitch-e50547b51a4362a53f6a4d1af90ee32837ed664e.tar.gz
netdev-afxdp: Add need_wakeup support.
The patch adds support for using need_wakeup flag in AF_XDP rings. A new option, use-need-wakeup, is added. When this option is used, it means that OVS has to explicitly wake up the kernel RX, using poll() syscall and wake up TX, using sendto() syscall. This feature improves the performance by avoiding unnecessary sendto syscalls for TX. For RX, instead of kernel always busy-spinning on fille queue, OVS wakes up the kernel RX processing when fill queue is replenished. The need_wakeup feature is merged into Linux kernel bpf-next tee with commit 77cd0d7b3f25 ("xsk: add support for need_wakeup flag in AF_XDP rings") and OVS enables it by default, if libbpf supports it. If users enable it but runs in an older version of libbpf, then the need_wakeup feature has no effect, and a warning message is logged. For virtual interface, it's better set use-need-wakeup=false, since the virtual device's AF_XDP xmit is synchronous: the sendto syscall enters kernel and process the TX packet on tx queue directly. On Intel Xeon E5-2620 v3 2.4GHz system, performance of physical port to physical port improves from 6.1Mpps to 7.3Mpps. Suggested-by: Ilya Maximets <i.maximets@ovn.org> Signed-off-by: William Tu <u9012063@gmail.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 330ab3832..88b818948 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ Post-v2.12.0
separate project. You can find it at
https://github.com/ovn-org/ovn.git
- Userspace datapath:
+ * New option 'use-need-wakeup' for netdev-afxdp to control enabling
+ of corresponding 'need_wakeup' flag in AF_XDP rings. Enabled by default
+ if supported by libbpf.
* Add option to enable, disable and query TCP sequence checking in
conntrack.