get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 56748,
    "url": "https://patches.dpdk.org/api/patches/56748/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190719031804.7392-1-taox.zhu@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20190719031804.7392-1-taox.zhu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190719031804.7392-1-taox.zhu@intel.com",
    "date": "2019-07-19T03:18:04",
    "name": "[v2] net/i40e: fix request queue fail in VF",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c2304021955d4be93c39d977ad3fbd3c73e56cc3",
    "submitter": {
        "id": 1368,
        "url": "https://patches.dpdk.org/api/people/1368/?format=api",
        "name": "Zhu, TaoX",
        "email": "taox.zhu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190719031804.7392-1-taox.zhu@intel.com/mbox/",
    "series": [
        {
            "id": 5613,
            "url": "https://patches.dpdk.org/api/series/5613/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=5613",
            "date": "2019-07-19T03:18:04",
            "name": "[v2] net/i40e: fix request queue fail in VF",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/5613/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/56748/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/56748/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CDF5D325F;\n\tFri, 19 Jul 2019 05:20:12 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 5387A2BA8;\n\tFri, 19 Jul 2019 05:20:10 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Jul 2019 20:20:08 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.176.181])\n\tby orsmga002.jf.intel.com with ESMTP; 18 Jul 2019 20:20:06 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.64,280,1559545200\"; d=\"scan'208\";a=\"179498730\"",
        "From": "taox.zhu@intel.com",
        "To": "beilei.xing@intel.com,\n\tqi.z.zhang@intel.com",
        "Cc": "dev@dpdk.org,\n\tZhu Tao <taox.zhu@intel.com>,\n\tstable@dpdk.org",
        "Date": "Fri, 19 Jul 2019 11:18:04 +0800",
        "Message-Id": "<20190719031804.7392-1-taox.zhu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190718145351.13987-1-taox.zhu@intel.com>",
        "References": "<20190718145351.13987-1-taox.zhu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2] net/i40e: fix request queue fail in VF",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Zhu Tao <taox.zhu@intel.com>\n\nWhen the VF configuration is larger than the number of queues reserved\nby PF, VF sends the request queue command through admin queue. When PF\nreceived this command, it may reset the VF and send a notification\nbefore resetting. If this notification is read by the timed task alarm,\nTask request queue will lost notification. This patch Mark vf_reset,\npend_msg flag just as task request queue has received notification in\ntask alarm.\n\nFixes: 864a800d70 (\"net/i40e: remove VF interrupt handler\")\nFixes: ee653bd800 (\"net/i40e: determine number of queues per VF at run time\")\nCc: stable@dpdk.org\n\nSigned-off-by: Zhu Tao <taox.zhu@intel.com>\n---\n drivers/net/i40e/i40e_ethdev_vf.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c\nindex 5be32b069..3b9740c08 100644\n--- a/drivers/net/i40e/i40e_ethdev_vf.c\n+++ b/drivers/net/i40e/i40e_ethdev_vf.c\n@@ -1332,6 +1332,10 @@ i40evf_handle_pf_event(struct rte_eth_dev *dev, uint8_t *msg,\n \t\tPMD_DRV_LOG(DEBUG, \"VIRTCHNL_EVENT_RESET_IMPENDING event\");\n \t\t_rte_eth_dev_callback_process(dev, RTE_ETH_EVENT_INTR_RESET,\n \t\t\t\t\t      NULL);\n+\t\tif (!vf->vf_reset) {\n+\t\t\tvf->vf_reset = true;\n+\t\t\tvf->pend_msg |= PFMSG_RESET_IMPENDING;\n+\t\t}\n \t\tbreak;\n \tcase VIRTCHNL_EVENT_LINK_CHANGE:\n \t\tPMD_DRV_LOG(DEBUG, \"VIRTCHNL_EVENT_LINK_CHANGE event\");\n",
    "prefixes": [
        "v2"
    ]
}