DPDK usage discussions
 help / color / mirror / Atom feed
From: Richard Nutman <Richard.Nutman@s-a-m.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Multiple UDP ports Per NIC
Date: Thu, 7 Jun 2018 10:10:01 +0000	[thread overview]
Message-ID: <733AB18813E3864094592CC5191B172A235C1353@EX-UKHA-01.ad.s-a-m.com> (raw)
In-Reply-To: <CAK9TsR0ygQKJVa2sq1hq9SSX_w9EsG=_5gHE5ed+j_zRUC6gmA@mail.gmail.com>

Hi Kevin,

This is possible if you use the rte_flow system on NIC's that support it. In older versions of DPDK it was called the Flow Director.  This enables you to steer network streams to a particular receive queue, which can be processed on a particular cpu core.

See http://dpdk.org/doc/api/rte__flow_8h.html for more details;
Example; http://dpdk.org/doc/api/examples_2flow_filtering_2main_8c-example.html

Alternatively you can receive all packets on 1 or several cores (if you use something like RSS) and can sort and send to different cores if needs be.

Transmit works similar. Just set up multiple TX queues for each core you want to have active sending from.

Pay particular attention to which functions are thread-safe in DPDK, especially for packet pools.

-Richard.

> -----Original Message-----
> From: Kevin Kall [mailto:fishforish@gmail.com]
> Sent: 06 June 2018 15:30
> To: users@dpdk.org
> Subject: [dpdk-users] Multiple UDP ports Per NIC
> 
> Hello,
> 
> I am brand-new to DPDK (just found out about it) and have what is likely a
> simple/stupid question.
> 
> Do your libraries/framework allow for different UDP/IP packet streams being
> received on a single NIC (different UDP ports) to be directed to/processed by
> separate CPU cores (as if each CPU core was opening a different UDP
> socket)?
> 
> Same goes for transmit - can different CPU cores transmit on separate UDP
> ports on a single NIC?
> 
> If so, can someone point me to an example?
> 
> Thanks so much.
> 
> Fish
---------------------------------------------------------------------------------------
This email has been scanned for email related threats and delivered safely by Mimecast.
For more information please visit http://www.mimecast.com
---------------------------------------------------------------------------------------


  reply	other threads:[~2018-06-07 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-06 14:29 Kevin Kall
2018-06-07 10:10 ` Richard Nutman [this message]
     [not found]   ` <CAK9TsR0GdU6eR27Pz5+nQOHhBM9ZH6GnXecuBL9QsVbXZ4rRSw@mail.gmail.com>
2018-06-07 14:00     ` [dpdk-users] [External] " Richard Nutman

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=733AB18813E3864094592CC5191B172A235C1353@EX-UKHA-01.ad.s-a-m.com \
    --to=richard.nutman@s-a-m.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).