[dpdk-dev] TX offloads lead to Segmentation fault?

2018-12-25 Thread bai bakari
Hi, When I enable the Tx offloads capabilities, I get the segmentation fault. The backtrace like this: lcore_main_loop --> main_loop_tx --> rte_eth_tx_burst --> eth_igb_xmit_pkts --> rte_pktmbuf_free_seg

[dpdk-dev] The performance of test-pipeline and l2fwd?

2018-12-13 Thread bai bakari
Hi, I test the performance of test-pipeline and l2fwd, and get the conclusion is: l2fwd is three times better than test-pipeline, that confused me. In principle it should be test-pipeline is better than l2fwd? Anyone can tell me the reason, thank you in advance.

[dpdk-dev] About the comparation of "test-pipeline" and "l2fwd"??

2018-12-11 Thread bai bakari
Hi, I tested the performance of "test-pipeline"(--none) and "l2fwd", but the result confused me. "l2fwd" was three times better than "test-pipeline" in pps. I set them to the same parameters like this: "l2fwd": MAX_PKT_BURST=64 nb_rxd = 1024 nb_txd = 1024 "test-pipeline" burst_size_rx_read

[dpdk-dev] ?????? About the data payload of rte_mbuf?

2018-12-05 Thread bai bakari
Thank your answers, that helped me out. -- -- ??: "Shyam Shrivastav"; : 2018??12??6??(??) 2:22 ??????: "bai bakari"<912873...@qq.com>; : "dev"; : Re: [dpdk-dev] About the data payload

Re: [dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread bai bakari
hen i use dpdk-pktgen, that if can promise its type is IPv4? -- Original -- From: "Varghese, Vipin"; Date: Thu, Dec 6, 2018 12:20 PM To: "bai bakari"<912873...@qq.com>;"dev"; Subject: RE: [dpdk-dev] About the data payload of

[dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread bai bakari
Hi, Now, I want to get the data payload of rte_mbuf, and i wrote the following code: struct ipv4_hdr *ipv4_hdr; struct tcp_hdr *tcp_hdr; uint32_t payload_len, ip_len; uint8_t *payload = NULL; ipv4_hdr = rte_pktmbuf_mtod_offset(m, struct ipv4_hdr *, sizeof(struct ether_hdr)); ip_len = ntohs(

Re: [dpdk-dev] About the LRU Cache based DPDK?

2018-11-26 Thread bai bakari
OK, thank you very much! -- Original -- From: "Dumitrescu, Cristian"; Date: Tue, Nov 27, 2018 05:49 AM To: "bai bakari"<912873...@qq.com>;"dev"; Subject: RE: [dpdk-dev] About the LRU Cache based DPDK? > -Origin

[dpdk-dev] About the LRU Cache based DPDK?

2018-11-26 Thread bai bakari
Hi all, I'm going to implement a LRU Cache based DPDK. The most famous implementation of LRU is based on LinkedHashMap. I know that DPDK has a `rte_hash` library, but I don't know whether it can assist me to build a LRU Cache. Can someone give me some advice? Thanks a lot in advance.