3. Source Organization
This section describes the organization of sources in the DPDK framework.
Libraries are located in subdirectories of
By convention a library refers to any code that provides an API to an application.
Typically, it generates an archive file (
.a), but a kernel module would also go in the same directory.
Drivers are special libraries which provide poll-mode driver implementations for
devices: either hardware devices or pseudo/virtual devices. They are contained
in the drivers subdirectory, classified by type, and each compiles to a
library with the format
X is the device class
Y is the driver name.
Several of the
driver/net directories contain a
base directory generally contains code the shouldn’t
be modified directly by the user. Any enhancements should be done via the
X_osdep.h files in that directory. Refer to the
local README in the base directories for driver specific instructions.
Applications are source files that contain a
They are located in the
The app directory contains sample applications that are used to test DPDK (such as autotests) or the Poll Mode Drivers (test-pmd).
The examples directory contains Sample applications that show how libraries can be used.