DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Is DPDK compatible with C++11 threads?
@ 2016-11-08 13:12 David Aldrich
  2016-11-08 17:04 ` Wiles, Keith
  0 siblings, 1 reply; 7+ messages in thread
From: David Aldrich @ 2016-11-08 13:12 UTC (permalink / raw)
  To: users

Hi

As a beginner with DPDK, I want to consider how we can convert an existing Linux application from using the kernel network stack to using DPDK.

This existing app is multi-threaded, using the C++11 thread, mutex etc. classes.  We assign threads to cores by calling pthread_setaffinity_np().

I have looked at the DPDK helloworld application and see that it launches threads using the DPDK API:

               /* call lcore_hello() on every slave lcore */
               RTE_LCORE_FOREACH_SLAVE(lcore_id) {
                              rte_eal_remote_launch(lcore_hello, NULL, lcore_id);
               }

If we use DPDK, can we retain our existing C++11 threads or are we obliged to use the DPDK threading APIs exclusively?

Perhaps a more basic question is applicable: is DPDK compatible with C++?

Best regards

David



Best regards

David

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

end of thread, other threads:[~2016-11-10 12:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 13:12 [dpdk-users] Is DPDK compatible with C++11 threads? David Aldrich
2016-11-08 17:04 ` Wiles, Keith
2016-11-08 17:23   ` Pavey, Nicholas
2016-11-09  8:40     ` David Aldrich
2016-11-09 21:00       ` Wiles, Keith
2016-11-10  4:14         ` Anupam Kapoor
2016-11-10 12:49           ` Pavey, Nicholas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).