get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 57792,
    "url": "http://patches.dpdk.org/api/patches/57792/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190822055400.30119-2-ajit.khaparde@broadcom.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": "<20190822055400.30119-2-ajit.khaparde@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190822055400.30119-2-ajit.khaparde@broadcom.com",
    "date": "2019-08-22T05:53:48",
    "name": "[01/13] net/bnxt: hsi version update",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "bb4fe89475f5c353564f84a51ba684e4c2c8da19",
    "submitter": {
        "id": 501,
        "url": "http://patches.dpdk.org/api/people/501/?format=api",
        "name": "Ajit Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190822055400.30119-2-ajit.khaparde@broadcom.com/mbox/",
    "series": [
        {
            "id": 6099,
            "url": "http://patches.dpdk.org/api/series/6099/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6099",
            "date": "2019-08-22T05:53:47",
            "name": "bnxt patchset to support device error recovery",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/6099/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/57792/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/57792/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 40DA71BF2E;\n\tThu, 22 Aug 2019 07:54:13 +0200 (CEST)",
            "from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com\n\t[192.19.229.170]) by dpdk.org (Postfix) with ESMTP id 73ACC1BF2B\n\tfor <dev@dpdk.org>; Thu, 22 Aug 2019 07:54:08 +0200 (CEST)",
            "from nis-sj1-27.broadcom.com (nis-sj1-27.lvn.broadcom.net\n\t[10.75.144.136])\n\tby rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id AD61530C24C;\n\tWed, 21 Aug 2019 22:54:03 -0700 (PDT)",
            "from localhost.localdomain (unknown [10.230.30.225])\n\tby nis-sj1-27.broadcom.com (Postfix) with ESMTP id 3EB9EAC076C;\n\tWed, 21 Aug 2019 22:54:03 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com AD61530C24C",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n\ts=dkimrelay; t=1566453243;\n\tbh=OFz4IOVKOu7TSb0u51C48JiHXJGfpF7cz62pr5L4CFE=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=UJeU8TSE8qppxHeEKHQBOPZxGvcvqDPhockglyJnSHJ51uzelXJc0+RGi98nQ+L+6\n\twih38Z1fZzVTwbUx0wtI3XEXdyNfcHHQTUtlNwb4b1dtN/PDfJPXloPjQdege8O7Zf\n\tMyCI+UmO8M2km9aDNmywHhNIM1LWw3LuQ9NC3C+I=",
        "From": "Ajit Khaparde <ajit.khaparde@broadcom.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com, Kalesh AP <kalesh-anakkur.purayil@broadcom.com>, \n\tSomnath Kotur <somnath.kotur@broadcom.com>",
        "Date": "Wed, 21 Aug 2019 22:53:48 -0700",
        "Message-Id": "<20190822055400.30119-2-ajit.khaparde@broadcom.com>",
        "X-Mailer": "git-send-email 2.20.1 (Apple Git-117)",
        "In-Reply-To": "<20190822055400.30119-1-ajit.khaparde@broadcom.com>",
        "References": "<20190822055400.30119-1-ajit.khaparde@broadcom.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 01/13] net/bnxt: hsi version update",
        "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: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>\n\nSigned-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>\nReviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\n---\n drivers/net/bnxt/hsi_struct_def_dpdk.h | 137 +++++++++++++++++++++++++\n 1 file changed, 137 insertions(+)",
    "diff": "diff --git a/drivers/net/bnxt/hsi_struct_def_dpdk.h b/drivers/net/bnxt/hsi_struct_def_dpdk.h\nindex 6c98c1d6d..009571725 100644\n--- a/drivers/net/bnxt/hsi_struct_def_dpdk.h\n+++ b/drivers/net/bnxt/hsi_struct_def_dpdk.h\n@@ -33621,4 +33621,141 @@ struct hwrm_nvm_validate_option_cmd_err {\n \tuint8_t\tunused_0[7];\n } __attribute__((packed));\n \n+/*****************\n+ * hwrm_fw_reset *\n+ ******************/\n+\n+\n+/* hwrm_fw_reset_input (size:192b/24B) */\n+struct hwrm_fw_reset_input {\n+\t/* The HWRM command request type. */\n+\tuint16_t        req_type;\n+\t/*\n+\t * The completion ring to send the completion event on. This should\n+\t * be the NQ ID returned from the `nq_alloc` HWRM command.\n+\t */\n+\tuint16_t        cmpl_ring;\n+\t/*\n+\t * The sequence ID is used by the driver for tracking multiple\n+\t * commands. This ID is treated as opaque data by the firmware and\n+\t * the value is returned in the `hwrm_resp_hdr` upon completion.\n+\t */\n+\tuint16_t        seq_id;\n+\t/*\n+\t * The target ID of the command:\n+\t * * 0x0-0xFFF8 - The function ID\n+\t * * 0xFFF8-0xFFFE - Reserved for internal processors\n+\t * * 0xFFFF - HWRM\n+\t */\n+\tuint16_t        target_id;\n+\t/*\n+\t * A physical address pointer pointing to a host buffer that the\n+\t * command's response data will be written. This can be either a host\n+\t * physical address (HPA) or a guest physical address (GPA) and must\n+\t * point to a physically contiguous block of memory.\n+\t */\n+\tuint64_t        resp_addr;\n+\t/* Type of embedded processor. */\n+\tuint8_t embedded_proc_type;\n+\t/* Boot Processor */\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_BOOT \\\n+\t\tUINT32_C(0x0)\n+\t/* Management Processor */\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_MGMT \\\n+\t\tUINT32_C(0x1)\n+\t/* Network control processor */\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_NETCTRL \\\n+\t\tUINT32_C(0x2)\n+\t/* RoCE control processor */\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_ROCE \\\n+\t\tUINT32_C(0x3)\n+\t/*\n+\t * Host (in multi-host environment): This is only valid if requester is IPC.\n+\t * Reinit host hardware resources and PCIe.\n+\t */\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_HOST \\\n+\t\tUINT32_C(0x4)\n+\t/* AP processor complex (in multi-host environment). Use host_idx to control which core is reset */\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_AP \\\n+\t\tUINT32_C(0x5)\n+\t/* Reset all blocks of the chip (including all processors) */\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_CHIP \\\n+\t\tUINT32_C(0x6)\n+\t/*\n+\t * Host (in multi-host environment): This is only valid if requester is IPC.\n+\t * Reinit host hardware resources.\n+\t */\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_HOST_RESOURCE_REINIT \\\n+\t\tUINT32_C(0x7)\n+\t#define HWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_LAST \\\n+\t\tHWRM_FW_RESET_INPUT_EMBEDDED_PROC_TYPE_HOST_RESOURCE_REINIT\n+\t/* Type of self reset. */\n+\tuint8_t selfrst_status;\n+\t/* No Self Reset */\n+\t#define HWRM_FW_RESET_INPUT_SELFRST_STATUS_SELFRSTNONE \\\n+\t\tUINT32_C(0x0)\n+\t/* Self Reset as soon as possible to do so safely */\n+\t#define HWRM_FW_RESET_INPUT_SELFRST_STATUS_SELFRSTASAP \\\n+\t\tUINT32_C(0x1)\n+\t/* Self Reset on PCIe Reset */\n+\t#define HWRM_FW_RESET_INPUT_SELFRST_STATUS_SELFRSTPCIERST \\\n+\t\tUINT32_C(0x2)\n+\t/* Self Reset immediately after notification to all clients. */\n+\t#define HWRM_FW_RESET_INPUT_SELFRST_STATUS_SELFRSTIMMEDIATE \\\n+\t\tUINT32_C(0x3)\n+\t#define HWRM_FW_RESET_INPUT_SELFRST_STATUS_LAST \\\n+\t\tHWRM_FW_RESET_INPUT_SELFRST_STATUS_SELFRSTIMMEDIATE\n+\t/*\n+\t * Indicate which host is being reset. 0 means first host.\n+\t * Only valid when embedded_proc_type is host in multihost\n+\t * environment\n+\t */\n+\tuint8_t host_idx;\n+\tuint8_t flags;\n+\t/*\n+\t * When this bit is '1', then the core firmware initiates\n+\t * the reset only after graceful shut down of all registered instances.\n+\t * If not, the device will continue with the existing firmware.\n+\t */\n+\t#define HWRM_FW_RESET_INPUT_FLAGS_RESET_GRACEFUL     UINT32_C(0x1)\n+\tuint8_t unused_0[4];\n+} __attribute__((packed));\n+\n+/* hwrm_fw_reset_output (size:128b/16B) */\n+struct hwrm_fw_reset_output {\n+\t/* The specific error status for the command. */\n+\tuint16_t        error_code;\n+\t/* The HWRM command request type. */\n+\tuint16_t        req_type;\n+\t/* The sequence ID from the original command. */\n+\tuint16_t        seq_id;\n+\t/* The length of the response data in number of bytes. */\n+\tuint16_t        resp_len;\n+\t/* Type of self reset. */\n+\tuint8_t selfrst_status;\n+\t/* No Self Reset */\n+\t#define HWRM_FW_RESET_OUTPUT_SELFRST_STATUS_SELFRSTNONE \\\n+\t\tUINT32_C(0x0)\n+\t/* Self Reset as soon as possible to do so safely */\n+\t#define HWRM_FW_RESET_OUTPUT_SELFRST_STATUS_SELFRSTASAP \\\n+\t\tUINT32_C(0x1)\n+\t/* Self Reset on PCIe Reset */\n+\t#define HWRM_FW_RESET_OUTPUT_SELFRST_STATUS_SELFRSTPCIERST \\\n+\t\tUINT32_C(0x2)\n+\t/* Self Reset immediately after notification to all clients. */\n+\t#define HWRM_FW_RESET_OUTPUT_SELFRST_STATUS_SELFRSTIMMEDIATE \\\n+\t\tUINT32_C(0x3)\n+\t#define HWRM_FW_RESET_OUTPUT_SELFRST_STATUS_LAST \\\n+\t\tHWRM_FW_RESET_OUTPUT_SELFRST_STATUS_SELFRSTIMMEDIATE\n+\tuint8_t unused_0[6];\n+\t/*\n+\t * This field is used in Output records to indicate that the output\n+\t * is completely written to RAM.  This field should be read as '1'\n+\t * to indicate that the output has been completely written.\n+\t * When writing a command completion or response to an internal processor,\n+\t * the order of writes has to be such that this field is written last.\n+\t */\n+\tuint8_t valid;\n+} __attribute__((packed));\n+\n #endif /* _HSI_STRUCT_DEF_DPDK_H_ */\n",
    "prefixes": [
        "01/13"
    ]
}