From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com [209.85.213.174]) by dpdk.org (Postfix) with ESMTP id 997C65936 for ; Mon, 11 Aug 2014 05:28:36 +0200 (CEST) Received: by mail-ig0-f174.google.com with SMTP id c1so3619244igq.13 for ; Sun, 10 Aug 2014 20:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=02hj480C8WH2Td1Zd2soFl7NiLrx6mwiZo50de1u7Bg=; b=yZbF4DYG+Gjz8hbxlhBgKVE4+c6R8yo6cizIpys20N67uUP3/1Afm2xTouqWLAqEwF vvT+74HGy8MkNrorWe11ImkyKgLLDUA4J/Xwt8IitEuixH5jkBtg126nLwkdm84hH6au P8WcHiUUiBqOL5mQJg58iRsm4Xkb80zxO814nAwVXzinAB7o+qLiCgZJmG01Ad0F+O+z O9s66oKeTzrvH7ONq9l9N70nc93l0lyZHsppBDJcvSwkti289rtbf8/ktwKTcuwF26j7 9ruuJkX8Ql5WtEUfmRdV7Nebo3QBFTLbQBdIviOT9tDiE6TM9HXgwb0ohF/nvZRMCqHa 7zmg== X-Received: by 10.42.23.16 with SMTP id q16mr31059998icb.0.1407727884780; Sun, 10 Aug 2014 20:31:24 -0700 (PDT) MIME-Version: 1.0 Sender: kay21s@gmail.com Received: by 10.64.206.166 with HTTP; Sun, 10 Aug 2014 20:31:04 -0700 (PDT) In-Reply-To: <20140810111127.3638a395@haswell.linuxnetplumber.net> References: <20140810111127.3638a395@haswell.linuxnetplumber.net> From: Kai Zhang Date: Sun, 10 Aug 2014 23:31:04 -0400 X-Google-Sender-Auth: g55aeQv-jJc7iJVE6SR-rktoMbM Message-ID: To: Stephen Hemminger Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Problem in multi-queue receiving X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2014 03:28:36 -0000 Thanks, Stephen. That's the problem. On Sun, Aug 10, 2014 at 2:11 PM, Stephen Hemminger < stephen@networkplumber.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. >