ethdev: add internal function to device struct from name
authorKumara Parameshwaran <kparameshwar@vmware.com>
Mon, 31 Jan 2022 14:32:33 +0000 (20:02 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 1 Feb 2022 17:15:04 +0000 (18:15 +0100)
commit961fb4029b8c52c0e8230d34993c354d70e10e14
tree666cae6e11a23320dab60d089662b05b4bf503b1
parentfa4dfda5fe9c3483944955986b60f4d536c4a8bc
ethdev: add internal function to device struct from name

The PMDs would need a function to access the rte_eth_devices
without accessing the global rte_eth_device array.

Cc: stable@dpdk.org
Signed-off-by: Kumara Parameshwaran <kparameshwar@vmware.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/ethdev/ethdev_driver.h
lib/ethdev/rte_ethdev.c
lib/ethdev/version.map