DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Query Regarding KNI
@ 2016-09-08 10:38 Amit Sharma
  2016-09-09 17:10 ` Jason Kwon
  0 siblings, 1 reply; 2+ messages in thread
From: Amit Sharma @ 2016-09-08 10:38 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] Query Regarding KNI
  2016-09-08 10:38 [dpdk-users] Query Regarding KNI Amit Sharma
@ 2016-09-09 17:10 ` Jason Kwon
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Kwon @ 2016-09-09 17:10 UTC (permalink / raw)
  To: Amit Sharma; +Cc: users

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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-09 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-08 10:38 [dpdk-users] Query Regarding KNI Amit Sharma
2016-09-09 17:10 ` Jason Kwon

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).