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 at 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 >
