get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/134883/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 134883,
    "url": "https://patches.dpdk.org/api/patches/134883/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231205145109.1000464-4-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20231205145109.1000464-4-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231205145109.1000464-4-bruce.richardson@intel.com",
    "date": "2023-12-05T14:51:09",
    "name": "[3/3] buildtools/dpdk-cmdline-gen: add explicit IPv4 and v6 types",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "dd2060db0e92698ff12c9213f6cfb94336997cbf",
    "submitter": {
        "id": 20,
        "url": "https://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231205145109.1000464-4-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 30459,
            "url": "https://patches.dpdk.org/api/series/30459/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=30459",
            "date": "2023-12-05T14:51:06",
            "name": "enhancements for dpdk-cmdline-gen script",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/30459/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/134883/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/134883/checks/",
    "tags": {},
    "related": [],
    "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 594FF4367A;\n\tTue,  5 Dec 2023 15:51:42 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0ABB542E66;\n\tTue,  5 Dec 2023 15:51:32 +0100 (CET)",
            "from mgamail.intel.com (mgamail.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 69DE342E6C\n for <dev@dpdk.org>; Tue,  5 Dec 2023 15:51:30 +0100 (CET)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Dec 2023 06:51:30 -0800",
            "from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.152])\n by fmsmga006.fm.intel.com with ESMTP; 05 Dec 2023 06:51:28 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1701787890; x=1733323890;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=VzGkMUWknDCgMZALZwpoUeosfzY66DbU5lXtz7m+XKA=;\n b=RuX9/9oBSVp1+rSjB7M0YlkwUzXzPIgAWEvpJRGbYlNGXkqDdi3mxQo9\n BeCdya+QaIRxsWqHOYzjfROea8QPeF9NziIY1g3o1qyCNNYBRFyYwiKut\n U0BJvt2nm/zYYsLklgdaMcWpwyHhhW76hptGC56QVernrKsCA7+fpeCvE\n IqrIp3krB46RF/ZGPPHQUA0hGTFPNMmSd6+OJRWXy6Yrp+mIENURFqQCg\n y/MaIjd+i9ty/H3c1vzRLU9qtVjrxQJW4cmsP/9wRuM5K9vb83eNAEm2y\n AL+/7izBg4gsMWGUsaG10D1WD9fX3lPGpDuaKh0ZexUOlzwS5ew9cnUWN g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10915\"; a=\"374089987\"",
            "E=Sophos;i=\"6.04,252,1695711600\"; d=\"scan'208\";a=\"374089987\"",
            "E=McAfee;i=\"6600,9927,10915\"; a=\"1018234180\"",
            "E=Sophos;i=\"6.04,252,1695711600\"; d=\"scan'208\";a=\"1018234180\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "skori@marvell.com, david.marchand@redhat.com,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Subject": "[PATCH 3/3] buildtools/dpdk-cmdline-gen: add explicit IPv4 and v6\n types",
        "Date": "Tue,  5 Dec 2023 14:51:09 +0000",
        "Message-Id": "<20231205145109.1000464-4-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.40.1",
        "In-Reply-To": "<20231205145109.1000464-1-bruce.richardson@intel.com>",
        "References": "<20231205145109.1000464-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": "Add support for generating cmdline lib code to just match IPv4 addresses\nor IPv6 addresses, rather than IP addresses in general.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n buildtools/dpdk-cmdline-gen.py    | 12 ++++++++++++\n doc/guides/prog_guide/cmdline.rst |  4 ++++\n 2 files changed, 16 insertions(+)",
    "diff": "diff --git a/buildtools/dpdk-cmdline-gen.py b/buildtools/dpdk-cmdline-gen.py\nindex 8b4f22ca24..7dadded783 100755\n--- a/buildtools/dpdk-cmdline-gen.py\n+++ b/buildtools/dpdk-cmdline-gen.py\n@@ -81,6 +81,18 @@ def process_command(lineno, tokens, comment):\n                 f\"static cmdline_parse_token_ipaddr_t cmd_{name}_{t_name}_tok =\\n\"\n                 f\"\\tTOKEN_IPADDR_INITIALIZER(struct cmd_{name}_result, {t_name});\"\n             )\n+        elif t_type in [\"IPV4\", \"IPv4\", \"IPV4_ADDR\"]:\n+            result_struct.append(f\"\\tcmdline_ipaddr_t {t_name};\")\n+            initializers.append(\n+                f\"static cmdline_parse_token_ipaddr_t cmd_{name}_{t_name}_tok =\\n\"\n+                f\"\\tTOKEN_IPV4_INITIALIZER(struct cmd_{name}_result, {t_name});\"\n+            )\n+        elif t_type in [\"IPV6\", \"IPv6\", \"IPV6_ADDR\"]:\n+            result_struct.append(f\"\\tcmdline_ipaddr_t {t_name};\")\n+            initializers.append(\n+                f\"static cmdline_parse_token_ipaddr_t cmd_{name}_{t_name}_tok =\\n\"\n+                f\"\\tTOKEN_IPV6_INITIALIZER(struct cmd_{name}_result, {t_name});\"\n+            )\n         elif t_type.startswith(\"(\") and t_type.endswith(\")\"):\n             result_struct.append(f\"\\tcmdline_fixed_string_t {t_name};\")\n             t_val = f'\"{t_type[1:-1].replace(\",\",\"#\")}\"'\ndiff --git a/doc/guides/prog_guide/cmdline.rst b/doc/guides/prog_guide/cmdline.rst\nindex fc32d727dc..f62f17f1aa 100644\n--- a/doc/guides/prog_guide/cmdline.rst\n+++ b/doc/guides/prog_guide/cmdline.rst\n@@ -70,6 +70,10 @@ The format of the list file must be:\n \n   * ``<IP>src_ip``\n \n+  * ``<IPv4>dst_ip4``\n+\n+  * ``<IPv6>dst_ip6``\n+\n * Variable fields, which take their values from a list of options,\n   have the comma-separated option list placed in braces, rather than a the type name.\n   For example,\n",
    "prefixes": [
        "3/3"
    ]
}