DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Jog Lie <deco33000@yandex.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] dpdk - poll mode - context switches
Date: Wed, 25 Feb 2015 11:06:16 +0000	[thread overview]
Message-ID: <20150225110616.GB4896@bricha3-MOBL3> (raw)
In-Reply-To: <1234251424858091@web12h.yandex.ru>

On Wed, Feb 25, 2015 at 10:54:51AM +0100, Jog Lie wrote:
> Hello,
> 
> I am not sure to understand the mechanism behind dpdk concerning the context switches.
> I have two user space applications that need access to the NIC according to incoming port rules (port 80 and port 443).
> 
> How to be sure that DPDK spreads the load to the right application ? 
> 
> Will 2 dpdk instances be needed (one per app) -> two incoming packets analysis to "know" if the packet should be forwarded to 
> the user space process ? Which would basically be the same thing as inefficient promiscuous mode.
> 
> i don't understand that "filtering" point.
> 
> Could you please clarify ?
> 
> Thanks
> 
> -- 
> Jog

Hi Jog,

The missing link in connecting applications which receive packets from port
80/443 and DPDK itself is the TCP/IP stack in use. DPDK itself does not include
any stack, so you'll need to select a stack to use with your applications. The
mechanics of how apps talk to ports and how traffic gets filtered to them is
largely the stack's responsibility.

/Bruce

  reply	other threads:[~2015-02-25 11:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25  9:54 Jog Lie
2015-02-25 11:06 ` Bruce Richardson [this message]
2015-02-25 11:21   ` Jog Lie

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=20150225110616.GB4896@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=deco33000@yandex.com \
    --cc=dev@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).