DPDK 快速发包流程

Basic knowledge

dpdk_flow.png是对上一篇原理概述dpdk 架构与原理的总结和添加了自己的理解,若有不同意见,欢迎指出,共同进步

Linux Kernel and CPU
linux kernel
dpdk init
init
DPDK Packet Distributor
Packet Distributor

DPDK compile and config

Dpdk compile

export RTE_TARGET=x86_64-native-linuxapp-gcc
export RTE_SDK=`pwd`
make -j 10 install T=x86_64-native-linuxapp-gcc
make -j 10 -C test/

Environmental configuration
huge page config

awk '/Hugepagesize/ {print $2}' /proc/meminfo
umount `awk '/hugetlbfs/ { print $2 }' /proc/mounts`
awk '/hugetlbfs/ { print $2 }' /proc/mounts
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge

uio driver

modprobe uio
insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko

EAL init
./x86_64-native-linuxapp-clang/app/testpmd

EAL: Detected 72 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
EAL: Probing VFIO support...
EAL: PCI device 0000:03:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:03:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:03:00.2 on NUMA socket 0
EAL:   probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:03:00.3 on NUMA socket 0
EAL:   probe driver: 8086:1572 net_i40e

DPDK Flow

DPDK Flow(packet distributor pipeline)
dpdk flow
参考博客

DPDK原理概述

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值