]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/nics/build_and_test.rst
ethdev: refine debug build option
[dpdk.git] / doc / guides / nics / build_and_test.rst
index e83dd4628c70e4ae77b0396c38a46c6cf350beea..e8b29c2277e2f7a1982c707e968065fff91ea461 100644 (file)
@@ -26,6 +26,22 @@ This will also build testpmd.
 Detailed instructions are available
 in the :doc:`meson build guide <../prog_guide/build-sdk-meson>`.
 
+The ethdev layer supports below build options for debug purpose:
+
+- ``RTE_ETHDEV_DEBUG_RX`` (default **disabled**)
+
+  Build with debug code on Rx path.
+
+- ``RTE_ETHDEV_DEBUG_TX`` (default **disabled**)
+
+  Build with debug code on Tx path.
+
+.. Note::
+
+   The ethdev library use above options to wrap debug code to trace invalid parameters
+   on data path APIs, so performance downgrade is expected when enabling those options.
+   Each PMD can decide to reuse them to wrap their own debug code in the Rx/Tx path.
+
 Running testpmd in Linux
 ------------------------