get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 84399,
    "url": "https://patches.dpdk.org/api/patches/84399/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20201120104556.27730-6-qinx.sun@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": "<20201120104556.27730-6-qinx.sun@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201120104556.27730-6-qinx.sun@intel.com",
    "date": "2020-11-20T10:45:55",
    "name": "[V1,5/6] tests/cvl_dcf_switch_filter remove 1 case",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "3a2c3760ad0b339830cd4b8947055e5150e3c7e4",
    "submitter": {
        "id": 1956,
        "url": "https://patches.dpdk.org/api/people/1956/?format=api",
        "name": "Sun, QinX",
        "email": "qinx.sun@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20201120104556.27730-6-qinx.sun@intel.com/mbox/",
    "series": [
        {
            "id": 13991,
            "url": "https://patches.dpdk.org/api/series/13991/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=13991",
            "date": "2020-11-20T10:45:50",
            "name": "Remove 8 duplicate cases",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/13991/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/84399/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/84399/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 2BE6FA04DD;\n\tFri, 20 Nov 2020 03:10:33 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2255CC8C4;\n\tFri, 20 Nov 2020 03:10:32 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id 29170C8DE\n for <dts@dpdk.org>; Fri, 20 Nov 2020 03:10:30 +0100 (CET)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Nov 2020 18:10:29 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.105])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Nov 2020 18:10:28 -0800"
        ],
        "IronPort-SDR": [
            "\n e40BQZyPV3RgNRDGlIThgHaUjNzf3rOiWwNPLx5Qm0tAxNrwWpXQn6G3ytvhN/PtMskTYNd8ry\n ZZwF1kJTf5Vw==",
            "\n NnMM++3n9+0Js/7tcqg2dQfPrYYg/DTBwnHlK/lpWRi2mv8RttPGl1cxK23ZSR35nkvI1y5oWW\n gY546bhFaw/Q=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9810\"; a=\"170618897\"",
            "E=Sophos;i=\"5.78,354,1599548400\"; d=\"scan'208\";a=\"170618897\"",
            "E=Sophos;i=\"5.78,354,1599548400\"; d=\"scan'208\";a=\"535003927\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "From": "sunqin <qinx.sun@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "sunqin <qinx.sun@intel.com>",
        "Date": "Fri, 20 Nov 2020 10:45:55 +0000",
        "Message-Id": "<20201120104556.27730-6-qinx.sun@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201120104556.27730-1-qinx.sun@intel.com>",
        "References": "<20201120104556.27730-1-qinx.sun@intel.com>",
        "Subject": "[dts]  [PATCH V1 5/6] tests/cvl_dcf_switch_filter remove 1 case",
        "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": "Remove 1 case:\n\ntest_max_rule_number\n\nThe case has been moved to 'cvl_limit_value_test' suite\n\nSigned-off-by: sunqin <qinx.sun@intel.com>\n---\n tests/TestSuite_cvl_dcf_switch_filter.py | 73 ------------------------\n 1 file changed, 73 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py b/tests/TestSuite_cvl_dcf_switch_filter.py\nindex 64f50de4..a65b73a3 100644\n--- a/tests/TestSuite_cvl_dcf_switch_filter.py\n+++ b/tests/TestSuite_cvl_dcf_switch_filter.py\n@@ -2025,79 +2025,6 @@ class CVLDCFSwitchFilterTest(TestCase):\n         destroy_dict[\"expect_results\"][\"expect_pkts\"] = 0\n         self.send_and_check_packets(destroy_dict)\n \n-    def test_max_rule_number(self):\n-        #set up 4 vfs on 1 pf environment\n-        self.setup_1pf_vfs_env()\n-        #create 32563 rules with the same pattern, but different input set to file\n-        src_file = 'dep/testpmd_cmds_32k_switch_rules'\n-        flows = open(src_file, mode='w')\n-        rule_count = 1\n-        for i in range(0,255):\n-            for j in range(0,255):\n-                if not rule_count > 32563:\n-                    flows.write('flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions vf id 1 / end \\n' % (i, j))\n-                    matched_scapy_str = 'Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.%d.%d\")/TCP(sport=25,dport=23)/Raw(\"X\"*480)' % (i, j)\n-                    tv_max_rule_number[\"matched\"][\"scapy_str\"].append(matched_scapy_str)\n-                    rule_count += 1\n-                else:\n-                    break\n-            if rule_count > 32563:\n-                break\n-        flows.close()\n-        self.dut_file_dir = '/tmp'\n-        self.dut.session.copy_file_to(src_file, self.dut_file_dir)\n-        #launch testpmd with 32563 rules\n-        vf0_pci = self.sriov_vfs_port_0[0].pci\n-        vf1_pci = self.sriov_vfs_port_0[1].pci\n-        all_eal_param = self.dut.create_eal_parameters(cores=\"1S/4C/1T\", ports=[vf0_pci, vf1_pci], port_options={vf0_pci:\"cap=dcf\"})\n-        command = self.path + all_eal_param +  \" -- -i --cmdline-file=/tmp/testpmd_cmds_32k_switch_rules\"\n-        out = self.dut.send_expect(command, \"testpmd> \", 360)\n-        self.testpmd_status = \"running\"\n-        self.dut.send_expect(\"set portlist 1\", \"testpmd> \", 15)\n-        self.dut.send_expect(\"set fwd rxonly\", \"testpmd> \", 15)\n-        #check the rule list with 32563 rules\n-        rule_list_num = list(range(0, 32563))\n-        rule_list = [str(x) for x in rule_list_num]\n-        self.check_switch_filter_rule_list(0, rule_list)\n-        #create other rules to make switch filter table full\n-        m = i\n-        t = j\n-        p = re.compile(r\"Flow rule #(\\d+) created\")\n-        switch_table_full_flag = False\n-        count = 0\n-        for i in range(m,255):\n-            for j in range(t,255):\n-                rule = 'flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions vf id 1 / end \\n' % (i, j)\n-                matched_packet = 'Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.%d.%d\")/TCP(sport=25,dport=23)/Raw(\"X\"*480)' % (i, j)\n-                out = self.dut.send_expect(rule, \"testpmd> \", timeout=2)  #create a rule\n-                m1 = p.search(out)\n-                if m1:\n-                    rule_list.append(m1.group(1))\n-                    tv_max_rule_number[\"matched\"][\"scapy_str\"].append(matched_packet)\n-                    count += 1\n-                else:\n-                    self.verify(\"Failed to create flow\" in out, \"Log not provide a friendly output to indicate that the rule failed to create.\")\n-                    switch_table_full_flag = True\n-                    break\n-            if switch_table_full_flag:\n-                break\n-        tv_max_rule_number[\"matched\"][\"expect_results\"][\"expect_pkts\"] += count\n-        #check the rule list\n-        self.check_switch_filter_rule_list(0, rule_list)\n-        #send matched packets and check\n-        matched_dic = tv_max_rule_number[\"matched\"]\n-        self.send_and_check_packets(matched_dic)\n-        #send mismatched packets and check\n-        mismatched_dic = tv_max_rule_number[\"mismatched\"]\n-        self.send_and_check_packets(mismatched_dic)\n-        #destroy rules and send matched packets\n-        self.dut.send_expect(\"flow flush 0\", \"testpmd> \", 300)\n-        self.check_switch_filter_rule_list(0, [])\n-        #send matched packets and check\n-        destroy_dict = copy.deepcopy(matched_dic)\n-        destroy_dict[\"expect_results\"][\"expect_pkts\"] = 0\n-        self.send_and_check_packets(destroy_dict)\n-\n     def test_dcf_stop_start(self):\n         #set up 4 vfs on 1 pf environment\n         self.setup_1pf_vfs_env()\n",
    "prefixes": [
        "V1",
        "5/6"
    ]
}