get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 83942,
    "url": "http://patches.dpdk.org/api/patches/83942/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201111064250.13660-1-ting.xu@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20201111064250.13660-1-ting.xu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201111064250.13660-1-ting.xu@intel.com",
    "date": "2020-11-11T06:42:50",
    "name": "[v1] net/iavf: fix RSS queue region size exceeds",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6fe6c9c2c6dd076ceda68a0a2872dd4a72eb73e8",
    "submitter": {
        "id": 1363,
        "url": "http://patches.dpdk.org/api/people/1363/?format=api",
        "name": "Xu, Ting",
        "email": "ting.xu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201111064250.13660-1-ting.xu@intel.com/mbox/",
    "series": [
        {
            "id": 13797,
            "url": "http://patches.dpdk.org/api/series/13797/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13797",
            "date": "2020-11-11T06:42:50",
            "name": "[v1] net/iavf: fix RSS queue region size exceeds",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/13797/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/83942/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/83942/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-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 22E1EA09D2;\n\tWed, 11 Nov 2020 07:45:00 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 00CC32BAB;\n\tWed, 11 Nov 2020 07:44:58 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id 88DFA2AB;\n Wed, 11 Nov 2020 07:44:56 +0100 (CET)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Nov 2020 22:44:54 -0800",
            "from dpdk-xuting-main.sh.intel.com ([10.67.117.84])\n by fmsmga004.fm.intel.com with ESMTP; 10 Nov 2020 22:44:53 -0800"
        ],
        "IronPort-SDR": [
            "\n vpX48fTUn/p/PP3AZoUJr+ygJe0arGW2JPqPZ3/jrfXHUJ0DA7DeuySSR/q8NtjEDXcgjQINO8\n vgRpFQ1aGSOQ==",
            "\n D2JB0f9/T1TZLbzAWnwSDI7Sb9fwezauxVcL6aFKSLFbH3om7EwIi7aSweiLX6Kbb8Uyj0SlNZ\n NE9fqsFgQ1Ng=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9801\"; a=\"169319539\"",
            "E=Sophos;i=\"5.77,468,1596524400\"; d=\"scan'208\";a=\"169319539\"",
            "E=Sophos;i=\"5.77,468,1596524400\"; d=\"scan'208\";a=\"356503337\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Ting Xu <ting.xu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qi.z.zhang@intel.com, beilei.xing@intel.com, jingjing.wu@intel.com,\n stable@dpdk.org",
        "Date": "Wed, 11 Nov 2020 14:42:50 +0800",
        "Message-Id": "<20201111064250.13660-1-ting.xu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH v1] net/iavf: fix RSS queue region size exceeds",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "When a rule is set to do RSS to redirect flows to a group of queues, the\nqueue region size should not be larger than the max RSS queue region\nsupported by HW. This patch added the step to check the queue region\nsize, and report failure if the size does not meet the requirement.\n\nFixes: e436cd43835b (\"net/iavf: negotiate large VF and request more queues\")\nCc: stable@dpdk.org\n\nSigned-off-by: Ting Xu <ting.xu@intel.com>\n---\n drivers/net/iavf/iavf_fdir.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/net/iavf/iavf_fdir.c b/drivers/net/iavf/iavf_fdir.c\nindex f584e5624c..d683a468c1 100644\n--- a/drivers/net/iavf/iavf_fdir.c\n+++ b/drivers/net/iavf/iavf_fdir.c\n@@ -256,6 +256,7 @@ iavf_fdir_parse_action_qregion(struct iavf_adapter *ad,\n \t\t\tconst struct rte_flow_action *act,\n \t\t\tstruct virtchnl_filter_action *filter_action)\n {\n+\tstruct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(ad);\n \tconst struct rte_flow_action_rss *rss = act->conf;\n \tuint32_t i;\n \n@@ -300,6 +301,13 @@ iavf_fdir_parse_action_qregion(struct iavf_adapter *ad,\n \t\treturn -rte_errno;\n \t}\n \n+\tif (rss->queue_num > vf->max_rss_qregion) {\n+\t\trte_flow_error_set(error, EINVAL,\n+\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION, act,\n+\t\t\t\t\"The region size cannot be large than the supported max RSS queue region\");\n+\t\treturn -rte_errno;\n+\t}\n+\n \tfilter_action->act_conf.queue.index = rss->queue[0];\n \tfilter_action->act_conf.queue.region = rte_fls_u32(rss->queue_num) - 1;\n \n",
    "prefixes": [
        "v1"
    ]
}