From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-f174.google.com (mail-qc0-f174.google.com [209.85.216.174]) by dpdk.org (Postfix) with ESMTP id 5DD99590C for ; Fri, 22 Aug 2014 09:08:42 +0200 (CEST) Received: by mail-qc0-f174.google.com with SMTP id l6so10396871qcy.33 for ; Fri, 22 Aug 2014 00:12:21 -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=Ha1D4u73W/cz442y9pa5dO4vJEGuRIHmdUBF0RuN4vE=; b=k5IzSQzfas0zxmG6wkemPGqE78VlVJlI1rmYoS/5ITYtcdual7D3pwAd/TJH60Amy7 wMwUMGLmgZouyKiI2jq2FNp99E1w1MspNiyvsLA/+JyufCXa/JqwhevTru4WW29ts6/E +bZTm8Km97wA0+072c448RU1TXHpnSnEO0t7opkUd2IgzSypC7am78tl4g0aIu5PRH2+ wYmkIZR+mHiq9zada+kgUWwYdAhljlOmMmBNrRzkbzktnoX2IevLXG/NPiLuqx3MsZRK T7N/4vld0zLha2kg4wPOSuGgnDP2mrmQxiR6/BUxIn3IXGiIdMYDR45EtUFRfKb3aOct oCpw== MIME-Version: 1.0 X-Received: by 10.224.19.138 with SMTP id a10mr5210619qab.98.1408691541073; Fri, 22 Aug 2014 00:12:21 -0700 (PDT) Received: by 10.96.70.194 with HTTP; Fri, 22 Aug 2014 00:12:21 -0700 (PDT) In-Reply-To: References: Date: Fri, 22 Aug 2014 11:12:21 +0400 Message-ID: From: Sergey Mironov To: Alex Markuze Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] ixgbe network card has dev_info.max_rx_queues == 0 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: Fri, 22 Aug 2014 07:08:42 -0000 Thanks, I understand that. I see in the ixgbe's code, that dev_info.max_rx_queues is initialized from the hw->mac.max_rx_queues value dev_info->max_rx_queues = (uint16_t)hw->mac.max_rx_queues; dev_info->max_tx_queues = (uint16_t)hw->mac.max_tx_queues; but I can't figure out how this hw->mac is produced. Is it mapped to the memory region controlled by the network adapter directly? 2014-08-21 16:52 GMT+04:00 Alex Markuze : > RX and TX Are short hand for Receive and Transmit Queues. > These Queues Store the in/egress packets. > > Just looking at the info you've sent it tells you that max_rx_queues > for this dev is 0 (Clearly something is wrong here) so the nb_rx_q > which is 3 is an Invalid Value -EINVAL == -22. > > On Thu, Aug 21, 2014 at 3:26 PM, Sergey Mironov wrote: >> Hi. I have face a strange error on one of my network cards. Call to >> rte_eth_dev_configure returns with error code -22. Increaing the >> verbosity level shows the following: >> >> >> PMD: rte_eth_dev_configure: ethdev port_id=2 nb_rx_queues=3 > 0 >> EAL: Error - exiting with code: 1 >> >> here is the snippet of code which returns the error >> >> >> ./lib/librte_ether/rte_ethdev.c : 513 >> >> (*dev->dev_ops->dev_infos_get)(dev, &dev_info); >> if (nb_rx_q > dev_info.max_rx_queues) { >> PMD_DEBUG_TRACE("ethdev port_id=%d nb_rx_queues=%d > %d\n", >> port_id, nb_rx_q, dev_info.max_rx_queues); >> return (-EINVAL); >> } >> >> What does this error means (what is rx queues of an adapter?) What may >> cause such a problem? I am using dpdk 1.5.1r1. >> >> Thanks in advance, >> Sergey