doc: Convert nvmf doc to markdown

Change-Id: I1a1c8570f4b2b2cd6074a4bdd6102751f6239715
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Ben Walker 2017-01-04 14:47:02 -07:00
parent 6d4ce17380
commit 4aba7b498d
5 changed files with 17 additions and 90 deletions

View File

@ -766,8 +766,8 @@ INPUT = ../include/spdk \
nvme/async_completion.md \ nvme/async_completion.md \
nvme/initialization.md \ nvme/initialization.md \
nvme/io_submission.md \ nvme/io_submission.md \
nvmf/index.txt \ nvmf/index.md \
nvmf/getting_started.txt \ nvmf/getting_started.md \
iscsi/index.txt \ iscsi/index.txt \
iscsi/getting_started.txt iscsi/getting_started.txt

View File

@ -18,6 +18,6 @@ which avoids kernel context switches and eliminates interrupt handling overhead.
## Modules {#modules} ## Modules {#modules}
- @ref nvme - @ref nvme
- \ref nvmf - @ref nvmf
- @ref ioat - @ref ioat
- \ref iscsi - \ref iscsi

View File

@ -1,38 +1,4 @@
/*- # Getting Started Guide {#nvmf_getting_started}
* BSD LICENSE
*
* Copyright (c) Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Intel Corporation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* \page nvmf_getting_started NVMe over Fabrics Target Getting Started Guide
The NVMe over Fabrics target is a user space application that presents block devices over the The NVMe over Fabrics target is a user space application that presents block devices over the
network using RDMA. It requires an RDMA-capable NIC with its corresponding OFED software package network using RDMA. It requires an RDMA-capable NIC with its corresponding OFED software package
@ -52,32 +18,32 @@ machine, the kernel will need to be a release candidate until the code is actual
system running the SPDK target, however, you can run any modern flavor of Linux as required by your system running the SPDK target, however, you can run any modern flavor of Linux as required by your
NIC vendor's OFED distribution. NIC vendor's OFED distribution.
\section nvmf_prereqs Prerequisites # Prerequisites {#nvmf_prereqs}
This guide starts by assuming that you can already build the standard SPDK distribution on your This guide starts by assuming that you can already build the standard SPDK distribution on your
platform. By default, the NVMe over Fabrics target is not built. To build nvmf_tgt there are some platform. By default, the NVMe over Fabrics target is not built. To build nvmf_tgt there are some
additional dependencies. additional dependencies.
Fedora: Fedora:
\verbatim ~~~{.sh}
dnf install libibverbs-devel librdmacm-devel dnf install libibverbs-devel librdmacm-devel
\endverbatim ~~~
Ubuntu: Ubuntu:
\verbatim ~~~{.sh}
apt-get install libibverbs-dev librdmacm-dev apt-get install libibverbs-dev librdmacm-dev
\endverbatim ~~~
Then build SPDK with RDMA enabled, either by editing CONFIG to enable CONFIG_RDMA or Then build SPDK with RDMA enabled, either by editing CONFIG to enable CONFIG_RDMA or
enabling it on the `make` command line: enabling it on the `make` command line:
\verbatim ~~~{.sh}
make CONFIG_RDMA=y <other config parameters> make CONFIG_RDMA=y <other config parameters>
\endverbatim ~~~
Once built, the binary will be in `app/nvmf_tgt`. Once built, the binary will be in `app/nvmf_tgt`.
\section nvmf_config Configuring NVMe over Fabrics Target # Configuring NVMe over Fabrics Target {#nvmf_config}
A `nvmf_tgt`-specific configuration file is used to configure the NVMe over Fabrics target. This A `nvmf_tgt`-specific configuration file is used to configure the NVMe over Fabrics target. This
file's primary purpose is to define subsystems. A fully documented example configuration file is file's primary purpose is to define subsystems. A fully documented example configuration file is
@ -87,8 +53,6 @@ You should make a copy of the example configuration file, modify it to suit your
then run the nvmf_tgt application and pass it the configuration file using the -c option. Right now, then run the nvmf_tgt application and pass it the configuration file using the -c option. Right now,
the target requires elevated privileges (root) to run. the target requires elevated privileges (root) to run.
\verbatim ~~~{.sh}
app/nvmf_tgt/nvmf_tgt -c /path/to/nvmf.conf app/nvmf_tgt/nvmf_tgt -c /path/to/nvmf.conf
\endverbatim ~~~
*/

3
doc/nvmf/index.md Normal file
View File

@ -0,0 +1,3 @@
# NVMe over Fabrics {#nvmf}
- @ref nvmf_getting_started

View File

@ -1,40 +0,0 @@
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Intel Corporation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*!
\page nvmf NVMe over Fabrics
- \ref nvmf_getting_started
*/