]> git.droids-corp.org - dpdk.git/commit
ethdev: move driver interface functions to its own file
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 11 Feb 2022 19:11:43 +0000 (19:11 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 11 Feb 2022 20:17:34 +0000 (21:17 +0100)
commit4b4f810e47647f9deeacf04aa1e332b548f61461
treede87996ffa3a30860f9f4f0cb55bdf662c491c7b
parenta41f593f1bce27cd94eae0e85a8085c592b14b30
ethdev: move driver interface functions to its own file

ethdev has two interfaces, one interface between applications and
library, these APIs are declared in the rte_ethdev.h public header.
Other interface is between drivers and library, these functions are
declared in ethdev_driver.h and marked as internal.

But all functions are defined in rte_ethdev.c file. This patch moves
functions for drivers to its own file, ethdev_driver.c for cleanup, no
functional change in functions.

Some public APIs and driver helpers call common internal functions,
which were mostly static since both were in same file. To be able to
move driver helpers, common functions are moved to ethdev_private.c.
(ethdev_private.c is used for functions that are internal to the library
and shared by multiple .c files in the ethdev library.)

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/ethdev/ethdev_driver.c
lib/ethdev/ethdev_private.c
lib/ethdev/ethdev_private.h
lib/ethdev/rte_ethdev.c