请问下kernel-linux-4.19.y-sw支持DPDK吗?
|
zytc
发表于 2021-9-13 17:28:15
|
显示全部楼层
请问,这个版本的dpdk 必须使用社区版本的内核才行吗?我使用非同源版本的内核 运行testpmd时报下面的警告, 并且没有收发包:
EAL: Detected 16 lcore(s)
EAL: Detected 4 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: WARNING! Base virtual address hint (0x102866000 != 0x123000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x105898000 != 0x923000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x1088ca000 != 0x1123000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x10b8fc000 != 0x1923000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x10e92e000 != 0x2123000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x111960000 != 0x2923000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x114992000 != 0x3123000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x1179c4000 != 0x3923000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x11a9f6000 != 0x4123000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x11da28000 != 0x4923000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x120a5a000 != 0x5123000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x123a8c000 != 0x5923000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x124296000 != 0x6123000000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x126a98000 != 0x6123800000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x1272a2000 != 0x6123032000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x129aa4000 != 0x6923800000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x12a2ae000 != 0x6123064000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x12cab0000 != 0x7123800000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x12d2ba000 != 0x6123096000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: WARNING! Base virtual address hint (0x12fabc000 != 0x7923800000) not respected!
EAL: This may cause issues with mapping memory into secondary processes
EAL: PCI device 0001:20:00.0 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0001:20:00.1 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=203456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=203456, size=2176, socket=1
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 0)
Port 0: A0:36:9F:62:A9:B2
Configuring Port 1 (socket 0)
Port 1: A0:36:9F:62:A9:B3
Checking link statuses...
Done
testpmd> start
testpmd> stop
Telling cores to stop...
Waiting for lcores to finish...
---------------------- Forward statistics for port 0 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 1 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Done.
|
|
|
|
|
|
|
zytc
发表于 2021-9-15 13:38:38
|
显示全部楼层
试了同源版本的内核,“EAL: WARNING! Base virtual address hint (0x102866000 != 0x123000000) not respected!” 这类警告没有了,但testpmd 还是没有收发包呢 |
|
|
|
|
|
|
sy233
发表于 2021-9-16 15:50:58
|
显示全部楼层
你好!testpmd应用程序,需要执行start tx_first <num> ; 使用show port stats all 查看当前网卡的收发包情况。 |
|
|
|
|
|
|
sy233
发表于 2021-9-16 15:54:35
|
显示全部楼层
你好!testpmd应用程序,需要执行start tx_first <num> ; 使用show port stats all 查看当前网卡的收发包情况。 |
|
|
|
|
|
|
zytc
发表于 2021-9-16 16:48:44
|
显示全部楼层
十分感谢! 使用 start tx_first 1 后确实有收发包了。
不过为什么用 start 命令就不行呢,我在x86虚拟机下做验证就是用的start |
|
|
|
|
|
|
sy233
发表于 2021-9-18 09:15:58
|
显示全部楼层
你好!使用testpmd时使用的命令行参数是什么? |
|
|
|
|
|
|
zytc
发表于 2021-9-18 10:03:24
|
显示全部楼层
|
|
|
|
|
|
sy233
发表于 2021-9-18 11:01:13
|
显示全部楼层
是运行testpmd选用的命令行参数。比如-l 指定逻辑核,-n指定内存通道,是怎么选择的。 |
|
|
|
|
|
|
zytc
发表于 2021-9-22 11:16:24
|
显示全部楼层
testpmd -c 0xff -n 2 -- -i |
|
|
|
|
|