get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94572,
    "url": "https://patches.dpdk.org/api/patches/94572/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210621101055.11880-1-zhiminx.huang@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": "<20210621101055.11880-1-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210621101055.11880-1-zhiminx.huang@intel.com",
    "date": "2021-06-21T10:10:55",
    "name": "[V3] tests/generic_filter: use flow api replace legancy",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "3655557fba0871f6282205a0560c3ff369d7dd69",
    "submitter": {
        "id": 1685,
        "url": "https://patches.dpdk.org/api/people/1685/?format=api",
        "name": "Huang, ZhiminX",
        "email": "zhiminx.huang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210621101055.11880-1-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 17412,
            "url": "https://patches.dpdk.org/api/series/17412/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=17412",
            "date": "2021-06-21T10:10:55",
            "name": "[V3] tests/generic_filter: use flow api replace legancy",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/17412/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94572/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/94572/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 F0006A0547;\n\tMon, 21 Jun 2021 03:42:07 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B769140040;\n\tMon, 21 Jun 2021 03:42:07 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 0262D4003F\n for <dts@dpdk.org>; Mon, 21 Jun 2021 03:42:05 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jun 2021 18:42:04 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.103])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jun 2021 18:42:03 -0700"
        ],
        "IronPort-SDR": [
            "\n ruRVmFsbWzfZBV/xIJKqF5IpSvv/XWLErQna+iW8GTLt55eOSxb8ihZKGRQOXU3gMIfJTaoXu0\n UGd0uQBS7kgA==",
            "\n iSruBAp/rcjCVIaN9dd2x29j8ktLHCVbAkvml5yAu9rUOwUhAbBMUT+JlfoW4EbKFIKSR7skM3\n kKnJDODaL+Kg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10021\"; a=\"203740054\"",
            "E=Sophos;i=\"5.83,288,1616482800\"; d=\"scan'208\";a=\"203740054\"",
            "E=Sophos;i=\"5.83,288,1616482800\"; d=\"scan'208\";a=\"641184243\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Date": "Mon, 21 Jun 2021 18:10:55 +0800",
        "Message-Id": "<20210621101055.11880-1-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V3] tests/generic_filter: use flow api replace legancy",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "*.use flow api replace legancy filter command\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\n---\n tests/TestSuite_generic_filter.py | 26 +++++++++++++-------------\n 1 file changed, 13 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_generic_filter.py b/tests/TestSuite_generic_filter.py\nindex d4ea8926..b34c9dd0 100644\n--- a/tests/TestSuite_generic_filter.py\n+++ b/tests/TestSuite_generic_filter.py\n@@ -729,7 +729,6 @@ class TestGeneric_filter(TestCase):\n                 \"vlan set filter off %s\" % valports[0], \"testpmd> \")\n             self.dut.send_expect(\n                 \"vlan set filter off %s\" % valports[1], \"testpmd> \")\n-            frames_to_send = 1\n             queue = ['64', '127', '128']\n \n             for i in [0, 1, 2]:\n@@ -739,30 +738,31 @@ class TestGeneric_filter(TestCase):\n                     if 'Invalid RX queue %s' % (queue[i]) not in out:\n                         set_filter_flag = 0\n                         break\n-                    out = self.dut.send_expect(\n-                        \"5tuple_filter %s add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port %s src_port 1 protocol 0x06 mask 0x1f tcp_flags 0x0 priority 3 queue %s \" % (valports[0], (i + 1), queue[i]), \"testpmd> \")\n-                    if 'error' not in out:\n+                    cmd = \"flow create {} ingress pattern eth / \".format(\n+                        valports[0]) + \"ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is {} src is 1 / \".format(\n+                        i + 1) + \"end actions queue index {} / end\".format(queue[i])\n+                    out = self.dut.send_expect(cmd, \"testpmd> \")\n+                    if 'Invalid argument' not in out:\n                         set_filter_flag = 0\n                         break\n                     continue\n                 else:\n                     self.dut.send_expect(\"set stat_qmap rx %s %s %s\" %\n                                          (valports[0], queue[i], (i + 1)), \"testpmd> \")\n-                    out = self.dut.send_expect(\"5tuple_filter %s add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port %s src_port 1 protocol 0x06 mask 0x1f tcp_flags 0x0 priority %d queue %s \" % (\n-                        valports[0], (i + 1), (3 - i), queue[i]), \"testpmd> \")\n+                    cmd = \"flow create {} ingress pattern eth / \".format(\n+                        valports[0]) + \"ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is {} src is 1 / \".format(\n+                        i + 1) + \"end actions queue index {} / end\".format(queue[i])\n+                    self.dut.send_expect(cmd, \"testpmd> \")\n                     self.dut.send_expect(\"start\", \"testpmd> \", 120)\n                 global filters_index\n                 filters_index = i\n                 self.filter_send_packet(\"packet\")\n                 time.sleep(1)\n                 out = self.dut.send_expect(\"stop\", \"testpmd> \")\n-                cmd = \"Stats reg  %s RX-packets:             ([0-9]+)\" % (\n-                    i + 1)\n-                result_scanner = r\"%s\" % cmd\n-                scanner = re.compile(result_scanner, re.DOTALL)\n-                m = scanner.search(out)\n-                cur_pkt = m.group(1)\n-                if int(cur_pkt) != frames_to_send:\n+                p = re.compile(r\"Forward Stats for RX Port= \\d+/Queue=(\\s?\\d+)\")\n+                res = p.findall(out)\n+                queues = [int(i) for i in res]\n+                if queues[0] != int(queue[i]):\n                     packet_flag = 0\n                     break\n             self.dut.send_expect(\"quit\", \"#\", timeout=30)\n",
    "prefixes": [
        "V3"
    ]
}