type
status
slug
summary
tags
category
icon
password
new update day
Property
Oct 31, 2024 08:00 AM
created days
Last edited time
Oct 31, 2024 08:00 AM
step.0 系统环境准备
- 开启 CentOS 9 CRB repo
- 更新系统
安装编译依赖
step.1 获取 DPDK 源码并编译
以 22.11.6 为例,通过下面的链接可以下载 DPDK 对应版本的源码。
1. 解压 DPDK 源码
The DPDK is composed of several directories, including:
- doc: DPDK Documentation
- license: DPDK license information
- lib: Source code of DPDK libraries
- drivers: Source code of DPDK poll-mode drivers
- app: Source code of DPDK applications (automatic tests)
- examples: Source code of DPDK application examples
- config, buildtools: Framework-related scripts and configuration
- usertools: Utility scripts for end-users of DPDK applications
- devtools: Scripts for use by DPDK developers
- kernel: Kernel modules needed for some operating systems
2 编译并安装 DPDK
配置 DPDK 编译参数
开始编译
step2.获取 dpdk-kmods 并编译
如果需要使用到 igb_uio.ko 那么需要单独克隆对应的代码,进行手动编译,因为在 22.11 之后,对应的代码独立出来了。
获取 dpdk-kmods 源码
开始编译
加载驱动
查看驱动加载情况
参考文献
- Author:tangcuyu
- URL:https://expoli.tech/articles/2024/10/17/CentOS-9-DPDK-source-code-compilation-manual
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts