[dpdk-dev] how to get driver name for a given port ID

Montorsi, Francesco fmontorsi at empirix.com
Mon Oct 26 15:17:36 CET 2015


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



More information about the dev mailing list