DPDK usage discussions
 help / color / mirror / Atom feed
From: David Aldrich <David.Aldrich@EMEA.NEC.COM>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Is DPDK compatible with C++11 threads?
Date: Tue, 8 Nov 2016 13:12:08 +0000	[thread overview]
Message-ID: <c245ea7b4d224ead900ea371094482a6@EUX13SRV1.EU.NEC.COM> (raw)

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

             reply	other threads:[~2016-11-08 13:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-08 13:12 David Aldrich [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c245ea7b4d224ead900ea371094482a6@EUX13SRV1.EU.NEC.COM \
    --to=david.aldrich@emea.nec.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).