get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 91218,
    "url": "http://patches.dpdk.org/api/patches/91218/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20210413021711.39473-1-yuan.peng@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": "<20210413021711.39473-1-yuan.peng@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210413021711.39473-1-yuan.peng@intel.com",
    "date": "2021-04-13T02:17:11",
    "name": "tests: change function check_hash_different",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "abf57a270963aab44cebc23d0f410c86c691f1b8",
    "submitter": {
        "id": 429,
        "url": "http://patches.dpdk.org/api/people/429/?format=api",
        "name": "Peng, Yuan",
        "email": "yuan.peng@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20210413021711.39473-1-yuan.peng@intel.com/mbox/",
    "series": [
        {
            "id": 16327,
            "url": "http://patches.dpdk.org/api/series/16327/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=16327",
            "date": "2021-04-13T02:17:11",
            "name": "tests: change function check_hash_different",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/16327/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/91218/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/91218/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 38B96A0524;\n\tTue, 13 Apr 2021 11:18:06 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E8986160D3E;\n\tTue, 13 Apr 2021 11:18:05 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id E3F6F160D36\n for <dts@dpdk.org>; Tue, 13 Apr 2021 11:18:03 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2021 02:18:02 -0700",
            "from pengyuan-dpdk.sh.intel.com ([10.67.117.236])\n by orsmga008.jf.intel.com with ESMTP; 13 Apr 2021 02:18:00 -0700"
        ],
        "IronPort-SDR": [
            "\n 54S+oUBI7IjcEZ33wDDR9LJ53M9ekcvYHerpnUfehlCURBrbT5xDSpmCjZViIERODFCJYCyWFA\n ryq0Qi+XmqfQ==",
            "\n NcWbNQSgTZJNdlzi2K4oPI7BK/Twsp7K7jT92uSd3FVuvhJ/9cKB1cj25ER3lceA0dNT2VhKEQ\n 4Ob9pPefW9Pg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,9952\"; a=\"174472662\"",
            "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"174472662\"",
            "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"424174824\""
        ],
        "X-ExtLoop1": "1",
        "From": "Peng Yuan <yuan.peng@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Peng Yuan <yuan.peng@intel.com>",
        "Date": "Tue, 13 Apr 2021 02:17:11 +0000",
        "Message-Id": "<20210413021711.39473-1-yuan.peng@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH]tests: change function check_hash_different",
        "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": "adapt to the scenario that there are two or more hash values in the hashes list.\n\nSigned-off-by: Peng Yuan <yuan.peng@intel.com>\n--\nv1",
    "diff": "diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py\nindex e0a378f3..d8443d3b 100644\n--- a/tests/rte_flow_common.py\n+++ b/tests/rte_flow_common.py\n@@ -728,17 +728,19 @@ class RssProcessing(object):\n     def check_hash_different(self, out, key='', port_id=0):\n         hashes, rss_distribute = self.get_hash_verify_rss_distribute(out, port_id)\n         if len(key) == 0:\n-            if hashes == self.current_saved_hash:\n-                error_msg = 'hash value {} should be different ' \\\n-                            'with current saved hash {}'.format(hashes, self.current_saved_hash)\n-                self.logger.error(error_msg)\n-                self.error_msgs.append(error_msg)\n+            for item in hashes:\n+                if item in self.current_saved_hash:\n+                    error_msg = 'hash value {} should be different ' \\\n+                    'with current saved hash {}'.format(item, self.current_saved_hash)\n+                    self.logger.error(error_msg)\n+                    self.error_msgs.append(error_msg)\n         else:\n-            if hashes == self.hash_records[key]:\n-                error_msg = 'hash value {} should be different ' \\\n-                            'with {} {}'.format(hashes, key, self.hash_records[key])\n-                self.logger.error(error_msg)\n-                self.error_msgs.append(error_msg)\n+            for item in hashes:\n+                if item in self.hash_records[key]:\n+                    error_msg = 'hash value {} should be different ' \\\n+                                'with {} {}'.format(item, key, self.hash_records[key])\n+                    self.logger.error(error_msg)\n+                    self.error_msgs.append(error_msg)\n         if not rss_distribute:\n             error_msg = 'the packet do not distribute by rss'\n             self.logger.error(error_msg)\n",
    "prefixes": []
}