Skip to content

Commit 5d2091d

Browse files
author
Mohammed Hawari
committed
af_xdp: documents incompatibility with 1GB hugepages and high buffers-per-numa.
Type: docs Change-Id: If8602d4b73cc1f04e42d19b8df60a05f67aa90c9 Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
1 parent 0b31630 commit 5d2091d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugins/af_xdp/af_xdp_doc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Because of AF_XDP restrictions, the MTU is limited to below PAGE_SIZE
1717
(4096-bytes on most systems) minus 256-bytes, and they are additional
1818
limitations depending upon specific Linux device drivers.
1919
As a rule of thumb, a MTU of 3000-bytes or less should be safe.
20+
Furthermore, upon UMEM creation, the kernel allocates a physically-contiguous structure, whose size is proportional to the number of 4KB pages contained in the UMEM. That allocation might fail when the number of buffers allocated by VPP is too high. That number can be controlled with the `buffers { buffers-per-numa }` configuration option.
21+
Finally, note that because of this limitation, this plugin is unlikely to be compatible with the use of 1GB hugepages.
2022

2123
## Requirements
2224
The Linux kernel interface must be up and have enough queues before

0 commit comments

Comments
 (0)