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