From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by dpdk.org (Postfix) with ESMTP id 2BB878E5D for ; Tue, 27 Oct 2015 11:26:39 +0100 (CET) Received: by iofz202 with SMTP id z202so215299593iof.2 for ; Tue, 27 Oct 2015 03:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=8ubcWdugTuXP8XF/qKPImIF6SQrDLxkfkTD/pTSHfok=; b=N/E+BVtvpKRe9JwnxkSmP7KgCcPEbBAkVOAgYRa+nD+HaPu8inPOiUwonyblnB9Sm0 axdhddtqmWSRRq3sffvYiPOAcBokQr0hIeqbAitdojZ3QPIyLpzhsVqNSzE5pYL6oLu5 3cPJvJ1rasdMF1/L7Eonx7hsq4tRN+/dHbL2AXNodewT33V1pYvBpjy9VZYtho1ZphkR Jh40LLisnjNeynY0EQ6G8nLMKopB/wj8dNc+yF9+p3kWubtx3ijX+y2cc/cabdkr1OQf 3RcboxwQYY4EZs/zDoqi+c3ZeFw4UUYcy6WPSIrP8VfFxzILVbf58tb8oI0pqhU+lNbp xTMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=8ubcWdugTuXP8XF/qKPImIF6SQrDLxkfkTD/pTSHfok=; b=EokDS/VKfP/f0waELeklaItlJCRZhk9VkIhVtAagOTibOMoq9p6bfZPZGoIkSxvRST L0mNpiuYCL+jGMNf1FwNWWp1fqsLaMD0KEvHfU7tgWbmOn/TD37EFebSydI6ZvmshKFo zKAlog4b04lVX7EQJmLFhMclxFWPL4TFaC2uciFy2cSZJF970vOtWc/ZYzBFeWVedWM4 Zp3/tj0ZTfr8pPLPTv/c7Ry5T8yuE0Yagep7f5P7M8FhcrZB/eVPF5GlQe8XhVJ3SFRE Wtpzsbtkqs08tbhZJMC3ErRhYKhEakTdXE6zpnh7hO7wLJ6wakX8eGbkVf6nJ8etTMXq rlvw== X-Gm-Message-State: ALoCoQkzwA7hgSkD0CKMyOXyeQaWGwSqZL76XfUbnTqLbBvEIqW99XnpTpA+4Y4IDOKS8ibfoLqQ X-Received: by 10.107.150.12 with SMTP id y12mr7977288iod.52.1445941598588; Tue, 27 Oct 2015 03:26:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.16.166 with HTTP; Tue, 27 Oct 2015 03:26:19 -0700 (PDT) In-Reply-To: <7a035a46a649429084c708cd2c5f8372@bilemail1.empirix.com> References: <5796b5e2f5d14e9ba1299aa942d6c7f0@bilemail1.empirix.com> <7a035a46a649429084c708cd2c5f8372@bilemail1.empirix.com> From: Andriy Berestovskyy Date: Tue, 27 Oct 2015 11:26:19 +0100 Message-ID: To: "Montorsi, Francesco" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] how to get driver name for a given port ID 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, 27 Oct 2015 10:26:39 -0000 Hi Francesco, You're on the right track. Please note that struct rte_eth_dev_info also has max_rx_queues field - maximum number of RX queues the NIC supports. Regards, Andriy On Tue, Oct 27, 2015 at 10:59 AM, Montorsi, Francesco wrote: > Hi, > Just as reference for other DPDK users: the solution to the problem is si= mple: > > rte_eth_dev_info_get (uint8_t port_id, struct rte_eth_dev_info *dev_info) > > returns a dev_info structure that contains "driver_name"... > > HTH, > Francesco > > > >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Montorsi, >> Francesco >> Sent: luned=C3=AC 26 ottobre 2015 15:18 >> To: dev@dpdk.org >> Subject: [dpdk-dev] how to get driver name for a given port ID >> >> Hi all, >> >> Is there an API to retrieve the driver name for a certain port ID before= calling >> rte_eth_dev_configure()? >> >> My use case is: I'm trying to call rte_eth_dev_configure() with nb_rx_q= =3D4 >> and found that this works for ixgbe driver but it doesn't for "rte_em_pm= d" >> (1Gbps device): >> >> ERROR HwEmulDPDKPort::init() rte_eth_dev_configure: err=3D-22, port=3D0: >> Unknown error -22 >> EAL: PCI device 0000:03:00.0 on NUMA socket 0 >> EAL: remove driver: 8086:105e rte_em_pmd >> EAL: PCI memory unmapped at 0x7feb40000000 >> EAL: PCI memory unmapped at 0x7feb40020000 >> >> So, for those devices I want to use nb_rx_q=3D1... >> >> Thanks, >> >> Francesco Montorsi > --=20 Andriy Berestovskyy