DPDK usage discussions
 help / color / mirror / Atom feed
From: "Singh, Jasvinder" <jasvinder.singh@intel.com>
To: Royce Niu <royceniu@gmail.com>, "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Why we need [MASTER] in DPDK Pipeline
Date: Wed, 23 Mar 2016 20:06:10 +0000	[thread overview]
Message-ID: <54CBAA185211B4429112C315DA58FF6DDDA481@IRSMSX103.ger.corp.intel.com> (raw)
In-Reply-To: <CAOwUCNvB+fzkJJa4c13qRJ0EQnrpAy4x1CN7ZTCaUEYupP9esA@mail.gmail.com>

Hi Royce,

> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Royce Niu
> Sent: Wednesday, March 23, 2016 3:51 PM
> To: users@dpdk.org
> Subject: [dpdk-users] Why we need [MASTER] in DPDK Pipeline
> 
> Dear all,
> 
> I am using DPDK Pipeline to build a Firewall. I found assign a core to MASTER.
> Could you please tell me why we need MASTER? and why MASTER need a
> dedicated core ? since I meet error to bind MASTER and Firewall to same
> core.
> 

Master pipeline, basically is a management thread that allow users to interact and manage ip-pipeline application during run time. It offers CLI to configure ports, collecting stats, add/remove table entries, loading rules files, displaying rules, quit etc. Therefore, the master pipeline receives inputs from the user, translates them into formal command and forwards command to the desired pipeline (data plane thread). The packet processing pipeline which is continuously working on the packets periodically checks whether there is any command to handle or not, and execute them accordingly if there is any. In addition to this, master pipeline also maintains a copy of all the tables used in pipelines. If user wants to inspect the rules, master pipeline will display them without interrupting data plane thread. 

Now, if anyone don't want to assign dedicated core to master pipeline, then it should also work. However, a slight impact on the performance may be visible depending the commands being run.

In your case, you can bind both master and firewall pipelines to single core and they should work correctly.

Thanks.

Regards,
Jasvinder

  reply	other threads:[~2016-03-23 20:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-23 15:51 Royce Niu
2016-03-23 20:06 ` Singh, Jasvinder [this message]
2016-03-24  7:16   ` Royce Niu
2016-03-24 15:22     ` Singh, Jasvinder

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=54CBAA185211B4429112C315DA58FF6DDDA481@IRSMSX103.ger.corp.intel.com \
    --to=jasvinder.singh@intel.com \
    --cc=royceniu@gmail.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).