Show a cover letter.

GET /api/covers/293/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 293,
    "url": "http://patches.dpdk.org/api/covers/293/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/cover/20231023131552.1024375-1-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20231023131552.1024375-1-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231023131552.1024375-1-bruce.richardson@intel.com",
    "date": "2023-10-23T13:15:43",
    "name": "[v6,0/9] document and simplify use of cmdline",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/cover/20231023131552.1024375-1-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 29955,
            "url": "http://patches.dpdk.org/api/series/29955/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29955",
            "date": "2023-10-23T13:15:43",
            "name": "document and simplify use of cmdline",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/29955/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/covers/293/comments/",
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DE7D7431E2;\n\tMon, 23 Oct 2023 15:16:02 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C00CD402D6;\n\tMon, 23 Oct 2023 15:16:02 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id B194C402D6\n for <dev@dpdk.org>; Mon, 23 Oct 2023 15:16:00 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Oct 2023 06:15:59 -0700",
            "from silpixa00401385.ir.intel.com ([10.237.214.154])\n by orsmga005.jf.intel.com with ESMTP; 23 Oct 2023 06:15:58 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1698066960; x=1729602960;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=GoQazGd5ygh6Ho4SOIVMsNwXzV4CBw9iezQp59/fNVk=;\n b=O8y29DlqCyaNc1XJFyd4Cc8h7QxmX/H2rEiv4ZBAK0J55hFTEbJaBQCs\n s0upj3BssdA/dzSsdWhEo1sW0JHjaRpzNCvvFBtoctngc3kyqcwEp76mU\n XYPbrGtDQ6yfb0HS/MkMoL/7enOtcEFH7YtKoV6cDzYLoa6FT+FO/UoSs\n FqyUBMlZ7iJR6qawkkdFOAvqhtNKDYOJtUt2vErGFi6s+kLGFsINCWXUk\n 2xWZriupWElP0olw+b/ukIoxAB/ODhXvR2AIYCW5VbldCQlxqajMdffv7\n PK5/sEiPpoQreQ0oTGr9cYjDgo7IPf9Qv7w9FU7KT0yws4xn0d/1l0PLG g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10872\"; a=\"384033591\"",
            "E=Sophos;i=\"6.03,244,1694761200\"; d=\"scan'208\";a=\"384033591\"",
            "E=McAfee;i=\"6600,9927,10872\"; a=\"931680614\"",
            "E=Sophos;i=\"6.03,244,1694761200\"; d=\"scan'208\";a=\"931680614\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com,\n\tBruce Richardson <bruce.richardson@intel.com>",
        "Subject": "[PATCH v6 0/9] document and simplify use of cmdline",
        "Date": "Mon, 23 Oct 2023 14:15:43 +0100",
        "Message-Id": "<20231023131552.1024375-1-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.39.2",
        "In-Reply-To": "<20230802170052.955323-1-bruce.richardson@intel.com>",
        "References": "<20230802170052.955323-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "The DPDK commandline library is widely used by apps and examples within\nDPDK, but it is not documented in our programmers guide and it requires\na lot of boilerplate code definitions in order to used. We can improve\nthis situation by creating a simple python script to automatically\ngenerate the boilerplate from a list of commands.\n\nThis patchset contains a new documentation chapter on cmdline library,\ngoing through step-by-step how to add commands and create the necessary\ntoken lists and parse contexts.\n\nFollowing that initial doc patch, the set then contains a\nboilerplate-generating script, as well as a set of four patches showing\nits use, by converting four examples to use the script instead of\nhaving the hard-coded boilerplate. Once the script is used, adding a new\ncommand becomes as simple as adding the desired command to the .list\nfile, and then writing the required function which will be called for\nthat command. No other boilerplate coding is necessary.\n\nFinal two patches, from V5 onwards, add support for option-lists in values,\nand then use that support to convert over a fifth sample app - ntb.\n\nCmdline script obviously does not cover the full range of capabilities\nof the commandline lib, but does cover the most used parts. The\ncode-saving to each of the examples by auto-generating the boilerplate\nis significant, and probably more examples with commandlines can be\nconverted over in future.\n\nThe \"cmdline\" example itself, is not converted over, as it should\nprobably remain as a simple example of direct library use without the\nscript.\n\nv6:\n* rework syntax of the option lists following feedback from David.\n  Now use \"(x,y,z)\" instead of \"|x|y|z|\", to avoid giving impression\n  of regex support\n\nV5:\n* Added copyright headers to command list files\n* Add support for option lists\n* Convert examples/ntb to use script\n\nV4:\n* Reworked script following feedback from Robin J.\n   - formatted code with black\n   - used multi-line strings\n   - replaced sys.exit(1) with proper error handling\n   - per-command function returns lists rather than printing directly\n   - other small cleanups\n* Added change to CI script so the cmdline script is in PATH\n* Converted VDPA example to script, saving another 100 LOC\n\nV3:\n* Added lots of documentation\n* Added support for help text for each command\n* Cleaned up script a little so it passes pycodestyle and most flake8\n  checks, when line-length is set to max 100.\n* Removed RFC tag, as I consider this patchset stable enough for\n  consideration in a release.\n\nV2-RFC:\n* Add support for IP addresses in commands\n* Move to buildtools directory and make installable\n* Convert 3 examples to use script, and eliminate their boilerplate\n *** SUBJECT HERE ***\n\n*** BLURB HERE ***\n\nBruce Richardson (9):\n  doc/prog_guide: new chapter on cmdline library\n  buildtools: script to generate cmdline boilerplate\n  ci: allow use of DPDK tools when building examples\n  examples/simple_mp: auto-generate cmdline boilerplate\n  examples/hotplug_mp: auto-generate cmdline boilerplate\n  examples/bond: auto-generate cmdline boilerplate\n  examples/vdpa: auto-generate cmdline boilerplate\n  buildtools/dpdk-cmdline-gen: support option strings\n  examples/ntb: auto-generate cmdline boilerplate\n\n .ci/linux-build.sh                            |   1 +\n app/test/commands.c                           |   2 +\n buildtools/dpdk-cmdline-gen.py                | 197 ++++++++\n buildtools/meson.build                        |   7 +\n doc/guides/prog_guide/cmdline.rst             | 473 ++++++++++++++++++\n doc/guides/prog_guide/index.rst               |   1 +\n examples/bond/Makefile                        |  12 +-\n examples/bond/commands.list                   |   6 +\n examples/bond/main.c                          | 161 +-----\n examples/bond/main.h                          |  10 -\n examples/bond/meson.build                     |   8 +\n examples/multi_process/hotplug_mp/Makefile    |  12 +-\n examples/multi_process/hotplug_mp/commands.c  | 147 +-----\n examples/multi_process/hotplug_mp/commands.h  |  10 -\n .../multi_process/hotplug_mp/commands.list    |   8 +\n examples/multi_process/hotplug_mp/meson.build |   9 +\n examples/multi_process/simple_mp/Makefile     |  12 +-\n examples/multi_process/simple_mp/meson.build  |   9 +\n .../multi_process/simple_mp/mp_commands.c     | 106 +---\n .../multi_process/simple_mp/mp_commands.h     |  14 -\n .../multi_process/simple_mp/mp_commands.list  |   6 +\n examples/ntb/Makefile                         |  12 +-\n examples/ntb/commands.list                    |  11 +\n examples/ntb/meson.build                      |   7 +\n examples/ntb/ntb_fwd.c                        | 200 +-------\n examples/vdpa/Makefile                        |  12 +-\n examples/vdpa/commands.list                   |   8 +\n examples/vdpa/main.c                          | 131 +----\n examples/vdpa/meson.build                     |   7 +\n 29 files changed, 866 insertions(+), 733 deletions(-)\n create mode 100755 buildtools/dpdk-cmdline-gen.py\n create mode 100644 doc/guides/prog_guide/cmdline.rst\n create mode 100644 examples/bond/commands.list\n delete mode 100644 examples/bond/main.h\n delete mode 100644 examples/multi_process/hotplug_mp/commands.h\n create mode 100644 examples/multi_process/hotplug_mp/commands.list\n delete mode 100644 examples/multi_process/simple_mp/mp_commands.h\n create mode 100644 examples/multi_process/simple_mp/mp_commands.list\n create mode 100644 examples/ntb/commands.list\n create mode 100644 examples/vdpa/commands.list\n\n--\n2.39.2"
}