get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 135287,
    "url": "http://patches.dpdk.org/api/patches/135287/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231218172206.8488-4-jspewock@iol.unh.edu/",
    "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": "<20231218172206.8488-4-jspewock@iol.unh.edu>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231218172206.8488-4-jspewock@iol.unh.edu",
    "date": "2023-12-18T17:22:02",
    "name": "[v4,2/7] dts: allow passing parameters into interactive apps",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7084b31e9b9b5bc85fb20db01f5e9bb7aaa4b5c4",
    "submitter": {
        "id": 2772,
        "url": "http://patches.dpdk.org/api/people/2772/?format=api",
        "name": "Jeremy Spewock",
        "email": "jspewock@iol.unh.edu"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231218172206.8488-4-jspewock@iol.unh.edu/mbox/",
    "series": [
        {
            "id": 30596,
            "url": "http://patches.dpdk.org/api/series/30596/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30596",
            "date": "2023-12-18T17:22:02",
            "name": null,
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/30596/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/135287/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/135287/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 E4E104373D;\n\tMon, 18 Dec 2023 18:23:38 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 87BD042DA3;\n\tMon, 18 Dec 2023 18:23:36 +0100 (CET)",
            "from mail-oi1-f226.google.com (mail-oi1-f226.google.com\n [209.85.167.226])\n by mails.dpdk.org (Postfix) with ESMTP id 3D7BF42DA1\n for <dev@dpdk.org>; Mon, 18 Dec 2023 18:23:35 +0100 (CET)",
            "by mail-oi1-f226.google.com with SMTP id\n 5614622812f47-3b9d8bfe845so2807841b6e.0\n for <dev@dpdk.org>; Mon, 18 Dec 2023 09:23:35 -0800 (PST)",
            "from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84])\n by smtp-relay.gmail.com with ESMTPS id\n an39-20020a056871b1a700b00203b08465b9sm61813oac.40.2023.12.18.09.23.33\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Mon, 18 Dec 2023 09:23:34 -0800 (PST)",
            "from iol.unh.edu (unknown\n [IPv6:2606:4100:3880:1271:90f9:1b64:f6e6:867f])\n by postal.iol.unh.edu (Postfix) with ESMTP id 7F0AA605C312;\n Mon, 18 Dec 2023 12:23:33 -0500 (EST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=iol.unh.edu; s=unh-iol; t=1702920214; x=1703525014; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=8PkZFNIb4FYyzi/xXyZ+4+3TKRrd7iSse1Ifxnl7lPQ=;\n b=HiNoPIxN4FL6RxG/aXNPT9u582D9Lsw8DQooK2ECwpbyiiCO2fn+9MvePV35iBf2zn\n KEUbIohZ1FQzpgBjmrZ6L053TZB/wrBFkCNdE4WUbBZUicPYQ7pUqgSfgEMl/QcLjxiR\n GrADdkcrQPyYIhvv/un164k/rxRea4iPe14fw=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1702920214; x=1703525014;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=8PkZFNIb4FYyzi/xXyZ+4+3TKRrd7iSse1Ifxnl7lPQ=;\n b=MdcDOkpFNSbgzi5pi224kylF/2sQpw4RxzgylIHjwPidood+DBuDIxNh3mPVRW5nsO\n T55Anx9VkAXOx63OYXWLH47Hj+U9hxOiKw5D3JPkUtjaVCzDTZ37TG7atpOEpcZ6uIG2\n dPsHk195lhwL+GKC4tiuZIUdm6Mw9JyHZOb6qiJ5auaqCM3p59n6BlElr1KHByCQMnyW\n OqGXQsjYhJA9qej2WVW2i7uVg7eYsGdHVo2KgJJrfl4FVe9O7L5uAELGmYw6kJO3t+UW\n ObD2mavQQkq6EMxxBeUqs9Z/+8d6SLoa96xU2nyF/kXrbCo76Ha94sKWIBQlSyEh1rEO\n Ok/g==",
        "X-Gm-Message-State": "AOJu0Yzr3mz8UnHcqQom5Sd3LNyQuyVGPbNbQA3Sa7aOtW9p2w0jNbJa\n o5sdZCcEK7U/Ki8r5Te95bRmWYEFqM/NeqwvpVNZOGFJ8FF8aQ==",
        "X-Google-Smtp-Source": "\n AGHT+IHh7B5sPXMgWUBj0XZlCoggwPEZlnLCdDq+eKjnJTOaSNODxTcugsmZHgImifsBiTQuhqhDz/hQ7eFq",
        "X-Received": "by 2002:a05:6870:961d:b0:1fb:d30:c160 with SMTP id\n d29-20020a056870961d00b001fb0d30c160mr19989843oaq.3.1702920214446;\n Mon, 18 Dec 2023 09:23:34 -0800 (PST)",
        "X-Relaying-Domain": "iol.unh.edu",
        "From": "jspewock@iol.unh.edu",
        "To": "Honnappa.Nagarahalli@arm.com, juraj.linkes@pantheon.tech,\n thomas@monjalon.net, wathsala.vithanage@arm.com, probb@iol.unh.edu,\n paul.szczepanek@arm.com, yoan.picchi@foss.arm.com, ferruh.yigit@amd.com,\n andrew.rybchenko@oktetlabs.ru",
        "Cc": "dev@dpdk.org,\n\tJeremy Spewock <jspewock@iol.unh.edu>",
        "Subject": "[PATCH v4 2/7] dts: allow passing parameters into interactive apps",
        "Date": "Mon, 18 Dec 2023 12:22:02 -0500",
        "Message-ID": "<20231218172206.8488-4-jspewock@iol.unh.edu>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20231113202833.12900-1-jspewock@iol.unh.edu>",
        "References": "<20231113202833.12900-1-jspewock@iol.unh.edu>",
        "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": "From: Jeremy Spewock <jspewock@iol.unh.edu>\n\nModified interactive applications to allow for the ability to pass\nparameters into the app on start up. Also modified the way EAL\nparameters are handled so that the trailing \"--\" separator is added be\ndefault after all EAL parameters.\n\nSigned-off-by: Jeremy Spewock <jspewock@iol.unh.edu>\n---\n .../remote_session/remote/testpmd_shell.py       |  2 +-\n dts/framework/testbed_model/sut_node.py          | 16 ++++++++++------\n 2 files changed, 11 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/dts/framework/remote_session/remote/testpmd_shell.py b/dts/framework/remote_session/remote/testpmd_shell.py\nindex b5e4cba9b3..369807a33e 100644\n--- a/dts/framework/remote_session/remote/testpmd_shell.py\n+++ b/dts/framework/remote_session/remote/testpmd_shell.py\n@@ -62,7 +62,7 @@ class TestPmdShell(InteractiveShell):\n \n     def _start_application(self, get_privileged_command: Callable[[str], str] | None) -> None:\n         \"\"\"See \"_start_application\" in InteractiveShell.\"\"\"\n-        self._app_args += \" -- -i\"\n+        self._app_args += \" -i\"\n         super()._start_application(get_privileged_command)\n \n     def start(self, verify: bool = True) -> None:\ndiff --git a/dts/framework/testbed_model/sut_node.py b/dts/framework/testbed_model/sut_node.py\nindex 7f75043bd3..9c92232d9e 100644\n--- a/dts/framework/testbed_model/sut_node.py\n+++ b/dts/framework/testbed_model/sut_node.py\n@@ -361,7 +361,8 @@ def create_interactive_shell(\n         shell_cls: Type[InteractiveShellType],\n         timeout: float = SETTINGS.timeout,\n         privileged: bool = False,\n-        eal_parameters: EalParameters | str | None = None,\n+        eal_parameters: EalParameters | None = None,\n+        app_parameters: str = \"\",\n     ) -> InteractiveShellType:\n         \"\"\"Factory method for creating a handler for an interactive session.\n \n@@ -376,19 +377,22 @@ def create_interactive_shell(\n             eal_parameters: List of EAL parameters to use to launch the app. If this\n                 isn't provided or an empty string is passed, it will default to calling\n                 create_eal_parameters().\n+            app_parameters: Additional arguments to pass into the application on the\n+                command-line.\n         Returns:\n             Instance of the desired interactive application.\n         \"\"\"\n-        if not eal_parameters:\n-            eal_parameters = self.create_eal_parameters()\n-\n-        # We need to append the build directory for DPDK apps\n+        # We need to append the build directory and add EAL parameters for DPDK apps\n         if shell_cls.dpdk_app:\n+            if not eal_parameters:\n+                eal_parameters = self.create_eal_parameters()\n+            app_parameters = f\"{eal_parameters} -- {app_parameters}\"\n+\n             shell_cls.path = self.main_session.join_remote_path(\n                 self.remote_dpdk_build_dir, shell_cls.path\n             )\n \n-        return super().create_interactive_shell(shell_cls, timeout, privileged, str(eal_parameters))\n+        return super().create_interactive_shell(shell_cls, timeout, privileged, app_parameters)\n \n     def bind_ports_to_driver(self, for_dpdk: bool = True) -> None:\n         \"\"\"Bind all ports on the SUT to a driver.\n",
    "prefixes": [
        "v4",
        "2/7"
    ]
}