[dpdk-users] DPDK i40evf problem in receving packet

2016-02-05 Thread Saurabh Mishra
Hi,

I'm seeing two problems:

1)  when use our kernel '3.10.88-8.0.0.0.6', we only receive first packet
but not subsequent ones at all after that. However, when I use centos7.0,
then l2fwd is able to receive all the packets.

2) I've also seen that on centos7.0, symmetric_mp itself is not working.
dev start fails with 280 error.

i40evf is giving us lot of headache. The i40evf kernel driver works without
any problem. Host is a centos7 KVM. I've already upgraded firmware to
latest.

[root at localhost ~]# uname -a

Linux localhost.localdomain 3.10.0-327.4.5.el7.x86_64 #1 SMP Mon Jan 25
22:07:14 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[root at localhost ~]#

[root at localhost ~]# ./symmetric_mp fakeelf --file-prefix=virtaddr -c2
-m2048 -n1 --base-virtaddr=0x7fa0 --proc-type=primary -- -p 3
--num-procs=1 --proc-id=0

EAL: Detected lcore 0 as core 0 on socket 0

EAL: Detected lcore 1 as core 0 on socket 0

EAL: Support maximum 128 logical core(s) by configuration.

EAL: Detected 2 lcore(s)

EAL: No free hugepages reported in hugepages-1048576kB

EAL: VFIO modules not all loaded, skip VFIO support...

EAL: Setting up physically contiguous memory...

EAL: Ask a virtual area of 0x2a80 bytes

EAL: Virtual area found at 0x7fa0 (size = 0x2a80)

EAL: Ask a virtual area of 0x20 bytes

EAL: Virtual area found at 0x7fa02a80 (size = 0x20)

EAL: Ask a virtual area of 0x5400 bytes

EAL: Virtual area found at 0x7fa02aa0 (size = 0x5400)

EAL: Ask a virtual area of 0x40 bytes

EAL: Virtual area found at 0x7fa07ea0 (size = 0x40)

EAL: Ask a virtual area of 0x20 bytes

EAL: Virtual area found at 0x7fa07ee0 (size = 0x20)

EAL: Ask a virtual area of 0x20 bytes

EAL: Virtual area found at 0x7fa07f00 (size = 0x20)

EAL: Ask a virtual area of 0x60 bytes

EAL: Virtual area found at 0x7fa07f20 (size = 0x60)

EAL: Ask a virtual area of 0x20 bytes

EAL: Virtual area found at 0x7fa07f80 (size = 0x20)

EAL: Ask a virtual area of 0x20 bytes

EAL: Virtual area found at 0x7fa07fa0 (size = 0x20)

EAL: Ask a virtual area of 0x40 bytes

EAL: Virtual area found at 0x7fa07fc0 (size = 0x40)

EAL: Requesting 1024 pages of size 2MB from socket 0

EAL: TSC frequency is ~260 KHz

EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable
clock cycles !

EAL: Master lcore 1 is ready (tid=3e55900;cpuset=[1])

EAL: PCI device :00:09.0 on NUMA socket -1

EAL:   probe driver: 8086:154c rte_i40evf_pmd

EAL:   PCI memory mapped at 0x7fa08000

EAL:   PCI memory mapped at 0x7fa08001

EAL: PCI device :00:0a.0 on NUMA socket -1

EAL:   probe driver: 8086:154c rte_i40evf_pmd

EAL:   PCI memory mapped at 0x7fa080014000

EAL:   PCI memory mapped at 0x7fa080024000

# Initialising port 0... Queue :1

PMD: i40e_dev_rx_queue_setup(): Rx Burst Bulk Alloc Preconditions are
satisfied. Rx Burst Bulk Alloc function will be used on port=0, queue=0.

PMD: i40e_set_tx_function_flag(): Vector tx can be enabled on this txq.

PMD: i40e_set_rx_function(): Port[0] doesn't meet Vector Rx preconditions

PMD: i40e_set_rx_function(): Rx Burst Bulk Alloc Preconditions are
satisfied. Rx Burst Bulk Alloc function will be used on port=0.

PMD: i40e_set_tx_function(): Simple tx finally be used.

smp_port_init() dev start error 280

EAL: Error - exiting with code: 1

  Cause: Error initialising ports

[root at localhost ~]#


[dpdk-users] Fw: DPDK Error --> EAL: No free hugepages reported in hugepages-2048kB

2016-02-05 Thread Van Haaren, Harry
From: anand prasad
>  Hi DPDK Team,

Hello,

> ? I am new to DPDK and trying to understand DPDK by running the examples 
> provided in the
> kit.
> 
> EAL: No free hugepages reported in hugepages-2048kB
> PANIC in rte_eal_init():
> Cannot get hugepage information
> 6: [build/app/testpmd() [0x439493]]
> 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f86cf2dcec5]]
> 4: [build/app/testpmd(main+0x52) [0x436bf2]]
> 3: [build/app/testpmd(rte_eal_init+0xc43) [0x4b60f3]]
> 2: [build/app/testpmd(__rte_panic+0xc9) [0x431640]]
> 1: [build/app/testpmd(rte_dump_stack+0x1a) [0x4bcdfa]]
> Aborted (core dumped)

