From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kai Zhang Subject: Re: Problem in multi-queue receiving Date: Sun, 10 Aug 2014 23:31:04 -0400 Message-ID: References: <20140810111127.3638a395@haswell.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: "dev-VfR2kkLFssw@public.gmane.org" To: Stephen Hemminger Return-path: In-Reply-To: <20140810111127.3638a395-a7a0dvSY7KrRI77zikRAJc56i+j3xesD0e7PPNI6Mm0@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Thanks, Stephen. That's the problem. On Sun, Aug 10, 2014 at 2:11 PM, Stephen Hemminger < stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> wrote: > On Sat, 9 Aug 2014 11:59:24 -0400 > Kai Zhang wrote: > > > Hi there, > > > > I have a problem for multi-queue receiving. > > > > For a specific application, I am not using the lcore abstractions in > DPDK. > > I launch rx and tx threads seperately. For one port with N queues, I > > launched N rx threads and N tx threads, with each thread in charge of > > receiving or sending only one queue. > > > > The tx threads work on their own queues well. However, all received > packets > > only go to queue 0 rx thread, and other rx threads receive nothing. > > > > My code is at : > > https://github.com/kay21s/dpdk/blob/master/examples/pthread/main.c > > It has a default NUM_QUEUE=2, which means port 0 is configured with 2 > > queues, and 2 rx threads and 2 tx threads are launched. > > Is there any problem in my implementation? or DPDK does not support it? > > > > Thanks a lot! > > Kai > > You aren't rxmode.mq_mode therefore you are getting the default value > of 0 == ETH_MQ_RX_NONE. You should set it to ETH_MQ_RX_RSS to enable > RSS mode. >