All of lore.kernel.org
 help / color / mirror / Atom feed
* Segfault seen in netmap_compat app on Power8
@ 2017-04-06  9:04 Rahul Lakkireddy
  2017-04-06  9:36 ` gowrishankar muthukrishnan
  0 siblings, 1 reply; 3+ messages in thread
From: Rahul Lakkireddy @ 2017-04-06  9:04 UTC (permalink / raw)
  To: dev; +Cc: Kumar Sanghvi, Nirranjan Kirubaharan

Hi,

For netmap_compat bridge application on Power8, in netmap_regif
function, the assignment to nmif->ring_ofs[i] is not getting reflected
immediately.

As a result, the subsequent call to netmap_ring_setup ends up writing
data at wrong offset. This causes segfault in the app.

If we print the nmif->ring_ofs[i] after assignment, then, we see the
correct offset and application starts fine.

So, probably, some kind of barrier or mechanism to flush write is
required on Power8?

BTW, this was tried with ToT dpdk git tree on RHEL 7.3 having below
gcc version:

gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)

Thanks,
Rahul

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-12  6:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-06  9:04 Segfault seen in netmap_compat app on Power8 Rahul Lakkireddy
2017-04-06  9:36 ` gowrishankar muthukrishnan
2017-04-12  6:51   ` Rahul Lakkireddy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.