get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 75481,
    "url": "https://patches.dpdk.org/api/patches/75481/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20200813161548.85740-1-weix.ling@intel.com/",
    "project": {
        "id": 3,
        "url": "https://patches.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": "<20200813161548.85740-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20200813161548.85740-1-weix.ling@intel.com",
    "date": "2020-08-13T16:15:48",
    "name": "[V1] tests/TestSuite_vf_l3fwd:support dpdk meson build",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "acdaffb7404cc80378f3aaac5d12e8f652820af0",
    "submitter": {
        "id": 1828,
        "url": "https://patches.dpdk.org/api/people/1828/?format=api",
        "name": "Ling, WeiX",
        "email": "weix.ling@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20200813161548.85740-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 11635,
            "url": "https://patches.dpdk.org/api/series/11635/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=11635",
            "date": "2020-08-13T16:15:48",
            "name": "[V1] tests/TestSuite_vf_l3fwd:support dpdk meson build",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11635/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/75481/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/75481/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8AEFFA04B0;\n\tThu, 13 Aug 2020 10:25:27 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 498351C022;\n\tThu, 13 Aug 2020 10:25:27 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id 1D1DD1C020\n for <dts@dpdk.org>; Thu, 13 Aug 2020 10:25:24 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Aug 2020 01:25:23 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.222])\n by fmsmga001.fm.intel.com with ESMTP; 13 Aug 2020 01:25:22 -0700"
        ],
        "IronPort-SDR": [
            "\n kgfEv+06RfOfnRRu89HhqS634VVQIgnkOB1V1CAZLzzWbJTyStj3hvDkw5NtEFZVwr9vCA4PAU\n 0OL3zItK6Ylw==",
            "\n XzWmbrz/iLiTEJc7N3hrJA6iBIBQD1rkgF4J4b/5OQXpFd6Hzm4qQoly+MKf6VFOHLEZiL0EJR\n 29meIl2d5O5Q=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9711\"; a=\"154143736\"",
            "E=Sophos;i=\"5.76,307,1592895600\"; d=\"scan'208\";a=\"154143736\"",
            "E=Sophos;i=\"5.76,307,1592895600\"; d=\"scan'208\";a=\"399096710\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "lingwei <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "lingwei <weix.ling@intel.com>",
        "Date": "Thu, 13 Aug 2020 16:15:48 +0000",
        "Message-Id": "<20200813161548.85740-1-weix.ling@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V1] tests/TestSuite_vf_l3fwd:support dpdk meson build",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "support dpdk meson build\n\nSigned-off-by: lingwei <weix.ling@intel.com>\n---\n tests/TestSuite_vf_l3fwd.py | 28 ++++++++++++++++++----------\n 1 file changed, 18 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_vf_l3fwd.py b/tests/TestSuite_vf_l3fwd.py\nindex 471fe61..60a2bea 100644\n--- a/tests/TestSuite_vf_l3fwd.py\n+++ b/tests/TestSuite_vf_l3fwd.py\n@@ -69,14 +69,6 @@ class TestVfL3fwd(TestCase):\n \n         self.l3fwd_methods = ['lpm']\n         self.l3fwd_test_results = {'header': [], 'data': []}\n-        self.logger.info(\"Configure RX/TX descriptor to 2048, and re-build ./examples/l3fwd\")\n-        self.dut.send_expect(\"sed -i -e 's/define RTE_TEST_RX_DESC_DEFAULT.*$/\"\n-                             + \"define RTE_TEST_RX_DESC_DEFAULT 2048/' ./examples/l3fwd/l3fwd.h\", \"#\", 20)\n-        self.dut.send_expect(\"sed -i -e 's/define RTE_TEST_TX_DESC_DEFAULT.*$/\"\n-                             + \"define RTE_TEST_TX_DESC_DEFAULT 2048/' ./examples/l3fwd/l3fwd.h\", \"#\", 20)\n-        out = self.dut.build_dpdk_apps(\"./examples/l3fwd\")\n-        self.verify(\"Error\" not in out, \"compilation error 1\")\n-        self.verify(\"No such file\" not in out, \"compilation error 2\")\n \n         # set vf assign method and vf driver\n         self.vf_driver = self.get_suite_cfg()['vf_driver']\n@@ -278,7 +270,8 @@ class TestVfL3fwd(TestCase):\n             for j in range(self.queue):\n                 queue_config += \"({0}, {1}, {2}),\" .format(i, j, core_list[m])\n                 m += 1\n-        cmdline = \"./examples/l3fwd/build/l3fwd -c {0} -n 4 {1} -- -p {2} --config '{3}' --parse-ptype\". \\\n+        app_name = self.dut.apps_name['l3fwd']\n+        cmdline = app_name + \"-c {0} -n 4 {1} -- -p {2} --config '{3}' --parse-ptype\". \\\n             format(core_mask, eal_param, port_mask, queue_config)\n         self.perf_test(cmdline)\n \n@@ -292,12 +285,14 @@ class TestVfL3fwd(TestCase):\n         return vf_driver\n \n     def test_perf_kernel_pf_dpdk_vf_perf_host_only(self):\n+        self.set_rxtx_descriptor_2048_and_rebuild_l3fwd()\n         self.measure_vf_performance(host_driver='default', vf_driver=self.get_kernel_pf_vf_driver())\n \n     def test_perf_dpdk_pf_dpdk_vf_perf_host_only(self):\n         for idx in self.dut_ports:\n             self.verify(self.dut.ports_info[idx]['port'].default_driver != 'ice', 'Columbiaville do not support generate vfs from igb_uio')\n \n+        self.set_rxtx_descriptor_2048_and_rebuild_l3fwd()\n         if self.drivername != \"igb_uio\":\n             self.logger.warning(\"Use igb_uio as host driver for testing instead of %s\" % self.drivername)\n \n@@ -313,7 +308,7 @@ class TestVfL3fwd(TestCase):\n             self.verify(self.dut.ports_info[idx]['port'].default_driver == 'i40e', 'The case is only designed for Fortville')\n \n         self.build_iavf()\n-        self.dut.build_dpdk_apps(\"./examples/l3fwd\")\n+        self.set_rxtx_descriptor_2048_and_rebuild_l3fwd()\n         self.measure_vf_performance(host_driver='default', vf_driver=self.get_kernel_pf_vf_driver())\n \n     def build_iavf(self):\n@@ -327,6 +322,19 @@ class TestVfL3fwd(TestCase):\n             self.dut.send_expect(\"sed -i -e '/I40E_DEV_ID_VF/s/0x164C/0x154C/g'  drivers/net/i40e/base/i40e_devids.h\", \"# \")\n             self.dut.build_install_dpdk(self.target)\n \n+    def set_rxtx_descriptor_2048_and_rebuild_l3fwd(self):\n+        \"\"\"\n+        Set RX/TX descriptor to 2048 and rebuild l3fwd\n+        \"\"\"\n+        self.logger.info(\"Configure RX/TX descriptor to 2048, and re-build ./examples/l3fwd\")\n+        self.dut.send_expect(\"sed -i -e 's/define RTE_TEST_RX_DESC_DEFAULT.*$/\"\n+                             + \"define RTE_TEST_RX_DESC_DEFAULT 2048/' ./examples/l3fwd/l3fwd.h\", \"#\", 20)\n+        self.dut.send_expect(\"sed -i -e 's/define RTE_TEST_TX_DESC_DEFAULT.*$/\"\n+                             + \"define RTE_TEST_TX_DESC_DEFAULT 2048/' ./examples/l3fwd/l3fwd.h\", \"#\", 20)\n+        out = self.dut.build_dpdk_apps(\"./examples/l3fwd\")\n+        self.verify(\"Error\" not in out, \"compilation error 1\")\n+        self.verify(\"No such file\" not in out, \"compilation error 2\")\n+\n     def set_fields(self):\n         \"\"\"\n         set ip protocol field behavior\n",
    "prefixes": [
        "V1"
    ]
}