doc: reword contributor's guidelines
PATCH 1/1 doc: reword contributor's guidelines
I have revised sections 9-12 for grammar and clarity.
Signed-off-by Nandini Persad <[email protected]>
--- doc/guides/contributing/linux_uapi.rst | 32 ++-- doc/guides/contributing/patches.rst | 177 +++++++++++----------- doc/guides/contributing/stable.rst | 163 ++++++++------------ doc/guides/contributing/vulnerability.rst | 59 ++++---- 4 files changed, 193 insertions(+), 238 deletions(-)
doc/guides/contributing/linux_uapi.rst +16 -16
@@ -7,14 +7,14 @@ Linux uAPI header files Rationale --------- -The system a DPDK library or driver is built on is not necessarily running the -same Kernel version than the system that will run it. -Importing Linux Kernel uAPI headers enable to build features that are not -supported yet by the build system. +The system used to build a DPDK library or driver may not be running the same kernel version +as the target system where it will be deployed. To support features that are not yet available +in the build system’s kernel, Linux kernel uAPI headers can be imported. -For example, the build system runs upstream Kernel v5.19 and we would like to -build a VDUSE application that will use VDUSE_IOTLB_GET_INFO ioctl() introduced -in Linux Kernel v6.0. +For example, if the build system runs upstream Kernel v5.19, but you need to build a VDUSE application +that uses the VDUSE_IOTLB_GET_INFO ioctl introduced in Kernel v6.0, importing the relevant uAPI headers allows this. + +The Linux kernel's syscall license exception permits the inclusion of unmodified uAPI header files in such cases. `Linux Kernel licence exception regarding syscalls <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/LICENSES/exceptions/Linux-syscall-note>`_
@@ -23,20 +23,19 @@ enable importing unmodified Linux Kernel uAPI header files. Importing or updating an uAPI header file ----------------------------------------- -In order to ensure the imported uAPI headers are both unmodified and from a -released version of the linux Kernel, a helper script is made available and -MUST be used. +To ensure that imported uAPI headers are unmodified and sourced from an official Linux +kernel release, a helper script is provided and must be used. Below is an example to import ``linux/vduse.h`` file from Linux ``v6.10``: .. code-block:: console devtools/linux-uapi.sh -i linux/vduse.h -u v6.10 -Once imported, the header files should be committed without any other change. -Note that all the imported headers will be updated to the requested version. +Once imported, header files must be committed without any modifications. Note that all imported +headers will be updated to match the specified kernel version. -Updating imported headers to a newer released version should only be done on -a need basis, it can be achieved using the same script: +Updates to a newer released version should be performed only when necessary, and can be done +using the same helper script. .. code-block:: console
@@ -60,8 +59,9 @@ Note that all the linux-uapi.sh script options can be combined. For example: Header inclusion into library or driver --------------------------------------- -The library or driver willing to make use of imported uAPI headers needs to -explicitly include the header file with ``uapi/`` prefix in C files. +Libraries or drivers that rely on imported uAPI headers must explicitly include +the relevant header using the ``uapi/`` prefix in their C source files. + For example to include VDUSE uAPI: .. code-block:: c
doc/guides/contributing/patches.rst +88 -89
257 lines not on this page · raw message
doc/guides/contributing/stable.rst +63 -100
218 lines not on this page · raw message
doc/guides/contributing/vulnerability.rst +26 -33
91 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 9 lines · On Mon, 12 May 2025 07:48:41 -0700 Nandini Persad <[email protected]>…
I have revised sections 9-12 for grammar and clarity.
Signed-off-by Nandini Persad <[email protected]>--- doc/guides/contributing/linux_uapi.rst | 32 ++-- doc/guides/contributing/patches.rst | 177 +++++++++++----------- doc/guides/contributing/stable.rst | 163 ++++++++------------ doc/guides/contributing/vulnerability.rst | 59 ++++---- 4 files changed, 193 insertions(+), 238 deletions(-)
These changes were intergrated into: https://patchwork.dpdk.org/project/dpdk/list/?series=37078