From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) by dpdk.org (Postfix) with ESMTP id D8A356A98 for ; Thu, 4 Sep 2014 09:12:13 +0200 (CEST) Received: by mail-qa0-f42.google.com with SMTP id dc16so5066178qab.15 for ; Thu, 04 Sep 2014 00:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=prg2KYmzbK9OJwuQSz8hNOmo94eWK0o6xynASGGM4ps=; b=fXG1XTISUfQoQ6Xoo9PqUyMbJG+88pN3P/yK1P61YKmHZy2JyHG6LsN5tk5jTPofHw oIRhMBqhZvzeNu1OEtUrRcUVpTSW3KgBgZqu+iunb7DhbmbY/kvqeuEmssyiWj8GbRL+ Tr79rqZ93/sO2uV1uyh8sZBYDoLuV7TzCqxkLp5wBRDGrV7pd0cX1livRgkMPIrCXO/n pcxiZ/oXHd0goDynroSQfaW9xbtJ85RJqXtrs6gRp7KIfcNEvaCkmHf5eYSNoy9Iqyjx bCtuly+RqUVreJUMteN9bt+9HKjIEUAlQzDeEmAqIGnmAGQcgAYLFaPmAvAxEZgmLaKO TALw== MIME-Version: 1.0 X-Received: by 10.224.47.67 with SMTP id m3mr4305767qaf.28.1409815013228; Thu, 04 Sep 2014 00:16:53 -0700 (PDT) Received: by 10.96.70.194 with HTTP; Thu, 4 Sep 2014 00:16:53 -0700 (PDT) Date: Thu, 4 Sep 2014 11:16:53 +0400 Message-ID: From: Sergey Mironov To: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] i211 controller with 0 queues per port 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: Thu, 04 Sep 2014 07:12:14 -0000 2014-08-26 13:18 GMT+04:00 Sergey Mironov : > Hi. > > I've got a SCB-8973 machine equipped with i212 network controller (6 > ports). My dpdk application (see the code snippet below) returns zeros > for both dev_info.max_tx_queues and dev_info.max_rx_queues > > Have anybody got an experience of addressing this problem? > > Regards, > Sergey > > > > for (portid = 0; portid < nb_ports; portid++) { > > struct rte_eth_dev_info di; > rte_eth_dev_info_get(portid, &di); > > ELOG_INFO(MAIN, "%-6d %-6d %-6d", portid, di.max_tx_queues, > di.max_rx_queues); > } Hi! I have got an update for my "i212 problem". First of all, I found that I have made a mistake. My controller is named i211, not i212 :) Next, i211 controller is controlled by the lib_pmd_e1000 driver. Unfortunately, looks like it's support is pure. For example, igb_ethdev.c contains function eth_igb_infos_get() which should set number of tx/rx queues supported by the hardware. It contains huge [switch] but there is no i211 case! That is why I see zeros every time I try to start this NC. Also, there are few other places which mention i210, but not mention i211. I've attached a patch which adds necessary i211 support, but I didn't check it enough to say it is totally correct. For now I see that it just able to send and receive some packets. Could you please review/correct it? Thanks in advance, Sergey