get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 86170,
    "url": "http://patches.dpdk.org/api/patches/86170/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20210108141953.8575-2-qinx.sun@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": "<20210108141953.8575-2-qinx.sun@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210108141953.8575-2-qinx.sun@intel.com",
    "date": "2021-01-08T14:19:51",
    "name": "[V1,1/3] framework/pmd_output add method to get maximum number of rules",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "3ae71ba8301aaebd4177317bb14dcd0950caf019",
    "submitter": {
        "id": 1956,
        "url": "http://patches.dpdk.org/api/people/1956/?format=api",
        "name": "Sun, QinX",
        "email": "qinx.sun@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20210108141953.8575-2-qinx.sun@intel.com/mbox/",
    "series": [
        {
            "id": 14592,
            "url": "http://patches.dpdk.org/api/series/14592/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=14592",
            "date": "2021-01-08T14:19:50",
            "name": "change method to get maximum number of rules",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/14592/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/86170/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/86170/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 (xvm-189-124.dc0.ghst.net [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 624DAA0524;\n\tFri,  8 Jan 2021 06:45:57 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5D732140E0D;\n\tFri,  8 Jan 2021 06:45:57 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id A7BE5140DFA\n for <dts@dpdk.org>; Fri,  8 Jan 2021 06:45:55 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Jan 2021 21:45:55 -0800",
            "from unknown (HELO dpdk-wenjielx-tetser203.icx.intel.com)\n ([10.240.183.105])\n by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Jan 2021 21:45:54 -0800"
        ],
        "IronPort-SDR": [
            "\n cPug/v3G+H5SNxFU/TdIl8e50efZxJEcq8ZwZ3reuOScpMkJenADjoTZMpHBpOQHCP9QNQ+s04\n TfgOdHvnemPQ==",
            "\n yWIhGGIlu6hMgNgqo8FM5f+TqzHgbMg2+2TiSKwTt7FMewLErRoH/OxGAxb1AJ78w5Ntf4Vyxu\n W3YtDlAVFJ+Q=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9857\"; a=\"174037265\"",
            "E=Sophos;i=\"5.79,330,1602572400\"; d=\"scan'208\";a=\"174037265\"",
            "E=Sophos;i=\"5.79,330,1602572400\"; d=\"scan'208\";a=\"422842649\""
        ],
        "From": "sunqin <qinx.sun@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "sunqin <qinx.sun@intel.com>",
        "Date": "Fri,  8 Jan 2021 14:19:51 +0000",
        "Message-Id": "<20210108141953.8575-2-qinx.sun@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210108141953.8575-1-qinx.sun@intel.com>",
        "References": "<20210108141953.8575-1-qinx.sun@intel.com>",
        "Subject": "[dts] [PATCH V1 1/3] framework/pmd_output add method to get maximum\n number of rules",
        "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": "Add 'get_max_rule_number' method\n\nSigned-off-by: sunqin <qinx.sun@intel.com>\n---\n framework/pmd_output.py | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/framework/pmd_output.py b/framework/pmd_output.py\nindex 3418efe4..3daa86b6 100644\n--- a/framework/pmd_output.py\n+++ b/framework/pmd_output.py\n@@ -299,3 +299,11 @@ class PmdOutput():\n                 break\n             sleep(1)\n         return 'down' not in status\n+\n+    def get_max_rule_number(self,obj,out):\n+        res = re.search(r\"fd_fltr_guar\\s+=\\s+(\\d+).*fd_fltr_best_effort\\s+=\\s+(\\d+)\\.\",out)\n+        obj.verify(res,\"'fd_fltr_guar' and 'fd_fltr_best_effort not found'\")\n+        fltr_guar,fltr_best = res.group(1),res.group(2)\n+        max_rule = int(fltr_guar) + int(fltr_best)\n+        obj.logger.info(f'this Card max rule number is :{max_rule}')\n+        return max_rule\n",
    "prefixes": [
        "V1",
        "1/3"
    ]
}