* [dpdk-dev] testpmd app issues
@ 2015-02-17 16:31 Jeff Wang
2015-02-17 16:35 ` Bruce Richardson
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Wang @ 2015-02-17 16:31 UTC (permalink / raw)
To: dev
Hi,
I'm new to DPDK.
I have gone through the user guide, set up environment, hugepages. I can
get the helloworld app work. Now, when I tried to play with the testpmd
app, I got the following issue:
[root@localhost dpdk-1.8.0]# build/app/testpmd -c 0x2 -n1 -- -i
--nb-cores=1 --nb-ports=0x1
.....
EAL: TSC frequency is ~2594110 KHz
EAL: Master core 1 is ready (tid=e07b3840)
PMD: ENICPMD trace: rte_enic_pmd_init
EAL: PCI device 0000:02:00.0 on NUMA socket -1
EAL: probe driver: 8086:10d3 rte_em_pmd
EAL: 0000:02:00.0 not managed by UIO driver, skipping
EAL: PCI device 0000:03:00.0 on NUMA socket -1
EAL: probe driver: 8086:10d3 rte_em_pmd
EAL: PCI memory mapped at 0x7f06df800000
EAL: PCI memory mapped at 0x7f06df820000
PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x10d3
EAL: PCI device 0000:04:00.0 on NUMA socket -1
EAL: probe driver: 8086:10d3 rte_em_pmd
EAL: 0000:04:00.0 not managed by UIO driver, skipping
EAL: PCI device 0000:05:00.0 on NUMA socket -1
EAL: probe driver: 8086:10d3 rte_em_pmd
EAL: 0000:05:00.0 not managed by UIO driver, skipping*PANIC in main():
Empty set of forwarding logical cores - check the core mask supplied
in the command parameters*
5: [build/app/testpmd() [0x428ea5]]
4: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f06df8e2af5]]
.....
It says the core mask is not right. I set it to 0x2 because my CPU
only has 2 cores. I don't quite get it.
Can someone help me with this? And has anyone else encountered the same issue?
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] testpmd app issues
2015-02-17 16:31 [dpdk-dev] testpmd app issues Jeff Wang
@ 2015-02-17 16:35 ` Bruce Richardson
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2015-02-17 16:35 UTC (permalink / raw)
To: Jeff Wang; +Cc: dev
On Tue, Feb 17, 2015 at 09:31:33AM -0700, Jeff Wang wrote:
> Hi,
>
> I'm new to DPDK.
>
> I have gone through the user guide, set up environment, hugepages. I can
> get the helloworld app work. Now, when I tried to play with the testpmd
> app, I got the following issue:
>
> [root@localhost dpdk-1.8.0]# build/app/testpmd -c 0x2 -n1 -- -i
> --nb-cores=1 --nb-ports=0x1
>
> .....
>
> EAL: TSC frequency is ~2594110 KHz
> EAL: Master core 1 is ready (tid=e07b3840)
> PMD: ENICPMD trace: rte_enic_pmd_init
> EAL: PCI device 0000:02:00.0 on NUMA socket -1
> EAL: probe driver: 8086:10d3 rte_em_pmd
> EAL: 0000:02:00.0 not managed by UIO driver, skipping
> EAL: PCI device 0000:03:00.0 on NUMA socket -1
> EAL: probe driver: 8086:10d3 rte_em_pmd
> EAL: PCI memory mapped at 0x7f06df800000
> EAL: PCI memory mapped at 0x7f06df820000
> PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x10d3
> EAL: PCI device 0000:04:00.0 on NUMA socket -1
> EAL: probe driver: 8086:10d3 rte_em_pmd
> EAL: 0000:04:00.0 not managed by UIO driver, skipping
> EAL: PCI device 0000:05:00.0 on NUMA socket -1
> EAL: probe driver: 8086:10d3 rte_em_pmd
> EAL: 0000:05:00.0 not managed by UIO driver, skipping*PANIC in main():
> Empty set of forwarding logical cores - check the core mask supplied
> in the command parameters*
> 5: [build/app/testpmd() [0x428ea5]]
> 4: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f06df8e2af5]]
>
> .....
>
> It says the core mask is not right. I set it to 0x2 because my CPU
> only has 2 cores. I don't quite get it.
>
> Can someone help me with this? And has anyone else encountered the same issue?
>
> Thanks!
Hi,
a coremask of 2 means to use only the second core (i.e. core 1, but not core 0).
Since the coremask is a bitmask, to use two cores you need to specify 0011b, or
"3" decimal/hex.
Regards,
/Bruce
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-17 16:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-17 16:31 [dpdk-dev] testpmd app issues Jeff Wang
2015-02-17 16:35 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).