DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Memzone corruption Issue
@ 2021-05-26 14:52 Kumar, Ruban
  0 siblings, 0 replies; only message in thread
From: Kumar, Ruban @ 2021-05-26 14:52 UTC (permalink / raw)
  To: users


I have a sample_dpdk_app program which uses memzone as shared memory between the Lcores. The program was developed and tested using DPDK 19.02 , and the code works as expected. On compiling the same sample_dpdk_app with DPDK 20.08 , we notice the following issues,

  1.  The memzone used as shared memory seems to be corrupted. Primary writes a structure into the memzone and when secondary reads the structure, I see that some of the structure members are corrupted.
  2.  During compilation we see  this warning /opt/dpdk/dpdk-20.08/x86_64-native-linuxapp-icc/include/generic/rte_rwlock.h(142): warning #68: integer conversion resulted in a change of sign
if (x != 0 || __atomic_compare_exchange_n(&rwl->cnt, &x, -1, 1,

I am not sure if the above mentioned issues are related, Any help will be greatly appreciated !!

Primary lcore creates the memzone as shown below
const struct rte_memzone* zone = rte_memzone_reserve("testzone", 64*numFlows, rte_socket_id(), RTE_MEMZONE_2MB);

Secondary lcore does a lookup of the memzone as shown below

const struct rte_memzone* zone = rte_memzone_lookup("testzone");

Thanks & Regards,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-26 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 14:52 [dpdk-users] Memzone corruption Issue Kumar, Ruban

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git