From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4.hitachi.co.jp (mail4.hitachi.co.jp [133.145.228.5]) by dpdk.org (Postfix) with ESMTP id 5577F4BBC for ; Thu, 24 Oct 2013 05:35:56 +0200 (CEST) Received: from mlsv1.hitachi.co.jp (unknown [133.144.234.166]) by mail4.hitachi.co.jp (Postfix) with ESMTP id 4316A33CC2 for ; Thu, 24 Oct 2013 12:36:45 +0900 (JST) Received: from mfilter04.hitachi.co.jp by mlsv1.hitachi.co.jp (8.13.1/8.13.1) id r9O3ajOI019587; Thu, 24 Oct 2013 12:36:45 +0900 Received: from vshuts04.hitachi.co.jp (vshuts04.hitachi.co.jp [10.201.6.86]) by mfilter04.hitachi.co.jp (Switch-3.3.4/Switch-3.3.4) with ESMTP id r9O3aiKr030806 for ; Thu, 24 Oct 2013 12:36:45 +0900 Received: from gmml25.itg.hitachi.co.jp (unknown [158.213.165.145]) by vshuts04.hitachi.co.jp (Postfix) with ESMTP id 31C9514005F for ; Thu, 24 Oct 2013 12:36:44 +0900 (JST) Received: from [127.0.0.1] by gmml25.itg.hitachi.co.jp (AIX5.2/8.11.6p2/8.11.0) id r9O3ahK5431312; Thu, 24 Oct 2013 12:36:43 +0900 Message-Type: Multiple Part MIME-Version: 1.0 Message-ID: Content-Type: text/plain; charset=us-ascii To: From: Date: Thu, 24 Oct 2013 12:36:22 +0900 Priority: normal Importance: normal X400-Content-Identifier: X5268959B00000M X400-MTS-Identifier: [/C=JP/ADMD=HITNET/PRMD=HITACHI/;gmml28131024123555G8W] Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] fail to run with testpmd, EAL fail to bind socket X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2013 03:35:56 -0000 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.