From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by dpdk.org (Postfix) with ESMTP id 3FF0018F for ; Sun, 10 Aug 2014 20:08:44 +0200 (CEST) Received: by mail-pa0-f53.google.com with SMTP id rd3so9727967pab.26 for ; Sun, 10 Aug 2014 11:11:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=MNsmY1tzzSlzl8t/LBdoyaRJgfqF36jABv9GHLW7xus=; b=mt1igYv3OUtIc5eYF4VQYSqboRRoRk/XFNsCtQxoNxlVyLlmoT2vuRq4bk5PEZylUm 8RLabN6PgSsUxZ6/oEnTv0cY5/6UMKOodkgxqlnFhx83mhvC1Zuu+wO494Bf9Ml6nPIf SykZ+dQyTnPOjyGvha9lDBX4ddECBYnl6ULyYQu7LjuKwQkdz5RvHWR6JjIrpOet1RJv yZd7s6ughv2WnF7ia1bPzT9Ltf4ajZN5JSYEWZEgrx5uwNr7/1Xot8pwvwpCCuvZjJQX +zntN+hladENRerWaZ/snTzmd/URvpywBbXB+CMwgjm+FXR2P4Z3paw/aPmfNnAMYn4f vQGA== X-Gm-Message-State: ALoCoQkJibVqc98bZMGCyij4oS8w7ETrW5dOSHP/7KqY/v3jKkPQZbt8/wl0KyNEGh6GlgzelvF3 X-Received: by 10.70.61.67 with SMTP id n3mr27931243pdr.90.1407694290277; Sun, 10 Aug 2014 11:11:30 -0700 (PDT) Received: from haswell.linuxnetplumber.net (static-50-53-65-80.bvtn.or.frontiernet.net. [50.53.65.80]) by mx.google.com with ESMTPSA id v15sm13891156pdl.33.2014.08.10.11.11.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Aug 2014 11:11:30 -0700 (PDT) Date: Sun, 10 Aug 2014 11:11:27 -0700 From: Stephen Hemminger To: Kai Zhang Message-ID: <20140810111127.3638a395@haswell.linuxnetplumber.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Sun, 10 Aug 2014 18:08:44 -0000 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.