This commit adds the integration of the Data Plane Development Kit (DPDK). This commit does not enforce the use of UIO or VFIO kernel frameworks, as DPDK's architecture supports userland memory mappings that do not require these technologies. By maintaining this flexibility, DPDK can operate with a broader range of hardware and software configurations. Only the little endian targets are properly supported by DPDK. Big endian was supported, mostly on Power8, but it has not been used for a while and IBM is not strongly pushing any tests. Should big endian be supported again, DPDK community will be welcoming any contributions. Notes about license: DPDK was released with the BSD-3-Clause license. One network driver, the Google Virtual Ethernet (GVE) include files under the MIT license. See [1] and [2]. There used to be GPL-2.0-only licensed kernel modules, but they got removed in previous versions [K] [KNI], so Buildroot won't be used to compile the GPL-2.0-only code. There are also 2 files in "lib/eal/windows" under other licenses (namely BSD-2-Clause, ISC and MIT) but they are parts of the Environment Abstraction Library (EAL) for Microsoft Windows OS, it means they are not used when compiling for the Linux targets of Buildroot. The list of DPDK license exceptions is maintained at [2]. Add configuration options to enable DPDK examples and tests. [1] https://git.dpdk.org/dpdk/tree/doc/guides/nics/gve.rst?h=v24.07 [2] https://git.dpdk.org/dpdk/tree/license/exceptions.txt?h=v24.07 [KNI] https://git.dpdk.org/dpdk/commit/?id=f78c100bc87119c6a94130a6689d773afdaa9d98 [UIO] https://git.dpdk.org/dpdk/commit/?id=56bb5841fd0608989101d933f091852a3126b4fe [K] https://git.dpdk.org/dpdk-kmods/commit/?id=d16f3b44987be181b6effee139558a084eaf9f8c Signed-off-by: Vincent Jardin <vjardin@free.fr> Suggested-by: Julien Olivain <ju.o@free.fr> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: Julien Olivain <ju.o@free.fr> Reviewed-by: Yann Morin <yann.morin.1998@free.fr> Reviewed-by: Arnout Vandecappelle <arnout@mind.de> Tested-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Julien Olivain <ju.o@free.fr>
55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
config BR2_PACKAGE_DPDK_ARCH_SUPPORTS
|
|
bool
|
|
# DPDK can be used for the following little endian architecture
|
|
default y if BR2_aarch64
|
|
# DPDK requires SSE4.2 for x86_64 since v17.08
|
|
default y if BR2_x86_64 && BR2_X86_CPU_HAS_SSE42
|
|
|
|
config BR2_PACKAGE_DPDK
|
|
bool "dpdk"
|
|
depends on BR2_PACKAGE_DPDK_ARCH_SUPPORTS
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # DPDK design
|
|
depends on BR2_USE_MMU # pthread() memory mappings
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
|
|
depends on BR2_TOOLCHAIN_USES_GLIBC
|
|
select BR2_PACKAGE_HOST_PYTHON3 # host-python-pyelftools
|
|
help
|
|
DPDK (Data Plane Development Kit) is a set of libraries
|
|
and drivers for fast packet processing.
|
|
|
|
http://dpdk.org/
|
|
|
|
Optional but recommended kernel configurations:
|
|
- CONFIG_VFIO_IOMMU_TYPE1
|
|
- CONFIG_VFIO_VIRQFD
|
|
- CONFIG_VFIO
|
|
- CONFIG_VFIO_NOIOMMU
|
|
- CONFIG_VFIO_PCI
|
|
- CONFIG_VFIO_PCI_MMAP
|
|
- CONFIG_HUGETLBFS
|
|
- CONFIG_HUGETLB_PAGE
|
|
- CONFIG_PROC_PAGE_MONITOR
|
|
|
|
For x86 only, the following can also be useful:
|
|
- CONFIG_HPET
|
|
- CONFIG_HPET_MMAP
|
|
|
|
if BR2_PACKAGE_DPDK
|
|
|
|
config BR2_PACKAGE_DPDK_EXAMPLES
|
|
bool "Install examples"
|
|
|
|
config BR2_PACKAGE_DPDK_TESTS
|
|
bool "Install tests"
|
|
|
|
endif
|
|
|
|
comment "DPDK needs a toolchain w/ dynamic library, threads, wchar, kernel headers >= 4.19"
|
|
depends on BR2_USE_MMU # pthread() memory mappings
|
|
depends on BR2_PACKAGE_DPDK_ARCH_SUPPORTS
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
|
!BR2_TOOLCHAIN_USES_GLIBC || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
|
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
|