xref: /dpdk/doc/guides/contributing/patches.rst (revision b9b10ddb4292f2bc5524ae9f427a2795514eff02)
177c79de0SHemant Agrawal..  SPDX-License-Identifier: BSD-3-Clause
277c79de0SHemant Agrawal    Copyright 2018 The DPDK contributors
377c79de0SHemant Agrawal
458abf6e7SJohn McNamara.. submitting_patches:
558abf6e7SJohn McNamara
658abf6e7SJohn McNamaraContributing Code to DPDK
758abf6e7SJohn McNamara=========================
858abf6e7SJohn McNamara
958abf6e7SJohn McNamaraThis document outlines the guidelines for submitting code to DPDK.
1058abf6e7SJohn McNamara
11d629b7b5SJohn McNamaraThe DPDK development process is modeled (loosely) on the Linux Kernel development model so it is worth reading the
1258abf6e7SJohn McNamaraLinux kernel guide on submitting patches:
13f2b99889SYongseok Koh`How to Get Your Change Into the Linux Kernel <https://www.kernel.org/doc/html/latest/process/submitting-patches.html>`_.
1458abf6e7SJohn McNamaraThe rationale for many of the DPDK guidelines is explained in greater detail in the kernel guidelines.
1558abf6e7SJohn McNamara
1658abf6e7SJohn McNamara
1758abf6e7SJohn McNamaraThe DPDK Development Process
18f9de0667SJohn McNamara----------------------------
1958abf6e7SJohn McNamara
2058abf6e7SJohn McNamaraThe DPDK development process has the following features:
2158abf6e7SJohn McNamara
2258abf6e7SJohn McNamara* The code is hosted in a public git repository.
2358abf6e7SJohn McNamara* There is a mailing list where developers submit patches.
2458abf6e7SJohn McNamara* There are maintainers for hierarchical components.
2558abf6e7SJohn McNamara* Patches are reviewed publicly on the mailing list.
26579a5c98SFerruh Yigit* Successfully reviewed patches are merged to the repository.
27f9de0667SJohn McNamara* Patches should be sent to the target repository or sub-tree, see below.
28f9de0667SJohn McNamara* All sub-repositories are merged into main repository for ``-rc1`` and ``-rc2`` versions of the release.
29f9de0667SJohn McNamara* After the ``-rc2`` release all patches should target the main repository.
3058abf6e7SJohn McNamara
313d4b2afbSDavid MarchandThe mailing list for DPDK development is `dev@dpdk.org <https://mails.dpdk.org/archives/dev/>`_.
323d4b2afbSDavid MarchandContributors will need to `register for the mailing list <https://mails.dpdk.org/listinfo/dev>`_ in order to submit patches.
333d4b2afbSDavid MarchandIt is also worth registering for the DPDK `Patchwork <https://patches.dpdk.org/project/dpdk/list/>`_
3458abf6e7SJohn McNamara
3599889bd8SMichael SantanaIf you are using the GitHub service, you can link your repository to
3699889bd8SMichael Santanathe ``travis-ci.org`` build service.  When you push patches to your GitHub
3799889bd8SMichael Santanarepository, the travis service will automatically build your changes.
3899889bd8SMichael Santana
3958abf6e7SJohn McNamaraThe development process requires some familiarity with the ``git`` version control system.
4058abf6e7SJohn McNamaraRefer to the `Pro Git Book <http://www.git-scm.com/book/>`_ for further information.
4158abf6e7SJohn McNamara
42a4862c9eSHemant AgrawalSource License
43a4862c9eSHemant Agrawal--------------
44a4862c9eSHemant Agrawal
45a4862c9eSHemant AgrawalThe DPDK uses the Open Source BSD-3-Clause license for the core libraries and
46a4862c9eSHemant Agrawaldrivers. The kernel components are GPL-2.0 licensed. DPDK uses single line
47a4862c9eSHemant Agrawalreference to Unique License Identifiers in source files as defined by the Linux
48a4862c9eSHemant AgrawalFoundation's `SPDX project <http://spdx.org/>`_.
49a4862c9eSHemant Agrawal
50a4862c9eSHemant AgrawalDPDK uses first line of the file to be SPDX tag. In case of *#!* scripts, SPDX
51a4862c9eSHemant Agrawaltag can be placed in 2nd line of the file.
52a4862c9eSHemant Agrawal
53a4862c9eSHemant AgrawalFor example, to label a file as subject to the BSD-3-Clause license,
54a4862c9eSHemant Agrawalthe following text would be used:
55a4862c9eSHemant Agrawal
56a4862c9eSHemant Agrawal``SPDX-License-Identifier: BSD-3-Clause``
57a4862c9eSHemant Agrawal
58a4862c9eSHemant AgrawalTo label a file as dual-licensed with BSD-3-Clause and GPL-2.0 (e.g., for code
59a4862c9eSHemant Agrawalthat is shared between the kernel and userspace), the following text would be
60a4862c9eSHemant Agrawalused:
61a4862c9eSHemant Agrawal
62a4862c9eSHemant Agrawal``SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)``
63a4862c9eSHemant Agrawal
64a4862c9eSHemant AgrawalRefer to ``licenses/README`` for more details.
6558abf6e7SJohn McNamara
66f9de0667SJohn McNamaraMaintainers and Sub-trees
67f9de0667SJohn McNamara-------------------------
68f9de0667SJohn McNamara
69f9de0667SJohn McNamaraThe DPDK maintenance hierarchy is divided into a main repository ``dpdk`` and sub-repositories ``dpdk-next-*``.
70f9de0667SJohn McNamara
71f9de0667SJohn McNamaraThere are maintainers for the trees and for components within the tree.
72f9de0667SJohn McNamara
73f9de0667SJohn McNamaraTrees and maintainers are listed in the ``MAINTAINERS`` file. For example::
74f9de0667SJohn McNamara
75f9de0667SJohn McNamara    Crypto Drivers
76f9de0667SJohn McNamara    --------------
77f9de0667SJohn McNamara    M: Some Name <some.name@email.com>
78f9de0667SJohn McNamara    T: git://dpdk.org/next/dpdk-next-crypto
79f9de0667SJohn McNamara
80f9de0667SJohn McNamara    Intel AES-NI GCM PMD
81f9de0667SJohn McNamara    M: Some One <some.one@email.com>
82f9de0667SJohn McNamara    F: drivers/crypto/aesni_gcm/
83f9de0667SJohn McNamara    F: doc/guides/cryptodevs/aesni_gcm.rst
84f9de0667SJohn McNamara
85f9de0667SJohn McNamaraWhere:
86f9de0667SJohn McNamara
87f9de0667SJohn McNamara* ``M`` is a tree or component maintainer.
88f9de0667SJohn McNamara* ``T`` is a repository tree.
89f9de0667SJohn McNamara* ``F`` is a maintained file or directory.
90f9de0667SJohn McNamara
91f9de0667SJohn McNamaraAdditional details are given in the ``MAINTAINERS`` file.
92f9de0667SJohn McNamara
93f9de0667SJohn McNamaraThe role of the component maintainers is to:
94f9de0667SJohn McNamara
95f9de0667SJohn McNamara* Review patches for the component or delegate the review.
96f9de0667SJohn McNamara  The review should be done, ideally, within 1 week of submission to the mailing list.
97f9de0667SJohn McNamara* Add an ``acked-by`` to patches, or patchsets, that are ready for committing to a tree.
98acd6dc98SThomas Monjalon* Reply to questions asked about the component.
99f9de0667SJohn McNamara
100f9de0667SJohn McNamaraComponent maintainers can be added or removed by submitting a patch to the ``MAINTAINERS`` file.
101f9de0667SJohn McNamaraMaintainers should have demonstrated a reasonable level of contributions or reviews to the component area.
102f9de0667SJohn McNamaraThe maintainer should be confirmed by an ``ack`` from an established contributor.
103f9de0667SJohn McNamaraThere can be more than one component maintainer if desired.
104f9de0667SJohn McNamara
105f9de0667SJohn McNamaraThe role of the tree maintainers is to:
106f9de0667SJohn McNamara
107f9de0667SJohn McNamara* Maintain the overall quality of their tree.
108f9de0667SJohn McNamara  This can entail additional review, compilation checks or other tests deemed necessary by the maintainer.
109f9de0667SJohn McNamara* Commit patches that have been reviewed by component maintainers and/or other contributors.
110f9de0667SJohn McNamara  The tree maintainer should determine if patches have been reviewed sufficiently.
111f9de0667SJohn McNamara* Ensure that patches are reviewed in a timely manner.
112f9de0667SJohn McNamara* Prepare the tree for integration.
113f9de0667SJohn McNamara* Ensure that there is a designated back-up maintainer and coordinate a handover for periods where the
114f9de0667SJohn McNamara  tree maintainer can't perform their role.
115f9de0667SJohn McNamara
116f9de0667SJohn McNamaraTree maintainers can be added or removed by submitting a patch to the ``MAINTAINERS`` file.
117f9de0667SJohn McNamaraThe proposer should justify the need for a new sub-tree and should have demonstrated a sufficient level of contributions in the area or to a similar area.
118f9de0667SJohn McNamaraThe maintainer should be confirmed by an ``ack`` from an existing tree maintainer.
119f9de0667SJohn McNamaraDisagreements on trees or maintainers can be brought to the Technical Board.
120f9de0667SJohn McNamara
121*b9b10ddbSThomas MonjalonThe backup maintainer for the main tree should be selected
122*b9b10ddbSThomas Monjalonfrom the existing sub-tree maintainers of the project.
123f9de0667SJohn McNamaraThe backup maintainer for a sub-tree should be selected from among the component maintainers within that sub-tree.
124f9de0667SJohn McNamara
125f9de0667SJohn McNamara
12658abf6e7SJohn McNamaraGetting the Source Code
12758abf6e7SJohn McNamara-----------------------
12858abf6e7SJohn McNamara
129579a5c98SFerruh YigitThe source code can be cloned using either of the following:
130579a5c98SFerruh Yigit
131579a5c98SFerruh Yigitmain repository::
13258abf6e7SJohn McNamara
13358abf6e7SJohn McNamara    git clone git://dpdk.org/dpdk
1343d4b2afbSDavid Marchand    git clone https://dpdk.org/git/dpdk
13558abf6e7SJohn McNamara
1363d4b2afbSDavid Marchandsub-repositories (`list <https://git.dpdk.org/next>`_)::
137579a5c98SFerruh Yigit
138579a5c98SFerruh Yigit    git clone git://dpdk.org/next/dpdk-next-*
1393d4b2afbSDavid Marchand    git clone https://dpdk.org/git/next/dpdk-next-*
14058abf6e7SJohn McNamara
14158abf6e7SJohn McNamaraMake your Changes
14258abf6e7SJohn McNamara-----------------
14358abf6e7SJohn McNamara
14458abf6e7SJohn McNamaraMake your planned changes in the cloned ``dpdk`` repo. Here are some guidelines and requirements:
14558abf6e7SJohn McNamara
14658abf6e7SJohn McNamara* Follow the :ref:`coding_style` guidelines.
14758abf6e7SJohn McNamara
14858abf6e7SJohn McNamara* If you add new files or directories you should add your name to the ``MAINTAINERS`` file.
14958abf6e7SJohn McNamara
15078b04aafSRami Rosen* Initial submission of new PMDs should be prepared against a corresponding repo.
15178b04aafSRami Rosen
15278b04aafSRami Rosen  * Thus, for example, initial submission of a new network PMD should be
15378b04aafSRami Rosen    prepared against dpdk-next-net repo.
15478b04aafSRami Rosen
15578b04aafSRami Rosen  * Likewise, initial submission of a new crypto or compression PMD should be
15678b04aafSRami Rosen    prepared against dpdk-next-crypto repo.
15778b04aafSRami Rosen
15878b04aafSRami Rosen  * For other PMDs and more info, refer to the ``MAINTAINERS`` file.
15978b04aafSRami Rosen
160144beafcSRay Kinsella* New external functions should be added to the local ``version.map`` file. See
161144beafcSRay Kinsella  the :doc:`ABI policy <abi_policy>` and :ref:`ABI versioning <abi_versioning>`
162144beafcSRay Kinsella  guides. New external functions should also be added in alphabetical order.
16358abf6e7SJohn McNamara
16458abf6e7SJohn McNamara* Important changes will require an addition to the release notes in ``doc/guides/rel_notes/``.
16558abf6e7SJohn McNamara  See the :ref:`Release Notes section of the Documentation Guidelines <doc_guidelines>` for details.
16658abf6e7SJohn McNamara
16758abf6e7SJohn McNamara* Test the compilation works with different targets, compilers and options, see :ref:`contrib_check_compilation`.
16858abf6e7SJohn McNamara
16958abf6e7SJohn McNamara* Don't break compilation between commits with forward dependencies in a patchset.
17058abf6e7SJohn McNamara  Each commit should compile on its own to allow for ``git bisect`` and continuous integration testing.
17158abf6e7SJohn McNamara
1728f87ba70SThierry Herbelot* Add tests to the ``app/test`` unit test framework where possible.
17358abf6e7SJohn McNamara
17458abf6e7SJohn McNamara* Add documentation, if relevant, in the form of Doxygen comments or a User Guide in RST format.
17558abf6e7SJohn McNamara  See the :ref:`Documentation Guidelines <doc_guidelines>`.
17658abf6e7SJohn McNamara
17758abf6e7SJohn McNamaraOnce the changes have been made you should commit them to your local repo.
17858abf6e7SJohn McNamara
17958abf6e7SJohn McNamaraFor small changes, that do not require specific explanations, it is better to keep things together in the
18058abf6e7SJohn McNamarasame patch.
18158abf6e7SJohn McNamaraLarger changes that require different explanations should be separated into logical patches in a patchset.
18258abf6e7SJohn McNamaraA good way of thinking about whether a patch should be split is to consider whether the change could be
18358abf6e7SJohn McNamaraapplied without dependencies as a backport.
18458abf6e7SJohn McNamara
1859e0e4a00SDavid HuntIt is better to keep the related documentation changes in the same patch
186ba8af67fSMuhammad Bilalfile as the code, rather than one big documentation patch at the end of a
1879e0e4a00SDavid Huntpatchset. This makes it easier for future maintenance and development of the
1889e0e4a00SDavid Huntcode.
1899e0e4a00SDavid Hunt
19058abf6e7SJohn McNamaraAs a guide to how patches should be structured run ``git log`` on similar files.
19158abf6e7SJohn McNamara
19258abf6e7SJohn McNamara
19358abf6e7SJohn McNamaraCommit Messages: Subject Line
19458abf6e7SJohn McNamara-----------------------------
19558abf6e7SJohn McNamara
19658abf6e7SJohn McNamaraThe first, summary, line of the git commit message becomes the subject line of the patch email.
19758abf6e7SJohn McNamaraHere are some guidelines for the summary line:
19858abf6e7SJohn McNamara
19958abf6e7SJohn McNamara* The summary line must capture the area and the impact of the change.
20058abf6e7SJohn McNamara
20158abf6e7SJohn McNamara* The summary line should be around 50 characters.
20258abf6e7SJohn McNamara
20358abf6e7SJohn McNamara* The summary line should be lowercase apart from acronyms.
20458abf6e7SJohn McNamara
20558abf6e7SJohn McNamara* It should be prefixed with the component name (use git log to check existing components).
20658abf6e7SJohn McNamara  For example::
20758abf6e7SJohn McNamara
20858abf6e7SJohn McNamara     ixgbe: fix offload config option name
20958abf6e7SJohn McNamara
21058abf6e7SJohn McNamara     config: increase max queues per port
21158abf6e7SJohn McNamara
21258abf6e7SJohn McNamara* Use the imperative of the verb (like instructions to the code base).
21358abf6e7SJohn McNamara
21458abf6e7SJohn McNamara* Don't add a period/full stop to the subject line or you will end up two in the patch name: ``dpdk_description..patch``.
21558abf6e7SJohn McNamara
21658abf6e7SJohn McNamaraThe actual email subject line should be prefixed by ``[PATCH]`` and the version, if greater than v1,
21758abf6e7SJohn McNamarafor example: ``PATCH v2``.
21858abf6e7SJohn McNamaraThe is generally added by ``git send-email`` or ``git format-patch``, see below.
21958abf6e7SJohn McNamara
22058abf6e7SJohn McNamaraIf you are submitting an RFC draft of a feature you can use ``[RFC]`` instead of ``[PATCH]``.
22158abf6e7SJohn McNamaraAn RFC patch doesn't have to be complete.
22258abf6e7SJohn McNamaraIt is intended as a way of getting early feedback.
22358abf6e7SJohn McNamara
22458abf6e7SJohn McNamara
22558abf6e7SJohn McNamaraCommit Messages: Body
22658abf6e7SJohn McNamara---------------------
22758abf6e7SJohn McNamara
22858abf6e7SJohn McNamaraHere are some guidelines for the body of a commit message:
22958abf6e7SJohn McNamara
23058abf6e7SJohn McNamara* The body of the message should describe the issue being fixed or the feature being added.
23158abf6e7SJohn McNamara  It is important to provide enough information to allow a reviewer to understand the purpose of the patch.
23258abf6e7SJohn McNamara
23358abf6e7SJohn McNamara* When the change is obvious the body can be blank, apart from the signoff.
23458abf6e7SJohn McNamara
23558abf6e7SJohn McNamara* The commit message must end with a ``Signed-off-by:`` line which is added using::
23658abf6e7SJohn McNamara
23758abf6e7SJohn McNamara      git commit --signoff # or -s
23858abf6e7SJohn McNamara
23958abf6e7SJohn McNamara  The purpose of the signoff is explained in the
240f2b99889SYongseok Koh  `Developer's Certificate of Origin <https://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1>`_
24158abf6e7SJohn McNamara  section of the Linux kernel guidelines.
24258abf6e7SJohn McNamara
24358abf6e7SJohn McNamara  .. Note::
24458abf6e7SJohn McNamara
24558abf6e7SJohn McNamara     All developers must ensure that they have read and understood the
24658abf6e7SJohn McNamara     Developer's Certificate of Origin section of the documentation prior
24758abf6e7SJohn McNamara     to applying the signoff and submitting a patch.
24858abf6e7SJohn McNamara
24958abf6e7SJohn McNamara* The signoff must be a real name and not an alias or nickname.
25058abf6e7SJohn McNamara  More than one signoff is allowed.
25158abf6e7SJohn McNamara
25258abf6e7SJohn McNamara* The text of the commit message should be wrapped at 72 characters.
25358abf6e7SJohn McNamara
254f9ef083cSHarry van Haaren* When fixing a regression, it is required to reference the id of the commit
255f9ef083cSHarry van Haaren  which introduced the bug, and put the original author of that commit on CC.
256f9ef083cSHarry van Haaren  You can generate the required lines using the following git alias, which prints
257f9ef083cSHarry van Haaren  the commit SHA and the author of the original code::
25858abf6e7SJohn McNamara
259f9ef083cSHarry van Haaren     git config alias.fixline "log -1 --abbrev=12 --format='Fixes: %h (\"%s\")%nCc: %ae'"
26058abf6e7SJohn McNamara
261f9ef083cSHarry van Haaren  The output of ``git fixline <SHA>`` must then be added to the commit message::
26258abf6e7SJohn McNamara
263f9ef083cSHarry van Haaren     doc: fix some parameter description
26458abf6e7SJohn McNamara
265f9ef083cSHarry van Haaren     Update the docs, fixing description of some parameter.
26658abf6e7SJohn McNamara
267f9ef083cSHarry van Haaren     Fixes: abcdefgh1234 ("doc: add some parameter")
268f9ef083cSHarry van Haaren     Cc: author@example.com
26958abf6e7SJohn McNamara
27058abf6e7SJohn McNamara     Signed-off-by: Alex Smith <alex.smith@example.com>
27158abf6e7SJohn McNamara
27258abf6e7SJohn McNamara* When fixing an error or warning it is useful to add the error message and instructions on how to reproduce it.
27358abf6e7SJohn McNamara
27458abf6e7SJohn McNamara* Use correct capitalization, punctuation and spelling.
27558abf6e7SJohn McNamara
2764aeedc25SHarry van HaarenIn addition to the ``Signed-off-by:`` name the commit messages can also have
2774aeedc25SHarry van Haarentags for who reported, suggested, tested and reviewed the patch being
2784aeedc25SHarry van Haarenposted. Please refer to the `Tested, Acked and Reviewed by`_ section.
27958abf6e7SJohn McNamara
2806561392cSMarko KovacevicPatch Fix Related Issues
2816561392cSMarko Kovacevic~~~~~~~~~~~~~~~~~~~~~~~~
282d687e0d0SMarko Kovacevic
283d687e0d0SMarko Kovacevic`Coverity <https://scan.coverity.com/projects/dpdk-data-plane-development-kit>`_
284d687e0d0SMarko Kovacevicis a tool for static code analysis.
285d687e0d0SMarko KovacevicIt is used as a cloud-based service used to scan the DPDK source code,
286d687e0d0SMarko Kovacevicand alert developers of any potential defects in the source code.
287d687e0d0SMarko KovacevicWhen fixing an issue found by Coverity, the patch must contain a Coverity issue ID
288d687e0d0SMarko Kovacevicin the body of the commit message. For example::
289d687e0d0SMarko Kovacevic
290d687e0d0SMarko Kovacevic
291d687e0d0SMarko Kovacevic     doc: fix some parameter description
292d687e0d0SMarko Kovacevic
293d687e0d0SMarko Kovacevic     Update the docs, fixing description of some parameter.
294d687e0d0SMarko Kovacevic
295d687e0d0SMarko Kovacevic     Coverity issue: 12345
296d687e0d0SMarko Kovacevic     Fixes: abcdefgh1234 ("doc: add some parameter")
297d687e0d0SMarko Kovacevic     Cc: author@example.com
298d687e0d0SMarko Kovacevic
299d687e0d0SMarko Kovacevic     Signed-off-by: Alex Smith <alex.smith@example.com>
300d687e0d0SMarko Kovacevic
3016561392cSMarko Kovacevic
30243d162bcSThomas Monjalon`Bugzilla <https://bugs.dpdk.org>`_
3036561392cSMarko Kovacevicis a bug- or issue-tracking system.
3046561392cSMarko KovacevicBug-tracking systems allow individual or groups of developers
3056561392cSMarko Kovaceviceffectively to keep track of outstanding problems with their product.
3066561392cSMarko KovacevicWhen fixing an issue raised in Bugzilla, the patch must contain
3076561392cSMarko Kovacevica Bugzilla issue ID in the body of the commit message.
3086561392cSMarko KovacevicFor example::
3096561392cSMarko Kovacevic
3106561392cSMarko Kovacevic    doc: fix some parameter description
3116561392cSMarko Kovacevic
3126561392cSMarko Kovacevic    Update the docs, fixing description of some parameter.
3136561392cSMarko Kovacevic
3146561392cSMarko Kovacevic    Bugzilla ID: 12345
3156561392cSMarko Kovacevic    Fixes: abcdefgh1234 ("doc: add some parameter")
3166561392cSMarko Kovacevic    Cc: author@example.com
3176561392cSMarko Kovacevic
3186561392cSMarko Kovacevic    Signed-off-by: Alex Smith <alex.smith@example.com>
3196561392cSMarko Kovacevic
320f16e13c9SMarko KovacevicPatch for Stable Releases
321f16e13c9SMarko Kovacevic~~~~~~~~~~~~~~~~~~~~~~~~~
322f16e13c9SMarko Kovacevic
323*b9b10ddbSThomas MonjalonAll fix patches to the main branch that are candidates for backporting
3243d4b2afbSDavid Marchandshould also be CCed to the `stable@dpdk.org <https://mails.dpdk.org/listinfo/stable>`_
325f16e13c9SMarko Kovacevicmailing list.
326f16e13c9SMarko KovacevicIn the commit message body the Cc: stable@dpdk.org should be inserted as follows::
327f16e13c9SMarko Kovacevic
328f16e13c9SMarko Kovacevic     doc: fix some parameter description
329f16e13c9SMarko Kovacevic
330f16e13c9SMarko Kovacevic     Update the docs, fixing description of some parameter.
331f16e13c9SMarko Kovacevic
332f16e13c9SMarko Kovacevic     Fixes: abcdefgh1234 ("doc: add some parameter")
333f16e13c9SMarko Kovacevic     Cc: stable@dpdk.org
334f16e13c9SMarko Kovacevic
335f16e13c9SMarko Kovacevic     Signed-off-by: Alex Smith <alex.smith@example.com>
336f16e13c9SMarko Kovacevic
337f16e13c9SMarko KovacevicFor further information on stable contribution you can go to
338f16e13c9SMarko Kovacevic:doc:`Stable Contribution Guide <stable>`.
339f16e13c9SMarko Kovacevic
340f74904ceSFerruh YigitPatch Dependencies
341f74904ceSFerruh Yigit~~~~~~~~~~~~~~~~~~
342f74904ceSFerruh Yigit
343f74904ceSFerruh YigitSometimes a patch or patchset can depend on another one.
344f74904ceSFerruh YigitTo help the maintainers and automation tasks, please document this dependency in commit log or cover letter
345f74904ceSFerruh Yigitwith the following syntax:
346f74904ceSFerruh Yigit
347f74904ceSFerruh Yigit``Depends-on: series-NNNNN ("Title of the series")`` or ``Depends-on: patch-NNNNN ("Title of the patch")``
348f74904ceSFerruh Yigit
349f74904ceSFerruh YigitWhere ``NNNNN`` is patchwork ID for patch or series::
350f74904ceSFerruh Yigit
351f74904ceSFerruh Yigit     doc: fix some parameter description
352f74904ceSFerruh Yigit
353f74904ceSFerruh Yigit     Update the docs, fixing description of some parameter.
354f74904ceSFerruh Yigit
355f74904ceSFerruh Yigit     Signed-off-by: Alex Smith <alex.smith@example.com>
356f74904ceSFerruh Yigit     ---
357f74904ceSFerruh Yigit     Depends-on: series-10000 ("Title of the series")
35858abf6e7SJohn McNamara
35958abf6e7SJohn McNamaraCreating Patches
36058abf6e7SJohn McNamara----------------
36158abf6e7SJohn McNamara
36258abf6e7SJohn McNamaraIt is possible to send patches directly from git but for new contributors it is recommended to generate the
36358abf6e7SJohn McNamarapatches with ``git format-patch`` and then when everything looks okay, and the patches have been checked, to
36458abf6e7SJohn McNamarasend them with ``git send-email``.
36558abf6e7SJohn McNamara
36658abf6e7SJohn McNamaraHere are some examples of using ``git format-patch`` to generate patches:
36758abf6e7SJohn McNamara
36858abf6e7SJohn McNamara.. code-block:: console
36958abf6e7SJohn McNamara
37058abf6e7SJohn McNamara   # Generate a patch from the last commit.
37158abf6e7SJohn McNamara   git format-patch -1
37258abf6e7SJohn McNamara
37358abf6e7SJohn McNamara   # Generate a patch from the last 3 commits.
37458abf6e7SJohn McNamara   git format-patch -3
37558abf6e7SJohn McNamara
37658abf6e7SJohn McNamara   # Generate the patches in a directory.
37758abf6e7SJohn McNamara   git format-patch -3 -o ~/patch/
37858abf6e7SJohn McNamara
37958abf6e7SJohn McNamara   # Add a cover letter to explain a patchset.
38058abf6e7SJohn McNamara   git format-patch -3 -o ~/patch/ --cover-letter
38158abf6e7SJohn McNamara
38258abf6e7SJohn McNamara   # Add a prefix with a version number.
38358abf6e7SJohn McNamara   git format-patch -3 -o ~/patch/ -v 2
38458abf6e7SJohn McNamara
38558abf6e7SJohn McNamara
38658abf6e7SJohn McNamaraCover letters are useful for explaining a patchset and help to generate a logical threading to the patches.
38758abf6e7SJohn McNamaraSmaller notes can be put inline in the patch after the ``---`` separator, for example::
38858abf6e7SJohn McNamara
38958abf6e7SJohn McNamara   Subject: [PATCH] fm10k/base: add FM10420 device ids
39058abf6e7SJohn McNamara
39158abf6e7SJohn McNamara   Add the device ID for Boulder Rapids and Atwood Channel to enable
39258abf6e7SJohn McNamara   drivers to support those devices.
39358abf6e7SJohn McNamara
39458abf6e7SJohn McNamara   Signed-off-by: Alex Smith <alex.smith@example.com>
39558abf6e7SJohn McNamara   ---
39658abf6e7SJohn McNamara
39758abf6e7SJohn McNamara   ADD NOTES HERE.
39858abf6e7SJohn McNamara
39958abf6e7SJohn McNamara    drivers/net/fm10k/base/fm10k_api.c  | 6 ++++++
40058abf6e7SJohn McNamara    drivers/net/fm10k/base/fm10k_type.h | 6 ++++++
40158abf6e7SJohn McNamara    2 files changed, 12 insertions(+)
40258abf6e7SJohn McNamara   ...
40358abf6e7SJohn McNamara
40458abf6e7SJohn McNamaraVersion 2 and later of a patchset should also include a short log of the changes so the reviewer knows what has changed.
40558abf6e7SJohn McNamaraThis can be added to the cover letter or the annotations.
40658abf6e7SJohn McNamaraFor example::
40758abf6e7SJohn McNamara
40858abf6e7SJohn McNamara   ---
40958abf6e7SJohn McNamara   v3:
41058abf6e7SJohn McNamara   * Fixed issued with version.map.
41158abf6e7SJohn McNamara
41258abf6e7SJohn McNamara   v2:
41358abf6e7SJohn McNamara   * Added i40e support.
41458abf6e7SJohn McNamara   * Renamed ethdev functions from rte_eth_ieee15888_*() to rte_eth_timesync_*()
41558abf6e7SJohn McNamara     since 802.1AS can be supported through the same interfaces.
41658abf6e7SJohn McNamara
41758abf6e7SJohn McNamara
41858abf6e7SJohn McNamara.. _contrib_checkpatch:
41958abf6e7SJohn McNamara
42058abf6e7SJohn McNamaraChecking the Patches
42158abf6e7SJohn McNamara--------------------
42258abf6e7SJohn McNamara
4239a98f50eSThomas MonjalonPatches should be checked for formatting and syntax issues using the ``checkpatches.sh`` script in the ``devtools``
42458abf6e7SJohn McNamaradirectory of the DPDK repo.
42558abf6e7SJohn McNamaraThis uses the Linux kernel development tool ``checkpatch.pl`` which  can be obtained by cloning, and periodically,
42658abf6e7SJohn McNamaraupdating the Linux kernel sources.
42758abf6e7SJohn McNamara
42858abf6e7SJohn McNamaraThe path to the original Linux script must be set in the environment variable ``DPDK_CHECKPATCH_PATH``.
429409a346aSKevin Traynor
430409a346aSKevin TraynorSpell checking of commonly misspelled words
431409a346aSKevin Traynorcan be enabled by downloading the codespell dictionary::
432409a346aSKevin Traynor
433409a346aSKevin Traynor   https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary.txt
434409a346aSKevin Traynor
435409a346aSKevin TraynorThe path to the downloaded ``dictionary.txt`` must be set
436409a346aSKevin Traynorin the environment variable ``DPDK_CHECKPATCH_CODESPELL``.
437409a346aSKevin Traynor
438409a346aSKevin TraynorEnvironment variables required by the development tools,
439409a346aSKevin Traynorare loaded from the following files, in order of preference::
44058abf6e7SJohn McNamara
44158abf6e7SJohn McNamara   .develconfig
44258abf6e7SJohn McNamara   ~/.config/dpdk/devel.config
44358abf6e7SJohn McNamara   /etc/dpdk/devel.config.
44458abf6e7SJohn McNamara
445e37348d7SSarosh ArifOnce the environment variable is set, the script can be run as follows::
44658abf6e7SJohn McNamara
4479a98f50eSThomas Monjalon   devtools/checkpatches.sh ~/patch/
44858abf6e7SJohn McNamara
44958abf6e7SJohn McNamaraThe script usage is::
45058abf6e7SJohn McNamara
451b1214d98SCiara Power   checkpatches.sh [-h] [-q] [-v] [-nX|-r range|patch1 [patch2] ...]
45258abf6e7SJohn McNamara
453edbeb7d9SThomas MonjalonThen the git logs should be checked using the ``check-git-log.sh`` script.
454edbeb7d9SThomas Monjalon
455edbeb7d9SThomas MonjalonThe script usage is::
456edbeb7d9SThomas Monjalon
457b1214d98SCiara Power   check-git-log.sh [-h] [-nX|-r range]
458edbeb7d9SThomas Monjalon
459b1214d98SCiara PowerFor both of the above scripts, the -n option is used to specify a number of commits from HEAD,
460b1214d98SCiara Powerand the -r option allows the user specify a ``git log`` range.
46158abf6e7SJohn McNamara
46258abf6e7SJohn McNamara.. _contrib_check_compilation:
46358abf6e7SJohn McNamara
46458abf6e7SJohn McNamaraChecking Compilation
46558abf6e7SJohn McNamara--------------------
46658abf6e7SJohn McNamara
4673fe9b93cSVipin VargheseMakefile System
4683fe9b93cSVipin Varghese~~~~~~~~~~~~~~~
4693fe9b93cSVipin Varghese
4708f87ba70SThierry HerbelotCompilation of patches and changes should be tested using the ``test-build.sh`` script in the ``devtools``
47158abf6e7SJohn McNamaradirectory of the DPDK repo::
47258abf6e7SJohn McNamara
473218c4e68SBruce Richardson  devtools/test-build.sh x86_64-native-linux-gcc+next+shared
47458abf6e7SJohn McNamara
47558abf6e7SJohn McNamaraThe script usage is::
47658abf6e7SJohn McNamara
47758abf6e7SJohn McNamara   test-build.sh [-h] [-jX] [-s] [config1 [config2] ...]]
47858abf6e7SJohn McNamara
47958abf6e7SJohn McNamaraWhere:
48058abf6e7SJohn McNamara
48158abf6e7SJohn McNamara* ``-h``: help, usage.
48258abf6e7SJohn McNamara* ``-jX``: use X parallel jobs in "make".
48358abf6e7SJohn McNamara* ``-s``: short test with only first config and without examples/doc.
48458abf6e7SJohn McNamara* ``config``: default config name plus config switches delimited with a ``+`` sign.
48558abf6e7SJohn McNamara
48658abf6e7SJohn McNamaraExamples of configs are::
48758abf6e7SJohn McNamara
488218c4e68SBruce Richardson   x86_64-native-linux-gcc
489218c4e68SBruce Richardson   x86_64-native-linux-gcc+next+shared
490218c4e68SBruce Richardson   x86_64-native-linux-clang+shared
49158abf6e7SJohn McNamara
4921e46fadeSCian FerriterThe builds can be modified via the following environmental variables:
49358abf6e7SJohn McNamara
49458abf6e7SJohn McNamara* ``DPDK_BUILD_TEST_CONFIGS`` (target1+option1+option2 target2)
495aa759955SBruce Richardson* ``DPDK_BUILD_TEST_DIR``
49658abf6e7SJohn McNamara* ``DPDK_DEP_CFLAGS``
49758abf6e7SJohn McNamara* ``DPDK_DEP_LDFLAGS``
49858abf6e7SJohn McNamara* ``DPDK_DEP_PCAP`` (y/[n])
49958abf6e7SJohn McNamara* ``DPDK_NOTIFY`` (notify-send)
50058abf6e7SJohn McNamara
50158abf6e7SJohn McNamaraThese can be set from the command line or in the config files shown above in the :ref:`contrib_checkpatch`.
50258abf6e7SJohn McNamara
50358abf6e7SJohn McNamaraThe recommended configurations and options to test compilation prior to submitting patches are::
50458abf6e7SJohn McNamara
505218c4e68SBruce Richardson   x86_64-native-linux-gcc+shared+next
506218c4e68SBruce Richardson   x86_64-native-linux-clang+shared
507218c4e68SBruce Richardson   i686-native-linux-gcc
50858abf6e7SJohn McNamara
50958abf6e7SJohn McNamara   export DPDK_DEP_ZLIB=y
51058abf6e7SJohn McNamara   export DPDK_DEP_PCAP=y
51158abf6e7SJohn McNamara   export DPDK_DEP_SSL=y
51258abf6e7SJohn McNamara
5133fe9b93cSVipin VargheseMeson System
5143fe9b93cSVipin Varghese~~~~~~~~~~~~
5153fe9b93cSVipin Varghese
5163fe9b93cSVipin VargheseCompilation of patches is to be tested with ``devtools/test-meson-builds.sh`` script.
5173fe9b93cSVipin Varghese
5183fe9b93cSVipin VargheseThe script internally checks for dependencies, then builds for several
5193fe9b93cSVipin Varghesecombinations of compilation configuration.
520aa759955SBruce RichardsonBy default, each build will be put in a subfolder of the current working directory.
521aa759955SBruce RichardsonHowever, if it is preferred to place the builds in a different location,
522aa759955SBruce Richardsonthe environment variable ``DPDK_BUILD_TEST_DIR`` can be set to that desired location.
523aa759955SBruce RichardsonFor example, setting ``DPDK_BUILD_TEST_DIR=__builds`` will put all builds
524aa759955SBruce Richardsonin a single subfolder called "__builds" created in the current directory.
525aa759955SBruce RichardsonSetting ``DPDK_BUILD_TEST_DIR`` to an absolute directory path e.g. ``/tmp`` is also supported.
5263fe9b93cSVipin Varghese
52758abf6e7SJohn McNamara
52867354349SNeil Horman.. _integrated_abi_check:
52967354349SNeil Horman
530777014e5SDavid MarchandChecking ABI compatibility
531777014e5SDavid Marchand--------------------------
532777014e5SDavid Marchand
533777014e5SDavid MarchandBy default, ABI compatibility checks are disabled.
534777014e5SDavid Marchand
535777014e5SDavid MarchandTo enable them, a reference version must be selected via the environment
536777014e5SDavid Marchandvariable ``DPDK_ABI_REF_VERSION``.
537777014e5SDavid Marchand
538777014e5SDavid MarchandThe ``devtools/test-build.sh`` and ``devtools/test-meson-builds.sh`` scripts
539777014e5SDavid Marchandthen build this reference version in a temporary directory and store the
540777014e5SDavid Marchandresults in a subfolder of the current working directory.
541777014e5SDavid MarchandThe environment variable ``DPDK_ABI_REF_DIR`` can be set so that the results go
542777014e5SDavid Marchandto a different location.
543777014e5SDavid Marchand
544777014e5SDavid Marchand
54558abf6e7SJohn McNamaraSending Patches
54658abf6e7SJohn McNamara---------------
54758abf6e7SJohn McNamara
54858abf6e7SJohn McNamaraPatches should be sent to the mailing list using ``git send-email``.
54958abf6e7SJohn McNamaraYou can configure an external SMTP with something like the following::
55058abf6e7SJohn McNamara
55158abf6e7SJohn McNamara   [sendemail]
55258abf6e7SJohn McNamara       smtpuser = name@domain.com
55358abf6e7SJohn McNamara       smtpserver = smtp.domain.com
55458abf6e7SJohn McNamara       smtpserverport = 465
55558abf6e7SJohn McNamara       smtpencryption = ssl
55658abf6e7SJohn McNamara
55758abf6e7SJohn McNamaraSee the `Git send-email <https://git-scm.com/docs/git-send-email>`_ documentation for more details.
55858abf6e7SJohn McNamara
55958abf6e7SJohn McNamaraThe patches should be sent to ``dev@dpdk.org``.
56058abf6e7SJohn McNamaraIf the patches are a change to existing files then you should send them TO the maintainer(s) and CC ``dev@dpdk.org``.
56158abf6e7SJohn McNamaraThe appropriate maintainer can be found in the ``MAINTAINERS`` file::
56258abf6e7SJohn McNamara
56358abf6e7SJohn McNamara   git send-email --to maintainer@some.org --cc dev@dpdk.org 000*.patch
56458abf6e7SJohn McNamara
5657a629106SFerruh YigitScript ``get-maintainer.sh`` can be used to select maintainers automatically::
5667a629106SFerruh Yigit
5677a629106SFerruh Yigit  git send-email --to-cmd ./devtools/get-maintainer.sh --cc dev@dpdk.org 000*.patch
5687a629106SFerruh Yigit
56958abf6e7SJohn McNamaraNew additions can be sent without a maintainer::
57058abf6e7SJohn McNamara
57158abf6e7SJohn McNamara   git send-email --to dev@dpdk.org 000*.patch
57258abf6e7SJohn McNamara
57358abf6e7SJohn McNamaraYou can test the emails by sending it to yourself or with the ``--dry-run`` option.
57458abf6e7SJohn McNamara
57558abf6e7SJohn McNamaraIf the patch is in relation to a previous email thread you can add it to the same thread using the Message ID::
57658abf6e7SJohn McNamara
57758abf6e7SJohn McNamara   git send-email --to dev@dpdk.org --in-reply-to <1234-foo@bar.com> 000*.patch
57858abf6e7SJohn McNamara
57958abf6e7SJohn McNamaraThe Message ID can be found in the raw text of emails or at the top of each Patchwork patch,
5803d4b2afbSDavid Marchand`for example <https://patches.dpdk.org/patch/7646/>`_.
58158abf6e7SJohn McNamaraShallow threading (``--thread --no-chain-reply-to``) is preferred for a patch series.
58258abf6e7SJohn McNamara
58358abf6e7SJohn McNamaraOnce submitted your patches will appear on the mailing list and in Patchwork.
58458abf6e7SJohn McNamara
58558abf6e7SJohn McNamaraExperienced committers may send patches directly with ``git send-email`` without the ``git format-patch`` step.
58658abf6e7SJohn McNamaraThe options ``--annotate`` and ``confirm = always`` are recommended for checking patches before sending.
58758abf6e7SJohn McNamara
58858abf6e7SJohn McNamara
589d53f61b6SLuca BoccassiBackporting patches for Stable Releases
590d53f61b6SLuca Boccassi~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
591d53f61b6SLuca Boccassi
592d53f61b6SLuca BoccassiSometimes a maintainer or contributor wishes, or can be asked, to send a patch
593d53f61b6SLuca Boccassifor a stable release rather than mainline.
594d53f61b6SLuca BoccassiIn this case the patch(es) should be sent to ``stable@dpdk.org``,
595d53f61b6SLuca Boccassinot to ``dev@dpdk.org``.
596d53f61b6SLuca Boccassi
597d53f61b6SLuca BoccassiGiven that there are multiple stable releases being maintained at the same time,
598d53f61b6SLuca Boccassiplease specify exactly which branch(es) the patch is for
599d53f61b6SLuca Boccassiusing ``git send-email --subject-prefix='PATCH 16.11' ...``
600d53f61b6SLuca Boccassiand also optionally in the cover letter or in the annotation.
601d53f61b6SLuca Boccassi
602d53f61b6SLuca Boccassi
60358abf6e7SJohn McNamaraThe Review Process
60458abf6e7SJohn McNamara------------------
60558abf6e7SJohn McNamara
6064aeedc25SHarry van HaarenPatches are reviewed by the community, relying on the experience and
6074aeedc25SHarry van Haarencollaboration of the members to double-check each other's work. There are a
6084aeedc25SHarry van Haarennumber of ways to indicate that you have checked a patch on the mailing list.
60958abf6e7SJohn McNamara
6104aeedc25SHarry van Haaren
6114aeedc25SHarry van HaarenTested, Acked and Reviewed by
6124aeedc25SHarry van Haaren~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6134aeedc25SHarry van Haaren
6144aeedc25SHarry van HaarenTo indicate that you have interacted with a patch on the mailing list you
6154aeedc25SHarry van Haarenshould respond to the patch in an email with one of the following tags:
6164aeedc25SHarry van Haaren
6174aeedc25SHarry van Haaren * Reviewed-by:
6184aeedc25SHarry van Haaren * Acked-by:
6194aeedc25SHarry van Haaren * Tested-by:
6204aeedc25SHarry van Haaren * Reported-by:
6214aeedc25SHarry van Haaren * Suggested-by:
6224aeedc25SHarry van Haaren
6234aeedc25SHarry van HaarenThe tag should be on a separate line as follows::
6244aeedc25SHarry van Haaren
6254aeedc25SHarry van Haaren   tag-here: Name Surname <email@address.com>
6264aeedc25SHarry van Haaren
6274aeedc25SHarry van HaarenEach of these tags has a specific meaning. In general, the DPDK community
6284aeedc25SHarry van Haarenfollows the kernel usage of the tags. A short summary of the meanings of each
6294aeedc25SHarry van Haarentag is given here for reference:
6304aeedc25SHarry van Haaren
6314aeedc25SHarry van Haaren.. _statement: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#reviewer-s-statement-of-oversight
6324aeedc25SHarry van Haaren
6334aeedc25SHarry van Haaren``Reviewed-by:`` is a strong statement_ that the patch is an appropriate state
6344aeedc25SHarry van Haarenfor merging without any remaining serious technical issues. Reviews from
6354aeedc25SHarry van Haarencommunity members who are known to understand the subject area and to perform
6364aeedc25SHarry van Haarenthorough reviews will increase the likelihood of the patch getting merged.
6374aeedc25SHarry van Haaren
6384aeedc25SHarry van Haaren``Acked-by:`` is a record that the person named was not directly involved in
6394aeedc25SHarry van Haarenthe preparation of the patch but wishes to signify and record their acceptance
6404aeedc25SHarry van Haarenand approval of it.
6414aeedc25SHarry van Haaren
6424aeedc25SHarry van Haaren``Tested-by:`` indicates that the patch has been successfully tested (in some
6434aeedc25SHarry van Haarenenvironment) by the person named.
6444aeedc25SHarry van Haaren
6454aeedc25SHarry van Haaren``Reported-by:`` is used to acknowledge person who found or reported the bug.
6464aeedc25SHarry van Haaren
6474aeedc25SHarry van Haaren``Suggested-by:`` indicates that the patch idea was suggested by the named
6484aeedc25SHarry van Haarenperson.
6494aeedc25SHarry van Haaren
6504aeedc25SHarry van Haaren
6514aeedc25SHarry van Haaren
6524aeedc25SHarry van HaarenSteps to getting your patch merged
6534aeedc25SHarry van Haaren~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6544aeedc25SHarry van Haaren
6554aeedc25SHarry van HaarenThe more work you put into the previous steps the easier it will be to get a
6564aeedc25SHarry van Haarenpatch accepted. The general cycle for patch review and acceptance is:
65758abf6e7SJohn McNamara
65858abf6e7SJohn McNamara#. Submit the patch.
65958abf6e7SJohn McNamara
66058abf6e7SJohn McNamara#. Check the automatic test reports in the coming hours.
66158abf6e7SJohn McNamara
66258abf6e7SJohn McNamara#. Wait for review comments. While you are waiting review some other patches.
66358abf6e7SJohn McNamara
66458abf6e7SJohn McNamara#. Fix the review comments and submit a ``v n+1`` patchset::
66558abf6e7SJohn McNamara
66658abf6e7SJohn McNamara      git format-patch -3 -v 2
66758abf6e7SJohn McNamara
66858abf6e7SJohn McNamara#. Update Patchwork to mark your previous patches as "Superseded".
66958abf6e7SJohn McNamara
67058abf6e7SJohn McNamara#. If the patch is deemed suitable for merging by the relevant maintainer(s) or other developers they will ``ack``
67158abf6e7SJohn McNamara   the patch with an email that includes something like::
67258abf6e7SJohn McNamara
67358abf6e7SJohn McNamara      Acked-by: Alex Smith <alex.smith@example.com>
67458abf6e7SJohn McNamara
67558abf6e7SJohn McNamara   **Note**: When acking patches please remove as much of the text of the patch email as possible.
67658abf6e7SJohn McNamara   It is generally best to delete everything after the ``Signed-off-by:`` line.
67758abf6e7SJohn McNamara
67858abf6e7SJohn McNamara#. Having the patch ``Reviewed-by:`` and/or ``Tested-by:`` will also help the patch to be accepted.
67958abf6e7SJohn McNamara
68058abf6e7SJohn McNamara#. If the patch isn't deemed suitable based on being out of scope or conflicting with existing functionality
68158abf6e7SJohn McNamara   it may receive a ``nack``.
68258abf6e7SJohn McNamara   In this case you will need to make a more convincing technical argument in favor of your patches.
68358abf6e7SJohn McNamara
68458abf6e7SJohn McNamara#. In addition a patch will not be accepted if it doesn't address comments from a previous version with fixes or
68558abf6e7SJohn McNamara   valid arguments.
68658abf6e7SJohn McNamara
6877968191bSBruce Richardson#. It is the responsibility of a maintainer to ensure that patches are reviewed and to provide an ``ack`` or
6887968191bSBruce Richardson   ``nack`` of those patches as appropriate.
6897968191bSBruce Richardson
6907968191bSBruce Richardson#. Once a patch has been acked by the relevant maintainer, reviewers may still comment on it for a further
6917968191bSBruce Richardson   two weeks. After that time, the patch should be merged into the relevant git tree for the next release.
6927968191bSBruce Richardson   Additional notes and restrictions:
6937968191bSBruce Richardson
6947968191bSBruce Richardson   * Patches should be acked by a maintainer at least two days before the release merge
6957968191bSBruce Richardson     deadline, in order to make that release.
6967968191bSBruce Richardson   * For patches acked with less than two weeks to go to the merge deadline, all additional
6977968191bSBruce Richardson     comments should be made no later than two days before the merge deadline.
6987968191bSBruce Richardson   * After the appropriate time for additional feedback has passed, if the patch has not yet
6997968191bSBruce Richardson     been merged to the relevant tree by the committer, it should be treated as though it had,
7007968191bSBruce Richardson     in that any additional changes needed to it must be addressed by a follow-on patch, rather
7017968191bSBruce Richardson     than rework of the original.
7027968191bSBruce Richardson   * Trivial patches may be merged sooner than described above at the tree committer's
7037968191bSBruce Richardson     discretion.
704