This is caused by hugepages not being set up on the system.
Some details about hugepages here:
http://dpdk.org/doc/guides/linux_gsg/build_sample_apps.html#hugepage-memory-use-by-applications

To solve it, the easiest way is to use the "tools/setup.sh" script:

cd /path/to/dpdk
./tools/setup.sh
# Read the options, select "Set up hugepages"
Say how many hugepages to use, I use 512 when not doing performance testing.
Note that this must be performed after each reboot.

Hope that helps, -Harry


[dpdk-users] Fw: DPDK Error --> EAL: No free hugepages reported in hugepages-2048kB

2016-02-05 Thread De Lara Guarch, Pablo
Hi Anand,

> -Original Message-
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of anand prasad
> Sent: Friday, February 05, 2016 6:11 AM
> To: users at dpdk.org
> Subject: [dpdk-users] Fw: DPDK Error --> EAL: No free hugepages reported in
> hugepages-2048kB
> 
> 
> 
>  On Thursday, 4 February 2016 5:56 PM, anand prasad
>  wrote:
> 
> 
>  Hi DPDK Team,
> ? I am new to DPDK and trying to understand DPDK by running the examples
> provided in the kit.
> ?I am using UBUNTU 14.04 64 bit OS and have successfully buit the kit on this
> system. Am getting below errors while executing below command:
> command: build/app/testpmd -c7 -n3 --vdev=eth_pcap0,iface=eth0 --
> vdev=eth_pcap1,iface=eth1 -- -i --nb-cores=2 --nb-ports=2 --total-num-
> mbufs=2048
> command output:
> 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: Detected lcore 3 as core 3 on socket 0
> EAL: Detected lcore 4 as core 0 on socket 0
> EAL: Detected lcore 5 as core 1 on socket 0
> EAL: Detected lcore 6 as core 2 on socket 0
> EAL: Detected lcore 7 as core 3 on socket 0
> EAL: Support maximum 128 logical core(s) by configuration.
> EAL: Detected 8 lcore(s)
> EAL: No free hugepages reported in hugepages-2048kB
> PANIC in rte_eal_init():
> Cannot get hugepage information
> 6: [build/app/testpmd() [0x439493]]
> 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f86cf2dcec5]]
> 4: [build/app/testpmd(main+0x52) [0x436bf2]]
> 3: [build/app/testpmd(rte_eal_init+0xc43) [0x4b60f3]]
> 2: [build/app/testpmd(__rte_panic+0xc9) [0x431640]]
> 1: [build/app/testpmd(rte_dump_stack+0x1a) [0x4bcdfa]]
> Aborted (core dumped)
> Can anyone help me understand the issue and possible solution.
> Thanks in advanceRegards,Anand Prasad+91 9880666968

You probably haven't reserved any hugepages.
Take a look at the Getting Started Guide (section 2.3.2):
http://dpdk.readthedocs.org/en/v2.2.0/linux_gsg/sys_reqs.html#running-dpdk-applications

Another way is run the setup.sh script, in tools directory.
Options 20 and 21 will do the hugepage reserve for you,
just need to pass the number of hugepages that you want.

Let me know if you have any more issues.

Pablo
> 
> 
> 


[dpdk-users] Fw: DPDK Error --> EAL: No free hugepages reported in hugepages-2048kB

2016-02-05 Thread anand prasad


 On Thursday, 4 February 2016 5:56 PM, anand prasad  wrote:


 Hi DPDK Team,
? I am new to DPDK and trying to understand DPDK by running the examples 
provided in the kit.
?I am using UBUNTU 14.04 64 bit OS and have successfully buit the kit on this 
system. Am getting below errors while executing below command:
command: build/app/testpmd -c7 -n3 --vdev=eth_pcap0,iface=eth0 
--vdev=eth_pcap1,iface=eth1 -- -i --nb-cores=2 --nb-ports=2 
--total-num-mbufs=2048
command output:
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: Detected lcore 3 as core 3 on socket 0
EAL: Detected lcore 4 as core 0 on socket 0
EAL: Detected lcore 5 as core 1 on socket 0
EAL: Detected lcore 6 as core 2 on socket 0
EAL: Detected lcore 7 as core 3 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 8 lcore(s)
EAL: No free hugepages reported in hugepages-2048kB
PANIC in rte_eal_init():
Cannot get hugepage information
6: [build/app/testpmd() [0x439493]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f86cf2dcec5]]
4: [build/app/testpmd(main+0x52) [0x436bf2]]
3: [build/app/testpmd(rte_eal_init+0xc43) [0x4b60f3]]
2: [build/app/testpmd(__rte_panic+0xc9) [0x431640]]
1: [build/app/testpmd(rte_dump_stack+0x1a) [0x4bcdfa]]
Aborted (core dumped)
Can anyone help me understand the issue and possible solution.
Thanks in advanceRegards,Anand Prasad+91 9880666968