欢迎来到 DPDK交流社区 ,有什么问题可以尽管在这里提问,您将会收到社区其他成员的回答;也可以将您的总结写在这里,为社区其他成员提供帮助。 (QQ交流群:127163755)

DPDK l2fwd怎么测试?新手求指点迷津

0 投票
DPDK想要用l2fwd进行测试,但是一直没有数据量,不清楚什么原因。

想要知道怎么样才可以正常测试吞吐?

在DPDK源代码里面加入了相应的debug信息,具体逻辑代码并没有改动。运行l2fwd结果如下:

EAL: Detected 32 lcore(s)
EAL: Probing VFIO support...
EAL: PCI device 0000:02:00.0 on NUMA socket 0
EAL:   probe driver: 14e4:1657 rte_bnxt_pmd
EAL: PCI device 0000:02:00.1 on NUMA socket 0
EAL:   probe driver: 14e4:1657 rte_bnxt_pmd
EAL: PCI device 0000:02:00.2 on NUMA socket 0
EAL:   probe driver: 14e4:1657 rte_bnxt_pmd
EAL: PCI device 0000:02:00.3 on NUMA socket 0
EAL:   probe driver: 14e4:1657 rte_bnxt_pmd
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10fb rte_ixgbe_pmd
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL:   probe driver: 8086:10fb rte_ixgbe_pmd
Lcore 0: RX port 0
Lcore 1: RX port 1
Initializing port 0... done:
Port 0, MAC address: 88:CF:98:83:DE:F9

Initializing port 1... done:
Port 1, MAC address: 88:CF:98:83:DE:FA

Checking link status..........................................................................................done
Port 0 Link Down
Port 1 Link Down
L2FWD: entering main loop on lcore 1
L2FWD:  -- lcoreid=1 portid=1
L2FWD: lcore 3 has nothing to do
L2FWD: lcore 2 has nothing to do
L2FWD: entering main loop on lcore 0
L2FWD:  -- lcoreid=0 portid=0

Port statistics ====================================
Statistics for port 0 ------------------------------
Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Statistics for port 1 ------------------------------
Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0
====================================================
最新提问 3月 16, 2017 分类:DPDK初学入门 | 用户: SSSakuraa (120 分)
修改于 3月 16, 2017 用户:SSSakuraa

1个回答

0 投票
似乎是命令参数设置不对?用了哪些参数启动的?
最新回答 3月 16, 2017 用户: sysight (12,100 分)
./l2fwd -c 0xf -n 3 -- -p 0x3 -q 1
网卡的灯亮着吗?看你给出的打印信息里面有“Port 0 Link Down”这样的信息,没有“UP”的信息
谢谢,好像是光模块的问题,发现ping不通了。
...