[dpdk-dev] [PATCH v9 4/8] ethdev: make get port by name and get name by port public

Pattan, Reshma reshma.pattan at intel.com
Tue Jun 14 23:55:55 CEST 2016



> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> Sent: Tuesday, June 14, 2016 9:24 PM
> To: Pattan, Reshma <reshma.pattan at intel.com>
> Cc: dev at dpdk.org; david.marchand at 6wind.com
> Subject: Re: [dpdk-dev] [PATCH v9 4/8] ethdev: make get port by name and get
> name by port public
> 
> 2016-06-14 10:38, Reshma Pattan:
> > Converted rte_eth_dev_get_port_by_name to a public API.
> > Converted rte_eth_dev_get_name_by_port to a public API.
> 
> No justification?

I will add the justification to commit message. 

> 
> It was planned to remove these functions.
> The unique naming of the device interfaces could be improved in EAL.

Packet capture framework  provides APIs  to enable or disable  packet capture either using   portid, or pci adrres /device name. 
These apis were made public for packet capture framework  library to convert pci address and device names to port id  internally,
 and use the port information for registering the RxTx callbacks. These APIs are needed, without which library will not work. 

Thanks,
Reshma



More information about the dev mailing list