get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130739,
    "url": "http://patchwork.dpdk.org/api/patches/130739/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/20230825152825.2831565-7-songx.jiale@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230825152825.2831565-7-songx.jiale@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230825152825.2831565-7-songx.jiale@intel.com",
    "date": "2023-08-25T15:28:22",
    "name": "[V2,6/9] framework/pmd_output: optimize methods to adapt to MEV testing",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "cc72d6229e3d8ef629960fce9bc7f153f1147957",
    "submitter": {
        "id": 2352,
        "url": "http://patchwork.dpdk.org/api/people/2352/?format=api",
        "name": "Jiale, SongX",
        "email": "songx.jiale@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/20230825152825.2831565-7-songx.jiale@intel.com/mbox/",
    "series": [
        {
            "id": 29337,
            "url": "http://patchwork.dpdk.org/api/series/29337/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=29337",
            "date": "2023-08-25T15:28:16",
            "name": "add functions to test MEV",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/29337/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130739/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/130739/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-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 963E8430E2;\n\tFri, 25 Aug 2023 09:20:03 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9063143254;\n\tFri, 25 Aug 2023 09:20:03 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 39BF542D13\n for <dts@dpdk.org>; Fri, 25 Aug 2023 09:20:01 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 Aug 2023 00:20:00 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.96])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 Aug 2023 00:19: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=1692948001; x=1724484001;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=OOif5Jf1YGpVDePCmBmOTZYq4BX95+VvCvDacXSiWkI=;\n b=jSikExyBiu015gOD3t0wATVHiDVJRRclC8qpcLcnG31tbxk1DHLSKq5k\n QHPm9yyyQ8eU+Pz8XKd7E6/uMewE5MTT1aHezcFcmWXDIbjn8IapyDEYS\n e6nTYC7Gk3PxWox0C/eIQ3Y951GRXXGGoX4OUPyQxeintfzef8A7ZnWKf\n pnJnplYhF7oSiHmQtukNqqdv47sbDrmplFuvTnbYprXPBesiXjueAWD/5\n 6P5q27HoPjPyzuJ4+o6wjO2wNRMpAAQXp3r1WyNxeLCR9pzNrie332HcY\n /u2a3ppKzc/i8UghX7+zBEThjZZsIk5vXEECG1NjQH/6zapMq+rs8ieB2 w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10812\"; a=\"405654471\"",
            "E=Sophos;i=\"6.02,195,1688454000\"; d=\"scan'208\";a=\"405654471\"",
            "E=McAfee;i=\"6600,9927,10812\"; a=\"802869652\"",
            "E=Sophos;i=\"6.02,195,1688454000\"; d=\"scan'208\";a=\"802869652\""
        ],
        "X-ExtLoop1": "1",
        "From": "Jiale Song <songx.jiale@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Jiale Song <songx.jiale@intel.com>",
        "Subject": "[dts] [PATCH V2 6/9] framework/pmd_output: optimize methods to adapt\n to MEV testing",
        "Date": "Fri, 25 Aug 2023 15:28:22 +0000",
        "Message-Id": "<20230825152825.2831565-7-songx.jiale@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230825152825.2831565-1-songx.jiale@intel.com>",
        "References": "<20230825152825.2831565-1-songx.jiale@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "optimize methods to adapt to MEV testing.\n\nSigned-off-by: Jiale Song <songx.jiale@intel.com>\n---\n framework/pmd_output.py | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/framework/pmd_output.py b/framework/pmd_output.py\nindex c8e8b50f..d51c3a9b 100644\n--- a/framework/pmd_output.py\n+++ b/framework/pmd_output.py\n@@ -135,6 +135,7 @@ class PmdOutput:\n             config[\"ports\"] = [\n                 self.dut.ports_info[i][\"pci\"] for i in range(len(self.dut.ports_info))\n             ]\n+            config[\"ports\"] = list(set(config[\"ports\"]))\n         all_eal_param = self.dut.create_eal_parameters(\n             fixed_prefix=fixed_prefix, socket=socket, **config\n         )\n@@ -145,6 +146,8 @@ class PmdOutput:\n         if self.session != self.dut:\n             self.session.send_expect(\"cd %s\" % self.dut.base_dir, \"# \")\n         out = self.session.send_expect(command, expected, timeout)\n+        if self.dut.test_mev == \"true\":\n+            self.dut.mev_config_rx_port(out=out)\n         self.command = command\n         # wait 10s to ensure links getting up before test start.\n         sleep(10)\n",
    "prefixes": [
        "V2",
        "6/9"
    ]
}