DPDK patches and discussions
 help / color / mirror / Atom feed
From: <cheng.luo.nq@hitachi.com>
To: <dev@dpdk.org>
Subject: [dpdk-dev] fail to run with testpmd, EAL fail to bind socket
Date: Thu, 24 Oct 2013 12:36:22 +0900	[thread overview]
Message-ID: <XNM7$4$0$4$$1$2$9$A$9000035U5268959b@hitachi.com> (raw)

Dear all,

I am a beginner with DPDK. 
I just install it in fedora18 with two X540 Enthercards.

After compile it and run the testpmd I got the following message:
====================================================================
[root@localhost test-pmd]# ./testpmd -c7 -n3 -- -i --nb-cores=2 --nb-ports=2
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 2 on socket 0
EAL: Setting up hugepage memory...
EAL: Ask a virtual area of 0x2097152 bytes
EAL: Virtual area found at 0x2aaaaa800000 (size = 0x200000)
EAL: Ask a virtual area of 0x2143289344 bytes
EAL: Virtual area found at 0x2aaa2aa00000 (size = 0x7fc00000)
EAL: Ask a virtual area of 0x2097152 bytes
EAL: Virtual area found at 0x7fc6aec00000 (size = 0x200000)
EAL: Requesting 1024 pages of size 2MB from socket 0
EAL: TSC frequency is ~1795673 KHz
EAL: Master core 0 is ready (tid=af35b880)
EAL: Core 2 is ready (tid=ad7f1700)
EAL: Core 1 is ready (tid=adff2700)
EAL: PCI device 0000:02:00.0 on NUMA socket -1
EAL:   probe driver: 8086:1528 rte_ixgbe_pmd
EAL:   PCI memory mapped at 0x7fc6af128000
EAL:   PCI memory mapped at 0x7fc6af361000
EAL: PCI device 0000:02:00.1 on NUMA socket -1
EAL:   probe driver: 8086:1528 rte_ixgbe_pmd
EAL:   PCI memory mapped at 0x7fc6aef28000
EAL:   PCI memory mapped at 0x7fc6aef24000
Interactive-mode selected
Configuring Port 0 (socket -1)
Configuring Port 1 (socket -1)
Checking link statuses...
Port 0 Link Up - speed 10000 Mbps - full-duplex
Port 1 Link Up - speed 10000 Mbps - full-duplex
Done
testpmd>
========================================================================
Although I can get into the testpmd command mode, but it seems EAL fails to bind the socket on 
the PCI device.
Therefore, when I run start tx_first and stp, no package forwarding as follow

=====================================================================
testpmd> start tx_first
  io packet forwarding - CRC stripping disabled - packets/burst=16
  nb forwarding cores=2 - nb forwarding ports=2
  RX queues=1 - RX desc=128 - RX free threshold=0
  RX threshold registers: pthresh=8 hthresh=8 wthresh=4
  TX queues=1 - TX desc=512 - TX free threshold=0
  TX threshold registers: pthresh=36 hthresh=0 wthresh=0
  TX RS bit threshold=0 - TXQ flags=0x0
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: 16             TX-dropped: 0             TX-total: 16
  ----------------------------------------------------------------------------

  ---------------------- Forward statistics for port 1  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 16             TX-dropped: 0             TX-total: 16
  ----------------------------------------------------------------------------

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 32             TX-dropped: 0             TX-total: 32
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Done.
====================================================================

Can anyone tell me how to fix this?

Thank you very much.

                 reply	other threads:[~2013-10-24  3:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='XNM7$4$0$4$$1$2$9$A$9000035U5268959b@hitachi.com' \
    --to=cheng.luo.nq@hitachi.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).