xref: /dpdk/doc/guides/contributing/patches.rst (revision d5f81030df75c587885245ff1b14f123448a97c7)
1..  SPDX-License-Identifier: BSD-3-Clause
2    Copyright 2018 The DPDK contributors
3
4.. submitting_patches:
5
6Contributing Code to DPDK
7=========================
8
9This document outlines the guidelines for submitting code to DPDK.
10
11The DPDK development process is modeled (loosely) on the Linux Kernel development model so it is worth reading the
12Linux kernel guide on submitting patches:
13`How to Get Your Change Into the Linux Kernel <https://www.kernel.org/doc/html/latest/process/submitting-patches.html>`_.
14The rationale for many of the DPDK guidelines is explained in greater detail in the kernel guidelines.
15
16
17The DPDK Development Process
18----------------------------
19
20The DPDK development process has the following features:
21
22* The code is hosted in a public git repository.
23* There is a mailing list where developers submit patches.
24* There are maintainers for hierarchical components.
25* Patches are reviewed publicly on the mailing list.
26* Successfully reviewed patches are merged to the repository.
27* Patches should be sent to the target repository or sub-tree, see below.
28
29The mailing list for DPDK development is `dev@dpdk.org <https://mails.dpdk.org/archives/dev/>`_.
30Contributors will need to `register for the mailing list <https://mails.dpdk.org/listinfo/dev>`_ in order to submit patches.
31It is also worth registering for the DPDK `Patchwork <https://patches.dpdk.org/project/dpdk/list/>`_
32
33If you are using the GitHub service, pushing to a branch will trigger GitHub
34Actions to automatically build your changes and run unit tests and ABI checks.
35
36The development process requires some familiarity with the ``git`` version control system.
37Refer to the `Pro Git Book <http://www.git-scm.com/book/>`_ for further information.
38
39Source License
40--------------
41
42The DPDK uses the Open Source BSD-3-Clause license for the core libraries and
43drivers. The kernel components are GPL-2.0 licensed. DPDK uses single line
44reference to Unique License Identifiers in source files as defined by the Linux
45Foundation's `SPDX project <http://spdx.org/>`_.
46
47DPDK uses first line of the file to be SPDX tag. In case of *#!* scripts, SPDX
48tag can be placed in 2nd line of the file.
49
50For example, to label a file as subject to the BSD-3-Clause license,
51the following text would be used:
52
53``SPDX-License-Identifier: BSD-3-Clause``
54
55To label a file as dual-licensed with BSD-3-Clause and GPL-2.0 (e.g., for code
56that is shared between the kernel and userspace), the following text would be
57used:
58
59``SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)``
60
61Refer to ``licenses/README`` for more details.
62
63Maintainers and Sub-trees
64-------------------------
65
66The DPDK maintenance hierarchy is divided into a main repository ``dpdk`` and sub-repositories ``dpdk-next-*``.
67
68There are maintainers for the trees and for components within the tree.
69
70Trees and maintainers are listed in the ``MAINTAINERS`` file. For example::
71
72    Crypto Drivers
73    --------------
74    M: Some Name <some.name@email.com>
75    T: git://dpdk.org/next/dpdk-next-crypto
76
77    Intel AES-NI GCM PMD
78    M: Some One <some.one@email.com>
79    F: drivers/crypto/aesni_gcm/
80    F: doc/guides/cryptodevs/aesni_gcm.rst
81
82Where:
83
84* ``M`` is a tree or component maintainer.
85* ``T`` is a repository tree.
86* ``F`` is a maintained file or directory.
87
88Additional details are given in the ``MAINTAINERS`` file.
89
90The role of the component maintainers is to:
91
92* Review patches for the component or delegate the review.
93  The review should be done, ideally, within 1 week of submission to the mailing list.
94* Add an ``acked-by`` to patches, or patchsets, that are ready for committing to a tree.
95* Reply to questions asked about the component.
96
97Component maintainers can be added or removed by submitting a patch to the ``MAINTAINERS`` file.
98Maintainers should have demonstrated a reasonable level of contributions or reviews to the component area.
99The maintainer should be confirmed by an ``ack`` from an established contributor.
100There can be more than one component maintainer if desired.
101
102The role of the tree maintainers is to:
103
104* Maintain the overall quality of their tree.
105  This can entail additional review, compilation checks or other tests deemed necessary by the maintainer.
106* Commit patches that have been reviewed by component maintainers and/or other contributors.
107  The tree maintainer should determine if patches have been reviewed sufficiently.
108* Ensure that patches are reviewed in a timely manner.
109* Prepare the tree for integration.
110* Ensure that there is a designated back-up maintainer and coordinate a handover for periods where the
111  tree maintainer can't perform their role.
112
113Tree maintainers can be added or removed by submitting a patch to the ``MAINTAINERS`` file.
114The 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.
115The maintainer should be confirmed by an ``ack`` from an existing tree maintainer.
116Disagreements on trees or maintainers can be brought to the Technical Board.
117
118The backup maintainer for the main tree should be selected
119from the existing sub-tree maintainers of the project.
120The backup maintainer for a sub-tree should be selected from among the component maintainers within that sub-tree.
121
122
123Getting the Source Code
124-----------------------
125
126The source code can be cloned using either of the following:
127
128main repository::
129
130    git clone git://dpdk.org/dpdk
131    git clone https://dpdk.org/git/dpdk
132
133sub-repositories (`list <https://git.dpdk.org/next>`_)::
134
135    git clone git://dpdk.org/next/dpdk-next-*
136    git clone https://dpdk.org/git/next/dpdk-next-*
137
138Make your Changes
139-----------------
140
141Make your planned changes in the cloned ``dpdk`` repo. Here are some guidelines and requirements:
142
143* Follow the :ref:`coding_style` guidelines.
144
145* If you are a new contributor, or if your mail address changed,
146  you may update the ``.mailmap`` file.
147  Otherwise the new name or address will be added by a maintainer.
148  Keeping this file up-to-date will help when someone wants to contact you
149  about the changes you contributed to.
150
151* If you add new files or directories you should add your name to the ``MAINTAINERS`` file.
152
153* Initial submission of new PMDs should be prepared against a corresponding repo.
154
155  * Thus, for example, initial submission of a new network PMD should be
156    prepared against dpdk-next-net repo.
157
158  * Likewise, initial submission of a new crypto or compression PMD should be
159    prepared against dpdk-next-crypto repo.
160
161  * For other PMDs and more info, refer to the ``MAINTAINERS`` file.
162
163* New external functions should be added to the local ``version.map`` file. See
164  the :doc:`ABI policy <abi_policy>` and :ref:`ABI versioning <abi_versioning>`
165  guides. New external functions should also be added in alphabetical order.
166
167* Any new API function should be used in ``/app`` test directory.
168
169* When introducing a new device API, at least one driver should implement it.
170
171* Important changes will require an addition to the release notes in ``doc/guides/rel_notes/``.
172  See the :ref:`Release Notes section of the Documentation Guidelines <doc_guidelines>` for details.
173
174* Test the compilation works with different targets, compilers and options, see :ref:`contrib_check_compilation`.
175
176* Don't break compilation between commits with forward dependencies in a patchset.
177  Each commit should compile on its own to allow for ``git bisect`` and continuous integration testing.
178
179* Add tests to the ``app/test`` unit test framework where possible.
180
181* Add documentation, if relevant, in the form of Doxygen comments or a User Guide in RST format.
182  See the :ref:`Documentation Guidelines <doc_guidelines>`.
183
184* Code and related documentation must be updated atomically in the same patch.
185
186Once the changes have been made you should commit them to your local repo.
187
188For small changes, that do not require specific explanations, it is better to keep things together in the
189same patch.
190Larger changes that require different explanations should be separated into logical patches in a patchset.
191A good way of thinking about whether a patch should be split is to consider whether the change could be
192applied without dependencies as a backport.
193
194As a guide to how patches should be structured run ``git log`` on similar files.
195
196
197Commit Messages: Subject Line
198-----------------------------
199
200The first, summary, line of the git commit message becomes the subject line of the patch email.
201Here are some guidelines for the summary line:
202
203* The summary line must capture the area and the impact of the change.
204
205* The summary line should be around 50 characters.
206
207* The summary line should be lowercase apart from acronyms.
208
209* It should be prefixed with the component name (use git log to check existing components).
210  For example::
211
212     ixgbe: fix offload config option name
213
214     config: increase max queues per port
215
216* Use the imperative of the verb (like instructions to the code base).
217
218* Don't add a period/full stop to the subject line or you will end up two in the patch name: ``dpdk_description..patch``.
219
220The actual email subject line should be prefixed by ``[PATCH]`` and the version, if greater than v1,
221for example: ``PATCH v2``.
222The is generally added by ``git send-email`` or ``git format-patch``, see below.
223
224If you are submitting an RFC draft of a feature you can use ``[RFC]`` instead of ``[PATCH]``.
225An RFC patch doesn't have to be complete.
226It is intended as a way of getting early feedback.
227
228
229Commit Messages: Body
230---------------------
231
232Here are some guidelines for the body of a commit message:
233
234* The body of the message should describe the issue being fixed or the feature being added.
235  It is important to provide enough information to allow a reviewer to understand the purpose of the patch.
236
237* When the change is obvious the body can be blank, apart from the signoff.
238
239* The commit message must end with a ``Signed-off-by:`` line which is added using::
240
241      git commit --signoff # or -s
242
243  The purpose of the signoff is explained in the
244  `Developer's Certificate of Origin <https://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1>`_
245  section of the Linux kernel guidelines.
246
247  .. Note::
248
249     All developers must ensure that they have read and understood the
250     Developer's Certificate of Origin section of the documentation prior
251     to applying the signoff and submitting a patch.
252
253* The signoff must be a real name and not an alias or nickname.
254  More than one signoff is allowed.
255
256* The text of the commit message should be wrapped at 72 characters.
257
258* When fixing a regression, it is required to reference the id of the commit
259  which introduced the bug, and put the original author of that commit on CC.
260  You can generate the required lines using the following git alias, which prints
261  the commit SHA and the author of the original code::
262
263     git config alias.fixline "log -1 --abbrev=12 --format='Fixes: %h (\"%s\")%nCc: %ae'"
264
265  The output of ``git fixline <SHA>`` must then be added to the commit message::
266
267     doc: fix some parameter description
268
269     Update the docs, fixing description of some parameter.
270
271     Fixes: abcdefgh1234 ("doc: add some parameter")
272
273     Signed-off-by: Alex Smith <alex.smith@example.com>
274     ---
275     Cc: author@example.com
276
277* When fixing an error or warning it is useful to add the error message and instructions on how to reproduce it.
278
279* Use correct capitalization, punctuation and spelling.
280
281In addition to the ``Signed-off-by:`` name the commit messages can also have
282tags for who reported, suggested, tested and reviewed the patch being
283posted. Please refer to the `Tested, Acked and Reviewed by`_ section.
284
285Patch Fix Related Issues
286~~~~~~~~~~~~~~~~~~~~~~~~
287
288`Coverity <https://scan.coverity.com/projects/dpdk-data-plane-development-kit>`_
289is a tool for static code analysis.
290It is used as a cloud-based service used to scan the DPDK source code,
291and alert developers of any potential defects in the source code.
292When fixing an issue found by Coverity, the patch must contain a Coverity issue ID
293in the body of the commit message. For example::
294
295
296     doc: fix some parameter description
297
298     Update the docs, fixing description of some parameter.
299
300     Coverity issue: 12345
301     Fixes: abcdefgh1234 ("doc: add some parameter")
302
303     Signed-off-by: Alex Smith <alex.smith@example.com>
304     ---
305     Cc: author@example.com
306
307
308`Bugzilla <https://bugs.dpdk.org>`_
309is a bug- or issue-tracking system.
310Bug-tracking systems allow individual or groups of developers
311effectively to keep track of outstanding problems with their product.
312When fixing an issue raised in Bugzilla, the patch must contain
313a Bugzilla issue ID in the body of the commit message.
314For example::
315
316    doc: fix some parameter description
317
318    Update the docs, fixing description of some parameter.
319
320    Bugzilla ID: 12345
321    Fixes: abcdefgh1234 ("doc: add some parameter")
322
323    Signed-off-by: Alex Smith <alex.smith@example.com>
324    ---
325    Cc: author@example.com
326
327Patch for Stable Releases
328~~~~~~~~~~~~~~~~~~~~~~~~~
329
330All fix patches to the main branch that are candidates for backporting
331should also be CCed to the `stable@dpdk.org <https://mails.dpdk.org/listinfo/stable>`_
332mailing list.
333In the commit message body the Cc: stable@dpdk.org should be inserted as follows::
334
335     doc: fix some parameter description
336
337     Update the docs, fixing description of some parameter.
338
339     Fixes: abcdefgh1234 ("doc: add some parameter")
340     Cc: stable@dpdk.org
341
342     Signed-off-by: Alex Smith <alex.smith@example.com>
343
344For further information on stable contribution you can go to
345:doc:`Stable Contribution Guide <stable>`.
346
347Patch Dependencies
348~~~~~~~~~~~~~~~~~~
349
350Sometimes a patch or patchset can depend on another one.
351To help the maintainers and automation tasks, please document this dependency in commit log or cover letter
352with the following syntax:
353
354``Depends-on: series-NNNNN ("Title of the series")`` or ``Depends-on: patch-NNNNN ("Title of the patch")``
355
356Where ``NNNNN`` is patchwork ID for patch or series::
357
358     doc: fix some parameter description
359
360     Update the docs, fixing description of some parameter.
361
362     Signed-off-by: Alex Smith <alex.smith@example.com>
363     ---
364     Depends-on: series-10000 ("Title of the series")
365
366Tag order
367~~~~~~~~~
368
369There is a pattern indicating how certain tags should relate to each other.
370
371Example of proper tag sequence::
372
373     Coverity issue:
374     Bugzilla ID:
375     Fixes:
376     Cc:
377
378     Reported-by:
379     Suggested-by:
380     Signed-off-by:
381     Acked-by:
382     Reviewed-by:
383     Tested-by:
384
385Between first and second tag section there is and empty line.
386
387While ``Signed-off-by:`` is an obligatory tag and must exist in each commit,
388all other tags are optional.
389Any tag, as long as it is in proper location to other adjacent tags (if present),
390may occur multiple times.
391
392Tags after the first occurrence of ``Signed-off-by:`` shall be laid out
393in a chronological order.
394
395
396Creating Patches
397----------------
398
399It is possible to send patches directly from git but for new contributors it is recommended to generate the
400patches with ``git format-patch`` and then when everything looks okay, and the patches have been checked, to
401send them with ``git send-email``.
402
403Here are some examples of using ``git format-patch`` to generate patches:
404
405.. code-block:: console
406
407   # Generate a patch from the last commit.
408   git format-patch -1
409
410   # Generate a patch from the last 3 commits.
411   git format-patch -3
412
413   # Generate the patches in a directory.
414   git format-patch -3 -o ~/patch/
415
416   # Add a cover letter to explain a patchset.
417   git format-patch -3 -o ~/patch/ --cover-letter
418
419   # Add a prefix with a version number.
420   git format-patch -3 -o ~/patch/ -v 2
421
422
423Cover letters are useful for explaining a patchset and help to generate a logical threading to the patches.
424Smaller notes can be put inline in the patch after the ``---`` separator, for example::
425
426   Subject: [PATCH] fm10k/base: add FM10420 device ids
427
428   Add the device ID for Boulder Rapids and Atwood Channel to enable
429   drivers to support those devices.
430
431   Signed-off-by: Alex Smith <alex.smith@example.com>
432   ---
433
434   ADD NOTES HERE.
435
436    drivers/net/fm10k/base/fm10k_api.c  | 6 ++++++
437    drivers/net/fm10k/base/fm10k_type.h | 6 ++++++
438    2 files changed, 12 insertions(+)
439   ...
440
441Version 2 and later of a patchset should also include a short log of the changes so the reviewer knows what has changed.
442This can be added to the cover letter or the annotations.
443For example::
444
445   ---
446   v3:
447   * Fixed issued with version.map.
448
449   v2:
450   * Added i40e support.
451   * Renamed ethdev functions from rte_eth_ieee15888_*() to rte_eth_timesync_*()
452     since 802.1AS can be supported through the same interfaces.
453
454
455.. _contrib_checkpatch:
456
457Checking the Patches
458--------------------
459
460Patches should be checked for formatting and syntax issues using the ``checkpatches.sh`` script in the ``devtools``
461directory of the DPDK repo.
462This uses the Linux kernel development tool ``checkpatch.pl`` which  can be obtained by cloning, and periodically,
463updating the Linux kernel sources.
464
465The path to the original Linux script must be set in the environment variable ``DPDK_CHECKPATCH_PATH``.
466
467Spell checking of commonly misspelled words is enabled
468by default if installed in ``/usr/share/codespell/dictionary.txt``.
469A different dictionary path can be specified
470in the environment variable ``DPDK_CHECKPATCH_CODESPELL``.
471
472There is a DPDK script to build an adjusted dictionary
473from the multiple codespell dictionaries::
474
475   git clone https://github.com/codespell-project/codespell.git
476   devtools/build-dict.sh codespell/ > codespell-dpdk.txt
477
478Environment variables required by the development tools,
479are loaded from the following files, in order of preference::
480
481   .develconfig
482   ~/.config/dpdk/devel.config
483   /etc/dpdk/devel.config.
484
485Once the environment variable is set, the script can be run as follows::
486
487   devtools/checkpatches.sh ~/patch/
488
489The script usage is::
490
491   checkpatches.sh [-h] [-q] [-v] [-nX|-r range|patch1 [patch2] ...]
492
493Then the git logs should be checked using the ``check-git-log.sh`` script.
494
495The script usage is::
496
497   check-git-log.sh [-h] [-nX|-r range]
498
499For both of the above scripts, the -n option is used to specify a number of commits from HEAD,
500and the -r option allows the user specify a ``git log`` range.
501
502Additionally, when contributing to the DTS tool, patches should also be checked using
503the ``dts-check-format.sh`` script in the ``devtools`` directory of the DPDK repo.
504To run the script, extra :ref:`Python dependencies <dts_deps>` are needed.
505
506.. _contrib_check_compilation:
507
508Checking Compilation
509--------------------
510
511Compilation of patches is to be tested with ``devtools/test-meson-builds.sh`` script.
512
513The script internally checks for dependencies, then builds for several
514combinations of compilation configuration.
515By default, each build will be put in a subfolder of the current working directory.
516However, if it is preferred to place the builds in a different location,
517the environment variable ``DPDK_BUILD_TEST_DIR`` can be set to that desired location.
518For example, setting ``DPDK_BUILD_TEST_DIR=__builds`` will put all builds
519in a single subfolder called "__builds" created in the current directory.
520Setting ``DPDK_BUILD_TEST_DIR`` to an absolute directory path e.g. ``/tmp`` is also supported.
521
522
523.. _integrated_abi_check:
524
525Checking ABI compatibility
526--------------------------
527
528By default, ABI compatibility checks are disabled.
529
530To enable them, a reference version must be selected via the environment
531variable ``DPDK_ABI_REF_VERSION``. Contributors should ordinarily reference the
532git tag of the most recent release of DPDK in ``DPDK_ABI_REF_VERSION``.
533
534The ``devtools/test-meson-builds.sh`` script then build this reference version
535in a temporary directory and store the results in a subfolder of the current
536working directory.
537The environment variable ``DPDK_ABI_REF_DIR`` can be set so that the results go
538to a different location.
539
540Sample::
541
542   DPDK_ABI_REF_VERSION=v19.11 DPDK_ABI_REF_DIR=/tmp ./devtools/test-meson-builds.sh
543
544
545Sending Patches
546---------------
547
548Patches should be sent to the mailing list using ``git send-email``.
549You can configure an external SMTP with something like the following::
550
551   [sendemail]
552       smtpuser = name@domain.com
553       smtpserver = smtp.domain.com
554       smtpserverport = 465
555       smtpencryption = ssl
556
557See the `Git send-email <https://git-scm.com/docs/git-send-email>`_ documentation for more details.
558
559The patches should be sent to ``dev@dpdk.org``.
560If the patches are a change to existing files then you should send them TO the maintainer(s) and CC ``dev@dpdk.org``.
561The appropriate maintainer can be found in the ``MAINTAINERS`` file::
562
563   git send-email --to maintainer@some.org --cc dev@dpdk.org 000*.patch
564
565Script ``get-maintainer.sh`` can be used to select maintainers automatically::
566
567  git send-email --to-cmd ./devtools/get-maintainer.sh --cc dev@dpdk.org 000*.patch
568
569You can test the emails by sending it to yourself or with the ``--dry-run`` option.
570
571If the patch is in relation to a previous email thread you can add it to the same thread using the Message ID::
572
573   git send-email --to dev@dpdk.org --in-reply-to <1234-foo@bar.com> 000*.patch
574
575The Message ID can be found in the raw text of emails or at the top of each Patchwork patch,
576`for example <https://patches.dpdk.org/patch/7646/>`_.
577Shallow threading (``--thread --no-chain-reply-to``) is preferred for a patch series.
578
579Once submitted your patches will appear on the mailing list and in Patchwork.
580
581Experienced committers may send patches directly with ``git send-email`` without the ``git format-patch`` step.
582The options ``--annotate`` and ``confirm = always`` are recommended for checking patches before sending.
583
584
585Backporting patches for Stable Releases
586~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
587
588Sometimes a maintainer or contributor wishes, or can be asked, to send a patch
589for a stable release rather than mainline.
590In this case the patch(es) should be sent to ``stable@dpdk.org``,
591not to ``dev@dpdk.org``.
592
593Given that there are multiple stable releases being maintained at the same time,
594please specify exactly which branch(es) the patch is for
595using ``git send-email --subject-prefix='PATCH 16.11' ...``
596and also optionally in the cover letter or in the annotation.
597
598
599The Review Process
600------------------
601
602Patches are reviewed by the community, relying on the experience and
603collaboration of the members to double-check each other's work. There are a
604number of ways to indicate that you have checked a patch on the mailing list.
605
606
607Tested, Acked and Reviewed by
608~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
609
610To indicate that you have interacted with a patch on the mailing list you
611should respond to the patch in an email with one of the following tags:
612
613 * Reviewed-by:
614 * Acked-by:
615 * Tested-by:
616 * Reported-by:
617 * Suggested-by:
618
619The tag should be on a separate line as follows::
620
621   tag-here: Name Surname <email@address.com>
622
623Each of these tags has a specific meaning. In general, the DPDK community
624follows the kernel usage of the tags. A short summary of the meanings of each
625tag is given here for reference:
626
627.. _statement: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#reviewer-s-statement-of-oversight
628
629``Reviewed-by:`` is a strong statement_ that the patch is an appropriate state
630for merging without any remaining serious technical issues. Reviews from
631community members who are known to understand the subject area and to perform
632thorough reviews will increase the likelihood of the patch getting merged.
633
634``Acked-by:`` is a record that the person named was not directly involved in
635the preparation of the patch but wishes to signify and record their acceptance
636and approval of it.
637
638``Tested-by:`` indicates that the patch has been successfully tested (in some
639environment) by the person named.
640
641``Reported-by:`` is used to acknowledge person who found or reported the bug.
642
643``Suggested-by:`` indicates that the patch idea was suggested by the named
644person.
645
646
647
648Steps to getting your patch merged
649~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
650
651The more work you put into the previous steps the easier it will be to get a
652patch accepted. The general cycle for patch review and acceptance is:
653
654#. Submit the patch.
655
656#. Check the automatic test reports in the coming hours.
657
658#. Wait for review comments. While you are waiting review some other patches.
659
660#. Fix the review comments and submit a ``v n+1`` patchset::
661
662      git format-patch -3 -v 2
663
664#. Update Patchwork to mark your previous patches as "Superseded".
665
666#. If the patch is deemed suitable for merging by the relevant maintainer(s) or other developers they will ``ack``
667   the patch with an email that includes something like::
668
669      Acked-by: Alex Smith <alex.smith@example.com>
670
671   **Note**: When acking patches please remove as much of the text of the patch email as possible.
672   It is generally best to delete everything after the ``Signed-off-by:`` line.
673
674#. Having the patch ``Reviewed-by:`` and/or ``Tested-by:`` will also help the patch to be accepted.
675
676#. If the patch isn't deemed suitable based on being out of scope or conflicting with existing functionality
677   it may receive a ``nack``.
678   In this case you will need to make a more convincing technical argument in favor of your patches.
679
680#. In addition a patch will not be accepted if it doesn't address comments from a previous version with fixes or
681   valid arguments.
682
683#. It is the responsibility of a maintainer to ensure that patches are reviewed and to provide an ``ack`` or
684   ``nack`` of those patches as appropriate.
685
686#. Once a patch has been acked by the relevant maintainer, reviewers may still comment on it for a further
687   two weeks. After that time, the patch should be merged into the relevant git tree for the next release.
688   Additional notes and restrictions:
689
690   * Patches should be acked by a maintainer at least two days before the release merge
691     deadline, in order to make that release.
692   * For patches acked with less than two weeks to go to the merge deadline, all additional
693     comments should be made no later than two days before the merge deadline.
694   * After the appropriate time for additional feedback has passed, if the patch has not yet
695     been merged to the relevant tree by the committer, it should be treated as though it had,
696     in that any additional changes needed to it must be addressed by a follow-on patch, rather
697     than rework of the original.
698   * Trivial patches may be merged sooner than described above at the tree committer's
699     discretion.
700
701
702Milestones definition
703---------------------
704
705Each DPDK release has milestones that help everyone to converge to the release date.
706The following is a list of these milestones together with
707concrete definitions and expectations for a typical release cycle.
708An average cycle lasts 3 months and have 4 release candidates in the last month.
709Test reports are expected to be received after each release candidate.
710The number and expectations of release candidates might vary slightly.
711The schedule is updated in the `roadmap <https://core.dpdk.org/roadmap/#dates>`_.
712
713.. note::
714   Sooner is always better. Deadlines are not ideal dates.
715
716   Integration is never guaranteed but everyone can help.
717
718Roadmap
719~~~~~~~
720
721* Announce new features in libraries, drivers, applications, and examples.
722* To be published before the previous release.
723
724Proposal Deadline
725~~~~~~~~~~~~~~~~~
726
727* Must send an RFC (Request For Comments) or a complete patch of new features.
728* Early RFC gives time for design review before complete implementation.
729* Should include at least the API changes in libraries and applications.
730* Library code should be quite complete at the deadline.
731* Nice to have: driver implementation, example code, and documentation.
732
733rc1
734~~~
735
736* Priority: libraries. No library feature should be accepted after -rc1.
737* API changes or additions must be implemented in libraries.
738* The API must include Doxygen documentation
739  and be part of the relevant .rst files (library-specific and release notes).
740* API should be used in a test application (``/app``).
741* At least one PMD should implement the API.
742  It may be a draft sent in a separate series.
743* The above should be sent to the mailing list at least 2 weeks before -rc1
744  to give time for review and maintainers approval.
745* If no review after 10 days, a reminder should be sent.
746* Nice to have: example code (``/examples``)
747
748rc2
749~~~
750
751* Priority: drivers. No driver feature should be accepted after -rc2.
752* A driver change must include documentation
753  in the relevant .rst files (driver-specific and release notes).
754* Driver changes should be sent to the mailing list before -rc1 is released.
755
756rc3
757~~~
758
759* Priority: applications. No application feature should be accepted after -rc3.
760* New functionality that does not depend on libraries update
761  can be integrated as part of -rc3.
762* The application change must include documentation in the relevant .rst files
763  (application-specific and release notes if significant).
764* Libraries and drivers cleanup are allowed.
765* Small driver reworks.
766
767rc4
768~~~
769
770* Documentation updates.
771* Critical bug fixes only.
772
773.. note::
774   Bug fixes are integrated as early as possible at any stage.
775