get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 124572,
    "url": "http://patches.dpdk.org/api/patches/124572/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230228145035.11828-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": "<20230228145035.11828-1-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230228145035.11828-1-bruce.richardson@intel.com",
    "date": "2023-02-28T14:50:36",
    "name": "dma/idxd: add verbose option to config script",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "249ac3fb6435126b65fd4fce3f3937839cd1f432",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230228145035.11828-1-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 27193,
            "url": "http://patches.dpdk.org/api/series/27193/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27193",
            "date": "2023-02-28T14:50:36",
            "name": "dma/idxd: add verbose option to config script",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/27193/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/124572/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/124572/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 9AB4041D9D;\n\tTue, 28 Feb 2023 15:51:56 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3090B410D4;\n\tTue, 28 Feb 2023 15:51:56 +0100 (CET)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id E33C04021F\n for <dev@dpdk.org>; Tue, 28 Feb 2023 15:51:53 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Feb 2023 06:51:52 -0800",
            "from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.152])\n by orsmga001.jf.intel.com with ESMTP; 28 Feb 2023 06:51:51 -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=1677595914; x=1709131914;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=wBGoG1PCpTSEwkcrL5F9bB/+AQeHx/OZdzRnjwnM6Lg=;\n b=N9kIcoW82WZCl6SDakiy8HAwHKE95OGY4L/8Kp3CYhuZgnVB7VaZJiml\n 7iROQIGmBauVoPuaaEV6Yvh+c82gDwGNH6L+KSrl3cWggCUWZcTPY3Nqy\n LDhKoZC0L27kr2JOpce1x5DFOQu1PqA+UNkkuya3FB98esIF1HxNh2LKT\n r+4G7xwe3yyGv/13PNg1IKsM1IEkywOlhyf9HXEL3kNQj5bCDewW41qHk\n R9LMhIhU+Lzj2PJo1iakmkFvG3f9FxKRBDZas+ekT5XM6hDiQzWq8q8ZA\n fb6MJfd3kW38IKhm4AxYshacd6rfQsSHeL19/jNZvOJYekDgvssS30ezE Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10635\"; a=\"396718767\"",
            "E=Sophos;i=\"5.98,222,1673942400\"; d=\"scan'208\";a=\"396718767\"",
            "E=McAfee;i=\"6500,9779,10635\"; a=\"706584085\"",
            "E=Sophos;i=\"5.98,222,1673942400\"; d=\"scan'208\";a=\"706584085\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Kevin Laatz <kevin.laatz@intel.com>",
        "Subject": "[PATCH] dma/idxd: add verbose option to config script",
        "Date": "Tue, 28 Feb 2023 14:50:36 +0000",
        "Message-Id": "<20230228145035.11828-1-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.37.2",
        "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": "In case there are issues when configuring a device instance using the\ndpdk_idxd_cfg.py script, add a \"verbose\" mode option to it. This allows\nthe user to see what changes are being made, and therefore which\noperation, if any, within the config fails.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/dma/idxd/dpdk_idxd_cfg.py | 10 ++++++++++\n 1 file changed, 10 insertions(+)",
    "diff": "diff --git a/drivers/dma/idxd/dpdk_idxd_cfg.py b/drivers/dma/idxd/dpdk_idxd_cfg.py\nindex 41b4d13b9c..c0c833ade9 100755\n--- a/drivers/dma/idxd/dpdk_idxd_cfg.py\n+++ b/drivers/dma/idxd/dpdk_idxd_cfg.py\n@@ -13,18 +13,24 @@\n \n \n class SysfsDir:\n+    verbose = False\n+\n     \"Used to read/write paths in a sysfs directory\"\n     def __init__(self, path):\n         self.path = path\n \n     def read_int(self, filename):\n         \"Return a value from sysfs file\"\n+        if SysfsDir.verbose:\n+            print(f\"Reading '{filename}' in {self.path}\")\n         with open(os.path.join(self.path, filename)) as f:\n             return int(f.readline())\n \n     def write_values(self, values):\n         \"write dictionary, where key is filename and value is value to write\"\n         for filename, contents in values.items():\n+            if SysfsDir.verbose:\n+                print(f\"Writing '{contents}' to '{filename}' in {self.path}\")\n             with open(os.path.join(self.path, filename), \"w\") as f:\n                 f.write(str(contents))\n \n@@ -124,12 +130,16 @@ def main(args):\n                        help=\"Prefix for workqueue name to mark for DPDK use [default: 'dpdk']\")\n     arg_p.add_argument('--wq-option', action='append', default=[],\n                        help=\"Provide additional config option for queues (format 'x=y')\")\n+    arg_p.add_argument('--verbose', '-v', action='store_true',\n+                       help=\"Provide addition info on tasks being performed\")\n     arg_p.add_argument('--reset', action='store_true',\n                        help=\"Reset DSA device and its queues\")\n     parsed_args = arg_p.parse_args(args[1:])\n \n     dsa_id = parsed_args.dsa_id\n     dsa_id = get_dsa_id(dsa_id) if ':' in dsa_id else dsa_id\n+\n+    SysfsDir.verbose = parsed_args.verbose\n     if parsed_args.reset:\n         reset_device(dsa_id)\n     else:\n",
    "prefixes": []
}