From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id EF9B9C52E for ; Tue, 28 Apr 2015 13:03:41 +0200 (CEST) Received: by wgso17 with SMTP id o17so147259460wgs.1 for ; Tue, 28 Apr 2015 04:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ogpruUxRrEt+uwRVW5efIKOJjiSr08PMdQhl+c4VxQc=; b=i/bKyDHW+M9Pc4Wc74eB3dwPjkkTTtliv2cwZRMnu5/zIV5ybkN/T975KlL7DinkHq YlJRgy0UsDDjxYWMH3hU88WpyUyuL/ikwhjlVCdjygKECvsbi4iLyViRrt7aRT9kzsPh oJ012sx6XpXt5X2DPZitrBYSFjrKrZnYSb96u8Zb9esuAMzwNbM5msgaZDqBzXjlMHa+ P+OAlpMAPORI/LQyVuezSPx/kKqSWx7jifR34rPYV3hFkl2P4PD5nUD0vp9lJ2zVYnjf hakUE/Pm9nxCLrmBnJERVUAamH12wQn/Qg4yEO44RuzM2ihWGSsqZR/9GYcsMHjqF136 9JGA== MIME-Version: 1.0 X-Received: by 10.194.81.104 with SMTP id z8mr30657571wjx.45.1430219021807; Tue, 28 Apr 2015 04:03:41 -0700 (PDT) Received: by 10.27.136.70 with HTTP; Tue, 28 Apr 2015 04:03:41 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Apr 2015 14:03:41 +0300 Message-ID: From: Pavel Odintsov To: Vladimir Medvedkin Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Can't allocate different number of TX and RX queues for single port of ixgbe NIC 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: Tue, 28 Apr 2015 11:03:42 -0000 Wow! Thank you so much :) It works fine now! On Tue, Apr 28, 2015 at 1:57 PM, Vladimir Medvedkin wrote: > Hi Pavel, > > I think mistake is here: > -int eth_configure_ret = rte_eth_dev_configure(current_port, tx_queues, > rx_queues, &default_port_conf); > +int eth_configure_ret = rte_eth_dev_configure(current_port, rx_queues, > tx_queues, &default_port_conf); > according to > http://dpdk.org/doc/api/rte__ethdev_8h.html#ac30d075b4b206c7122e200164ce69893 > second arg is number of rx queues > > Regards, > Vladimir > > 2015-04-28 13:02 GMT+03:00 Pavel Odintsov : >> >> Hello, Network Performance Gurus! >> >> I have Debian Jessie with 3.16 kernel, DPDK 2.0.0 with ixgbe NIC. And >> I wrote following code: >> https://gist.github.com/pavel-odintsov/e1f64de4d56c0ab1b37c >> >> I try to allocate 2 queues for TX and only 1 queue for RX and I can't >> do it with error (detailed error message >> https://gist.github.com/pavel-odintsov/507cf7a082793f547120): >> PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f9e9dcdbc80 >> hw_ring=0x7f9e9dd41500 dma_addr=0x36b41500 >> PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f9e9dcd9b40 >> hw_ring=0x7f9e9dd51580 dma_addr=0x36b51580 >> PMD: ixgbe_set_tx_function(): Using simple tx code path >> PMD: ixgbe_set_tx_function(): Vector tx enabled. >> EAL: Error - exiting with code: 1 >> Cause: Can't configure TX queue 1 for port 0 >> >> I could fix this issue with allocation 2 queues for TX and 2 queues >> for RX. But it's useless for my aplication because I need multiple TX >> queue but could use only one RX and I want ability to specify >> different number of queues for NIC. >> >> Thank you so much! >> >> -- >> Sincerely yours, Pavel Odintsov > > -- Sincerely yours, Pavel Odintsov