get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 126298,
    "url": "http://patches.dpdk.org/api/patches/126298/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20230420070506.10015-4-linglix.chen@intel.com/",
    "project": {
        "id": 3,
        "url": "http://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": "<20230420070506.10015-4-linglix.chen@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230420070506.10015-4-linglix.chen@intel.com",
    "date": "2023-04-20T07:05:04",
    "name": "[V1,3/5] tests/ddp_gtp: skip igb_uio cases",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4411f64c73b465f6cacc2f90b661919876139c79",
    "submitter": {
        "id": 1843,
        "url": "http://patches.dpdk.org/api/people/1843/?format=api",
        "name": "Lingli Chen",
        "email": "linglix.chen@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20230420070506.10015-4-linglix.chen@intel.com/mbox/",
    "series": [
        {
            "id": 27792,
            "url": "http://patches.dpdk.org/api/series/27792/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=27792",
            "date": "2023-04-20T07:05:01",
            "name": "skip DPDK PF as host related cases",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/27792/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/126298/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/126298/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 A31AB42996;\n\tThu, 20 Apr 2023 10:16:14 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9BF0142C76;\n\tThu, 20 Apr 2023 10:16:14 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id D63A240687\n for <dts@dpdk.org>; Thu, 20 Apr 2023 10:16:11 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Apr 2023 01:16:03 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.99])\n by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Apr 2023 01:16:02 -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=1681978572; x=1713514572;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=7AIB0BlpP8RNiKYVoXExMnZ7oI176b13Tyup/EILQMw=;\n b=nOeRHjKsQim2B3ZOSY6h/Xpt6HDIm5VpPbR76J+WQ+O+2W5vp6+Qz6Ss\n UHCcdcyZ4awjxJLsogOO42S7oLIw6+2FkwNq8SwhwAYPZ1Eq4n0szlYKa\n q6A8Xx+qWN6Z9uiRtnHFpMxOctrESH4vvsMA23j5iEBrBCkiHsfYC8M+h\n HFCh20cKmLQpMCSsdN9qQJW8zMO1L4ZrzLMjP2iUhDkgZJT+p68kvbwH5\n +VSCoO6ken9wFx0MAUzNcbsIKknQyoFLK/g1R0Az2yQy0HMuh/SvX8AUo\n Xo7yLlohwDLh/CB6PPm+nJ9x65YYYYoQ25bFayhpWr293wAJxpcrsswcj g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10685\"; a=\"325998517\"",
            "E=Sophos;i=\"5.99,212,1677571200\"; d=\"scan'208\";a=\"325998517\"",
            "E=McAfee;i=\"6600,9927,10685\"; a=\"642061698\"",
            "E=Sophos;i=\"5.99,212,1677571200\"; d=\"scan'208\";a=\"642061698\""
        ],
        "X-ExtLoop1": "1",
        "From": "Lingli Chen <linglix.chen@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "zhiminx.huang@intel.com,\n\tLingli Chen <linglix.chen@intel.com>",
        "Subject": "[dts][PATCH V1 3/5] tests/ddp_gtp: skip igb_uio cases",
        "Date": "Thu, 20 Apr 2023 03:05:04 -0400",
        "Message-Id": "<20230420070506.10015-4-linglix.chen@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20230420070506.10015-1-linglix.chen@intel.com>",
        "References": "<20230420070506.10015-1-linglix.chen@intel.com>",
        "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": "skip DPDK PF + DPDK VF case, modify dts code to run pf case\n\nSigned-off-by: Lingli Chen <linglix.chen@intel.com>\n---\n tests/TestSuite_ddp_gtp.py | 63 ++++++++++++++++++++------------------\n 1 file changed, 34 insertions(+), 29 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_ddp_gtp.py b/tests/TestSuite_ddp_gtp.py\nindex 22e73318..ba1e4566 100644\n--- a/tests/TestSuite_ddp_gtp.py\n+++ b/tests/TestSuite_ddp_gtp.py\n@@ -11,7 +11,7 @@ import framework.utils as utils\n from framework.pmd_output import PmdOutput\n from framework.qemu_kvm import QEMUKvm\n from framework.settings import get_nic_name\n-from framework.test_case import TestCase\n+from framework.test_case import TestCase, skip_unsupported_host_driver\n \n VM_CORES_MASK = \"all\"\n \n@@ -48,9 +48,11 @@ class TestDdpGtp(TestCase):\n             self.vf_assign_method = \"vfio-pci\"\n             self.dut.send_expect(\"modprobe vfio-pci\", \"#\")\n \n-    def insmod_modprobe(self, modename=\"\"):\n+    def setup_vf_env(self, modename=\"\"):\n         \"\"\"\n         Insmod modProbe before run test case\n+        bind VF0 device to igb_uio driver\n+        Start testpmd on host and vm0\n         \"\"\"\n         if modename == \"igb_uio\":\n             self.dut.send_expect(\"modprobe uio\", \"#\", 10)\n@@ -63,26 +65,24 @@ class TestDdpGtp(TestCase):\n \n             out = self.dut.send_expect(\"lsmod | grep igb_uio\", \"#\")\n             assert \"igb_uio\" in out, \"Failed to insmod igb_uio\"\n+        self.bind_nic_driver(self.dut_ports, \"igb_uio\")\n+        self.setup_vm_env()\n+        self.load_profile()\n+        self.vm0_testpmd.start_testpmd(\n+            VM_CORES_MASK,\n+            \"--port-topology=chained --txq=%s --rxq=%s\"\n+            % (self.VF_QUEUE, self.VF_QUEUE),\n+        )\n+        self.vm0_testpmd.execute_cmd(\"set fwd rxonly\")\n+        self.vm0_testpmd.execute_cmd(\"set verbose 1\")\n+        self.vm0_testpmd.execute_cmd(\"start\")\n \n     def set_up(self):\n         self.dut_testpmd = PmdOutput(self.dut)\n         self.used_dut_port = self.dut_ports[0]\n         tester_port = self.tester.get_local_port(self.used_dut_port)\n         self.tester_intf = self.tester.get_interface(tester_port)\n-        if \"vf\" in self._suite_result.test_case:\n-            self.insmod_modprobe(\"igb_uio\")\n-            self.bind_nic_driver(self.dut_ports, \"igb_uio\")\n-            self.setup_vm_env()\n-            self.load_profile()\n-            self.vm0_testpmd.start_testpmd(\n-                VM_CORES_MASK,\n-                \"--port-topology=chained --txq=%s --rxq=%s\"\n-                % (self.VF_QUEUE, self.VF_QUEUE),\n-            )\n-            self.vm0_testpmd.execute_cmd(\"set fwd rxonly\")\n-            self.vm0_testpmd.execute_cmd(\"set verbose 1\")\n-            self.vm0_testpmd.execute_cmd(\"start\")\n-        else:\n+        if \"pf\" in self._suite_result.test_case:\n             self.load_profile()\n \n     def search_queue_number(self, Q_strip):\n@@ -443,39 +443,44 @@ class TestDdpGtp(TestCase):\n         self.gtp_test(type=\"clfter\", port=\"pf\", tunnel_pkt=\"gtpu\", inner_L3=\"ipv4\")\n         self.gtp_test(type=\"clfter\", port=\"pf\", tunnel_pkt=\"gtpu\", inner_L3=\"ipv6\")\n \n+    @skip_unsupported_host_driver([\"vfio-pci\"])\n     def test_clfter_gtpc_vf(self):\n         \"\"\"\n         GTP is supported by NVM with profile updated. Select cloud filter,\n         send gtpc packet to VF, check PF could receive packet using configured\n         queue, checksum is good.\n         \"\"\"\n+        self.setup_vf_env(\"igb_uio\")\n         self.gtp_test(type=\"clfter\", port=\"vf id 0\", tunnel_pkt=\"gtpc\", inner_L3=None)\n+        self.destroy_vm_env()\n \n+    @skip_unsupported_host_driver([\"vfio-pci\"])\n     def test_clfter_gtpu_vf(self):\n         \"\"\"\n         GTP is supported by NVM with profile updated. Select cloud filter,\n         send gtpu packet to VF, check PF could receive packet using configured\n         queue, checksum is good.\n         \"\"\"\n+        self.setup_vf_env(\"igb_uio\")\n         self.gtp_test(type=\"clfter\", port=\"vf id 0\", tunnel_pkt=\"gtpu\", inner_L3=None)\n         self.gtp_test(type=\"clfter\", port=\"vf id 0\", tunnel_pkt=\"gtpu\", inner_L3=\"ipv4\")\n         self.gtp_test(type=\"clfter\", port=\"vf id 0\", tunnel_pkt=\"gtpu\", inner_L3=\"ipv6\")\n+        self.destroy_vm_env()\n \n     def tear_down(self):\n-        if \"vf\" in self._suite_result.test_case:\n-            self.destroy_vm_env()\n-        self.dut_testpmd.execute_cmd(\"stop\")\n-        out = self.dut_testpmd.execute_cmd(\"ddp get list 0\")\n-        if \"Profile number is: 0\" not in out:\n-            self.dut_testpmd.execute_cmd(\"port stop all\")\n-            time.sleep(1)\n-            self.dut_testpmd.execute_cmd(\"ddp del 0 /tmp/gtp.bak\")\n+        if \"vf\" not in self._suite_result.test_case:\n+            self.dut_testpmd.execute_cmd(\"stop\")\n             out = self.dut_testpmd.execute_cmd(\"ddp get list 0\")\n-            self.verify(\n-                \"Profile number is: 0\" in out, \"Failed to delete ddp profile!!!\"\n-            )\n-            self.dut_testpmd.execute_cmd(\"port start all\")\n-        self.dut_testpmd.quit()\n+            if \"Profile number is: 0\" not in out:\n+                self.dut_testpmd.execute_cmd(\"port stop all\")\n+                time.sleep(1)\n+                self.dut_testpmd.execute_cmd(\"ddp del 0 /tmp/gtp.bak\")\n+                out = self.dut_testpmd.execute_cmd(\"ddp get list 0\")\n+                self.verify(\n+                    \"Profile number is: 0\" in out, \"Failed to delete ddp profile!!!\"\n+                )\n+                self.dut_testpmd.execute_cmd(\"port start all\")\n+            self.dut_testpmd.quit()\n \n     def tear_down_all(self):\n         if self.env_done:\n",
    "prefixes": [
        "V1",
        "3/5"
    ]
}