Mention RTE_LIBRTE_MBUF_DEBUG and RTE_ENABLE_ASSERT which enable many debug checks in the mbuf library.
Signed-off-by: Thomas Monjalon <[email protected]> --- doc/guides/prog_guide/mbuf_lib.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/guides/prog_guide/mbuf_lib.rst b/doc/guides/prog_guide/mbuf_lib.rst index 4ad2a21f3f..badc0f3501 100644 --- a/doc/guides/prog_guide/mbuf_lib.rst +++ b/doc/guides/prog_guide/mbuf_lib.rst @@ -266,8 +266,13 @@ can be found in several of the sample applications, for example, the IPv4 Multic Debug ----- -In debug mode, the functions of the mbuf library perform sanity checks before any operation (such as, buffer corruption, -bad type, and so on). +When ``RTE_LIBRTE_MBUF_DEBUG`` is enabled at compilation, +some major mbuf operations (clone, copy, freeing) +perform sanity checks (such as buffer corruption, bad type, and so on). + +When ``RTE_ENABLE_ASSERT`` is enabled, +more basic checks are done in many functions. + Use Cases --------- -- 2.51.0

