-
在dpdk17版本中,l2fwd支持手动修改目的MAC地
资源介绍
编译如下:
# export RTE_SDK=/root/dpdk-stable-17.11.1
# export RTE_TARGET=build
# make
CC main.o
LD l2fwd
INSTALL-APP l2fwd
INSTALL-MAP l2fwd.map
适配dpdk-17.11.1,命令通过新增-d指定端口的dmac。 ./build/l2fwd -c 3 -n 2 -- -p 3 -d 11:11:11:11:11:11 -d 22:22:22:22:22:22
Port0的dmac为: 11:11:11:11:11:11
Port2的dmac为: 22:22:22:22:22:22
运行时输出信息增加了port的用户指定dmac显示:
…
Initializing port 0... done:
Port 0, MAC address: 52:54:00:46:8D:C0
Initializing port 1... done:
Port 1, MAC address: 52:54:00:F0:6C:50
Port 0, Destination MAC address: 11:11:11:11:11:11
Port 1, Destination MAC address: 22:22:22:22:22:22
- 上一篇: dpdk葵花宝典
- 下一篇:没有了