From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bilemail2.empirix.com (bilemail2.empirix.com [208.67.76.246]) by dpdk.org (Postfix) with ESMTP id 153AD2A5B for ; Tue, 27 Oct 2015 11:00:10 +0100 (CET) Received: from BILEMAIL1.empirix.com (10.17.8.30) by bilemail2.empirix.com (10.17.8.31) with Microsoft SMTP Server (TLS) id 15.0.775.38; Tue, 27 Oct 2015 05:59:51 -0400 Received: from BILEMAIL1.empirix.com ([fe80::f9e0:9293:2523:f021]) by bilemail1.empirix.com ([fe80::f9e0:9293:2523:f021%22]) with mapi id 15.00.0775.031; Tue, 27 Oct 2015 05:59:32 -0400 From: "Montorsi, Francesco" To: "Montorsi, Francesco" , "dev@dpdk.org" Thread-Topic: how to get driver name for a given port ID Thread-Index: AdEP98y0znCZJGJcReCjnCX9E5S5EQApjWgA Date: Tue, 27 Oct 2015 09:59:32 +0000 Message-ID: <7a035a46a649429084c708cd2c5f8372@bilemail1.empirix.com> References: <5796b5e2f5d14e9ba1299aa942d6c7f0@bilemail1.empirix.com> In-Reply-To: <5796b5e2f5d14e9ba1299aa942d6c7f0@bilemail1.empirix.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.50.62] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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:00:10 -0000 Hi,=20 Just as reference for other DPDK users: the solution to the problem is simp= le: 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=EC 26 ottobre 2015 15:18 > To: dev@dpdk.org > Subject: [dpdk-dev] how to get driver name for a given port ID >=20 > Hi all, >=20 > Is there an API to retrieve the driver name for a certain port ID before = calling > rte_eth_dev_configure()? >=20 > 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_pmd= " > (1Gbps device): >=20 > 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 >=20 > So, for those devices I want to use nb_rx_q=3D1... >=20 > Thanks, >=20 > Francesco Montorsi