Show a cover letter.

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

{
    "id": 266,
    "url": "http://patches.dpdk.org/api/covers/266/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/cover/20231017121318.146007-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": "<20231017121318.146007-1-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231017121318.146007-1-bruce.richardson@intel.com",
    "date": "2023-10-17T12:13:09",
    "name": "[v5,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/20231017121318.146007-1-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 29878,
            "url": "http://patches.dpdk.org/api/series/29878/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29878",
            "date": "2023-10-17T12:13:09",
            "name": "document and simplify use of cmdline",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/29878/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/covers/266/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 72FD24318A;\n\tTue, 17 Oct 2023 14:13:28 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 170584029E;\n\tTue, 17 Oct 2023 14:13:28 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id ED66E40273\n for <dev@dpdk.org>; Tue, 17 Oct 2023 14:13:25 +0200 (CEST)",
            "from fmviesa001.fm.intel.com ([10.60.135.141])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Oct 2023 05:13:24 -0700",
            "from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.41])\n by fmviesa001.fm.intel.com with ESMTP; 17 Oct 2023 05:13:28 -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=1697544806; x=1729080806;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=pnM02qEVLafaXUMXTHqYtv7E84c2Wr/9Nikhhyi7+Uw=;\n b=U/WsqVupO1uWgGERD4uqpxxM5uscVx/NwzDBpySUVJtC7lPzlZA2ByKL\n tAdYGwal6w+HM2YzQ79VCy9ElJq/Gpe6mH8IN16k85GJQJdbLSwv1ufci\n lHwfK2so66YDqHOMCtZAC16no0xj+uFy3eVbVKylvjW+WA1bn72cAcO7W\n JiNaL2PKyhvdJjbYOH90BWRDcW+FDBsaM8i4UmPF760Tgz35HtUT30MZs\n amNTaM3HoYpYwrhHZKAky7T7mmqxeodH2/8hCt8RgmzT/ivuHS9fmSmWo\n qdzDCieUFZ4mWMeUQ6c0M9Wb/J/F9+07+EOtnnhaYN5s8myS0uM0JrGym g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10865\"; a=\"449984761\"",
            "E=Sophos;i=\"6.03,232,1694761200\"; d=\"scan'208\";a=\"449984761\"",
            "E=Sophos;i=\"6.03,232,1694761200\";\n   d=\"scan'208\";a=\"4068798\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com, rjarry@redhat.com,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Subject": "[PATCH v5 0/9] document and simplify use of cmdline",
        "Date": "Tue, 17 Oct 2023 13:13:09 +0100",
        "Message-Id": "<20231017121318.146007-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, new in V5, 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\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\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             | 470 ++++++++++++++++++\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, 863 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"
}