[dpdk-dev] problem with rte_pktmbuf_prepend (possible bug?)

2014-02-18 Thread Periklis Akritidis
Hi Mario, Are you passing rte_pktmbuf_init as the obj_init argument to rte_mempool_create? It is called when the mbuf if freed and it will reset the fields. I vaguely remember I had the same issue at some point and resolved it somehow. This comes to mind. Cheers, Periklis On 18 Feb, 2014, at 6

[dpdk-dev] rte_eal_init independent from main(int argc, char** argv)

2014-02-18 Thread Periklis Akritidis
Hi Hamid, I do something similar and works fine. My compiler warning flags are more pedantic, so I have to ensure those strings are not const literals, but that doesn?t matter. I would appreciate an init that takes a struct with options too. On 18 Feb, 2014, at 8:57 pm, Hamid Ramazani wrote: