[dpdk-dev] driver initialization in DPDK 2.0 built into a shared library.

2015-07-15 Thread Keunhong Lee
Did you tried 'mk/rte_app.mk' to build you application? Simply including -lrte_pmd_xxx may cause problem because PMD_REGISTER_DRIVER uses 'init' attribute, which is called before the 'main' function. See the 'start-group' and 'whole-archive' linker options. Keunhong. 2015-07-15 3:21 GMT+09:00

[dpdk-dev] [PATCH 0/2] Native uio-based PMD for Mellanox ConnectX-3 devices

2015-07-07 Thread Keunhong Lee
We found that optimizing fragmentation configuration of mlx4 driver performs as fast as native PMD. I think we have to re-consider using native driver rather than ib driver. Keunhong. 2015-07-07 1:14 GMT+09:00 Thomas Monjalon : > 2015-07-07 00:57, Keunhong Lee: > > Answer 1. UIO bas

[dpdk-dev] [PATCH 0/2] Native uio-based PMD for Mellanox ConnectX-3 devices

2015-07-07 Thread Keunhong Lee
Answer 1. UIO based driver is faster then ib based driver. It can saturate 40G link with MTU sized packets using a single thread while ib wrapper cannot. Answer 2. Sorry, I missed that. I'll make a new patch email with my real name. Question 1. Is it OK if I separate GPL-based and BSD-based

[dpdk-dev] Receiving packets on only one port

2015-06-30 Thread Keunhong Lee
for your answer. > > Regards, > Daeyoung > > 2015-06-29 11:28 GMT-04:00 Keunhong Lee : > >> Actually I have no idea why this happens. >> If your switch configuration is correct, your program should work just >> like Wireshark does. >> I wander whether your program use

[dpdk-dev] Receiving packets on only one port

2015-06-30 Thread Keunhong Lee
g > my program with promiscuous mode, the port 0 receives only DNS queries from > the DNS client, but the port 1 receives only DNS replies from the DNS > server. I'd like to know why it happens. > > Thank you very much! > > Regards, > Daeyoung > > 2015-06-28 20:22

[dpdk-dev] Could not achieve wire speed for 40GE with any DPDK version on XL710 NIC's

2015-06-30 Thread Keunhong Lee
I have not used XL710 or i40e. I have no opinion for those NICs. Keunhong. 2015-06-29 15:59 GMT+09:00 Pavel Odintsov : > Hello! > > Lee, thank you so much for sharing your experience! What do you think > about 40GE version of 82599? > > On Mon, Jun 29, 2015 at 2:35 AM, K

[dpdk-dev] Receive errors on all packets with multi-queues

2015-06-29 Thread Keunhong Lee
Did you set RSS mode? Multi-queue RX won't work unless you have set RSS(Receive Side Scaling). Keunhong. 2015-06-22 14:34 GMT+09:00 Jakub Mazur : > Hi > > I'm having problems with packets received when running 2 receive queues (on > seperate lcores) on the same port but when I run 1 queue

[dpdk-dev] Receiving packets on only one port

2015-06-29 Thread Keunhong Lee
I don't know your situation exactly, but here are possible problems. 1. Your switch learned MAC addresses of two ports. 2. Your program bug. 3. l3fwd itself contains some bug. 4. You did not set all ports in promiscuous mode. You'd better try 'pktgen' application to test your environment.

[dpdk-dev] Interface once added to DPDK goes missing from ifconfig

2015-06-29 Thread Keunhong Lee
DPDK's igb_uio driver does not generate 'netdev' interfaces, so you cannot see any interface via ifconfig. (However, they are registered as 'rte_eth_dev' in your DPDK application.) You'd better to use KNI drivers to have 'netdev' intefaces. Keunhong. 2015-06-29 8:51 GMT+09:00 Abhishek Verma :

[dpdk-dev] Number of memory channels per processor socket?

