From: Jason Kwon <m43kwon@gmail.com>
To: Amit Sharma <amit.sh1094@gmail.com>
Cc: users <users@dpdk.org>
Subject: Re: [dpdk-users] Query Regarding KNI
Date: Fri, 9 Sep 2016 10:10:46 -0700 [thread overview]
Message-ID: <CAEo68aq9gndrHxNVRRAfsH+s3pVeEUTRK0SPUgHReZ-4XOtJyw@mail.gmail.com> (raw)
In-Reply-To: <CA+VcHB+=LQntAcujWJkURGu3nqgJL8DuzhaLP6HfmYNxx8Kt+g@mail.gmail.com>
Yes, it should be possible. For a given DPDK port, RX and TX must be on
separate "lcores," but can share the same physical core. So use the
command-line EAL options to map multiple lcores to a single core, for
instance:
# ./kni --lcores='(0,1)@1' -n 1 -- -P -p 0x1 --config="(0,0,1)"
In this example, I have a single DPDK port, with RX and TX mapped to two
lcores which themselves have been mapped to a single CPU core.
Jason
On Thu, Sep 8, 2016 at 3:38 AM, Amit Sharma <amit.sh1094@gmail.com> wrote:
> Hi,
>
> I am working on DPDK KNI example and want to use only 2 cores for 2 DPDK
> ports.
>
> Right now in my setup, i have created 2 KNI DPDK ports and for this setup i
> am using 4 different cores. I want to explore the option that i can use 1
> rx and 1 tx core for both the ports.
>
> Is it possible to do the same using KNI example? If yes, Any input will be
> very helpful.
>
> Thanks
> Amit Sharma
>
prev parent reply other threads:[~2016-09-09 17:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-08 10:38 Amit Sharma
2016-09-09 17:10 ` Jason Kwon [this message]
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=CAEo68aq9gndrHxNVRRAfsH+s3pVeEUTRK0SPUgHReZ-4XOtJyw@mail.gmail.com \
--to=m43kwon@gmail.com \
--cc=amit.sh1094@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).