* [dpdk-dev] how to get driver name for a given port ID
@ 2015-10-26 14:17 Montorsi, Francesco
2015-10-27 9:59 ` Montorsi, Francesco
0 siblings, 1 reply; 3+ messages in thread
From: Montorsi, Francesco @ 2015-10-26 14:17 UTC (permalink / raw)
To: dev
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=4 and found that this works for ixgbe driver but it doesn't for "rte_em_pmd" (1Gbps device):
ERROR HwEmulDPDKPort::init() rte_eth_dev_configure: err=-22, port=0: 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=1...
Thanks,
Francesco Montorsi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] how to get driver name for a given port ID
2015-10-26 14:17 [dpdk-dev] how to get driver name for a given port ID Montorsi, Francesco
@ 2015-10-27 9:59 ` Montorsi, Francesco
2015-10-27 10:26 ` Andriy Berestovskyy
0 siblings, 1 reply; 3+ messages in thread
From: Montorsi, Francesco @ 2015-10-27 9:59 UTC (permalink / raw)
To: Montorsi, Francesco, dev
Hi,
Just as reference for other DPDK users: the solution to the problem is simple:
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ì 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=4
> and found that this works for ixgbe driver but it doesn't for "rte_em_pmd"
> (1Gbps device):
>
> ERROR HwEmulDPDKPort::init() rte_eth_dev_configure: err=-22, port=0:
> 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=1...
>
> Thanks,
>
> Francesco Montorsi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] how to get driver name for a given port ID
2015-10-27 9:59 ` Montorsi, Francesco
@ 2015-10-27 10:26 ` Andriy Berestovskyy
0 siblings, 0 replies; 3+ messages in thread
From: Andriy Berestovskyy @ 2015-10-27 10:26 UTC (permalink / raw)
To: Montorsi, Francesco; +Cc: dev
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
<fmontorsi@empirix.com> wrote:
> Hi,
> Just as reference for other DPDK users: the solution to the problem is simple:
>
> 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ì 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=4
>> and found that this works for ixgbe driver but it doesn't for "rte_em_pmd"
>> (1Gbps device):
>>
>> ERROR HwEmulDPDKPort::init() rte_eth_dev_configure: err=-22, port=0:
>> 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=1...
>>
>> Thanks,
>>
>> Francesco Montorsi
>
--
Andriy Berestovskyy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-27 10:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 14:17 [dpdk-dev] how to get driver name for a given port ID Montorsi, Francesco
2015-10-27 9:59 ` Montorsi, Francesco
2015-10-27 10:26 ` Andriy Berestovskyy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).