From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by dpdk.org (Postfix) with ESMTP id 02B9BC546 for ; Tue, 28 Apr 2015 12:57:33 +0200 (CEST) Received: by lbbqq2 with SMTP id qq2so103959479lbb.3 for ; Tue, 28 Apr 2015 03:57:32 -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=BLasvm9Z+jb33+m9QF0MidM+qls8cYiV1ciYY1R00bo=; b=aZwXUL0EiJ7lJ1ZD/XV+ESa8n/KiybHnll+kPY7LwayIdmE6YcxAFLzdCXe9Qhz8FC MAZswz2FsKUP6Ri5t0zBMftQR1QiE/0m7QHHeG1Y9F6Cb0KAQY57MwXRtm+EtucDZYB7 DEGnfLnT3g0BgZPrmtKWPIF7pUp6aYnrLimFYWntQBAKDdMowRxSRV/voMpe6tDUkX5r NUmiO0Eq/AKRgnLTU/DXbHcTZ91rYW8RXX9ycQBZyM7o6gTbN3Yddu+cZcCKLAETuMcq clFGVGM5wDEQg7OYz6XGTyIB6/mTszmX0gqg2EGX0hpHyOWyeTOmV/IrOcNN+6ZdFhuM s7KQ== MIME-Version: 1.0 X-Received: by 10.112.235.133 with SMTP id um5mr14382381lbc.7.1430218652745; Tue, 28 Apr 2015 03:57:32 -0700 (PDT) Received: by 10.114.82.169 with HTTP; Tue, 28 Apr 2015 03:57:32 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Apr 2015 13:57:32 +0300 Message-ID: From: Vladimir Medvedkin To: Pavel Odintsov Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 10:57:33 -0000 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 >