summaryrefslogtreecommitdiffstats
path: root/src/spdk/doc/porting.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
commit19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch)
tree42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/spdk/doc/porting.md
parentInitial commit. (diff)
downloadceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz
ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/doc/porting.md')
-rw-r--r--src/spdk/doc/porting.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/spdk/doc/porting.md b/src/spdk/doc/porting.md
new file mode 100644
index 000000000..b6872bef1
--- /dev/null
+++ b/src/spdk/doc/porting.md
@@ -0,0 +1,21 @@
+# SPDK Porting Guide {#porting}
+
+SPDK is ported to new environments by implementing the *env*
+library interface. The *env* interface provides APIs for drivers
+to allocate physically contiguous and pinned memory, perform PCI
+operations (config cycles and mapping BARs), virtual to physical
+address translation and managing memory pools. The *env* API is
+defined in include/spdk/env.h.
+
+SPDK includes a default implementation of the *env* library based
+on the Data Plane Development Kit ([DPDK](http://dpdk.org/)).
+This DPDK implementation can be found in `lib/env_dpdk`.
+
+DPDK is currently supported on Linux and FreeBSD only.
+Users who want to use SPDK on other operating systems, or in
+userspace driver frameworks other than DPDK, will need to implement
+a new version of the *env* library. The new implementation can be
+integrated into the SPDK build by updating the following line
+in CONFIG:
+
+ CONFIG_ENV?=$(SPDK_ROOT_DIR)/lib/env_dpdk