Re: [dpdk-users] occasionally traffic stalls due to rx and tx descriptor not available

2018-07-05 Thread Hui Liu
Hi Amar, I'm a DPDK newbie and I saw a similar problem recently on one 82599 port. My app is doing a job like this: 1. TX thread calls rte_pktmbuf_alloc() to allocate buffers from mbuf_pool and fills it as ICMP packet and sends out, with speed of around 400,000 packets/sec, 1.6Gbps; 2. RX thread r

Re: [dpdk-users] occasionally traffic stalls due to rx and tx descriptor not available

2018-07-25 Thread Hui Liu
3841, nb_desc = 512, port_id = 0 '\000', tx_deferred_start = > 0 '\000', queue_id = 0, > > tx_ftag_en = 0} > > (gdb) p /x ((struct fm10k_tx_queue *)tx_queue)->hw_ring[223].flags > > $21 = 0x60 > > (gdb) p 0x80 & ((struct fm10k_tx_queue *)tx_q

[dpdk-users] DPDK library link issue with __attribute__((constructor))

2018-03-04 Thread Hui Liu
Hi Guys, I am using DPDK with the yocto build system. I found some static library is not linked because of the linker's as-needed decision. Some .a file use __attribute__((constructor)) to register their APIs, we only know if we use these APIs at runtime, but linker make the decision early and t

Re: [dpdk-users] DPDK library link issue with __attribute__((constructor))

2018-03-05 Thread Hui Liu
lrte_meter -lrte_pmd_cxgbe -lrte_kni -lrte_pmd_vmxnet3_uio -lrte_ring -lrte_pmd_fm10k -lrte_table -lrte_cfgfile -lpthread -ldl On Sun, Mar 4, 2018 at 9:08 PM, Hui Liu wrote: > Hi Guys, > > I am using DPDK with the yocto build system. > > I found some static library is not linke

Re: [dpdk-users] DPDK library link issue with __attribute__((constructor))

2018-03-06 Thread Hui Liu
Hi Keith, Thanks a lot, that resolved my issue. The key is to use --whole-archive instead of --no-as-needed. --no-as-needed doesn't work. Thanks, Hui On Mon, Mar 5, 2018 at 5:28 AM, Wiles, Keith wrote: > > > > On Mar 5, 2018, at 3:15 AM, Hui Liu wrote: > > >