2015-06-29 Thread Keunhong Lee
. Keunhong. 2015-06-29 8:46 GMT+09:00 Abhishek Verma : > Thanks Keunhong. > > How do i get the motherboard spec on a virtual machine thats spawned on > the cloud, for example Amazon EC2? > > Cheers, Abhishek > > > On Mon, Jun 29, 2015 at 4:53 AM, Keunhong Lee wrote: >

[dpdk-dev] Could not achieve wire speed for 40GE with any DPDK version on XL710 NIC's

2015-06-29 Thread Keunhong Lee
DISCLAIMER: This information is not verified. This is truly my personal opinion. As I know, intel 82599 is the only 10G NIC which supports line rate with minimum sized packets (64 byte). According to our internal tests, Mellanox's 40G NICs even support less than 30Mpps. I think 40 Mpps is the

[dpdk-dev] Number of memory channels per processor socket?

2015-06-29 Thread Keunhong Lee
...and -c option gives 'masking' for CPUs. -c 1 will only activate single core (especially second core) of your system. If you want to activate both core, you have to give the mask '11'b ('3' in decimal). 2015-06-28 18:54 GMT+09:00 Abhishek Verma : > Hi, > > I am new to DPDK and i tried

[dpdk-dev] Number of memory channels per processor socket?

2015-06-29 Thread Keunhong Lee
See your motherboard spec. For example, I'm using Intel 5930K with ASUS X99 Delux Motherboard (x99 chipset). This site https://www.asus.com/us/Motherboards/X99DELUXE/specifications/ tells that "Quad Channel Memory Architecture " which means that "-n 4" is the correct configuration for me. To

[dpdk-dev] How to set timestamp in 82599 NICs in DPDK?

2015-06-01 Thread Keunhong Lee
http://dpdk.org/browse/dpdk/tree/app/test-pmd/ieee1588fwd.c This code example contains enabling PTP with intel NICs. Keunhong. 2015-06-01 12:48 GMT+09:00 Keunhong Lee : > 82599 supports hw timestamping for PTP packets. > I don't know whether it supports timestamping for general p

[dpdk-dev] How to set timestamp in 82599 NICs in DPDK?

2015-06-01 Thread Keunhong Lee
82599 supports hw timestamping for PTP packets. I don't know whether it supports timestamping for general packets. http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c#L640 says that 640

[dpdk-dev] [PATCH 0/2] Mellanox ConnectX-3 PMD

2015-03-01 Thread Keunhong Lee
How fast does this driver perform? Is it capable for sending/receiving 64B packets at 40G line rate? I'm using another version of user driver and it is not scalable for line rate, regardless of the number of TX cores. Keunhong. 2015. 1. 30. ?? 12:22? "Adrien Mazarguil" ?? ??: > This PMD adds

[dpdk-dev] Bugs in newest patches

2014-11-07 Thread Keunhong Lee
rte_cycles.h". I think this should be removed. This causes compile error on C++. Keunhong. 2014-11-07 6:05 GMT+09:00 Thomas Monjalon : > Hi, > > 2014-11-07 05:21, Keunhong Lee: > > I just pulled new patches from the master branch, and found that it > doesn't > > wor

[dpdk-dev] Bugs in newest patches

2014-11-07 Thread Keunhong Lee
Hi. I just pulled new patches from the master branch, and found that it doesn't work with C++. in lib/librte_eal/common/include/generic/rte_cycles.h missing opening extern "C" in commit fa4001c30ee9d9ecfb3ca5d93d68ef0394e9950a here is the fix. - * Simple Time Reference Functions (Cycles

[dpdk-dev] Can not init NIC after merge to DPDK 1.7 problem

2014-09-25 Thread Keunhong Lee
In DPDK1.7, PMDs are loaded by __constructor__ functions. As there is no direct reference to each PMD driver structures, linker may not link the PMD library. You should use -Wl,--whole-archive and -Wl,--no-whole-archive for linking DPDK applications. See