get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 103064,
    "url": "http://patches.dpdk.org/api/patches/103064/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211027155055.32264-2-kai.ji@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": "<20211027155055.32264-2-kai.ji@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211027155055.32264-2-kai.ji@intel.com",
    "date": "2021-10-27T15:50:47",
    "name": "[v7,1/9] common/qat: add gen specific data and function",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "07738fe02f0b2cc7fd2ba5d2df3b1e01f9d04864",
    "submitter": {
        "id": 2202,
        "url": "http://patches.dpdk.org/api/people/2202/?format=api",
        "name": "Ji, Kai",
        "email": "kai.ji@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211027155055.32264-2-kai.ji@intel.com/mbox/",
    "series": [
        {
            "id": 20061,
            "url": "http://patches.dpdk.org/api/series/20061/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20061",
            "date": "2021-10-27T15:50:46",
            "name": "drivers/qat: isolate implementations of qat generations",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/20061/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/103064/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/103064/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 71509A0C47;\n\tWed, 27 Oct 2021 17:51:09 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5E842411E1;\n\tWed, 27 Oct 2021 17:51:09 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 18F25411B5\n for <dev@dpdk.org>; Wed, 27 Oct 2021 17:51:01 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Oct 2021 08:51:01 -0700",
            "from silpixa00400272.ir.intel.com (HELO\n silpixa00400272.ger.corp.intel.com) ([10.237.223.111])\n by orsmga001.jf.intel.com with ESMTP; 27 Oct 2021 08:51:00 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10150\"; a=\"217101360\"",
            "E=Sophos;i=\"5.87,187,1631602800\"; d=\"scan'208\";a=\"217101360\"",
            "E=Sophos;i=\"5.87,187,1631602800\"; d=\"scan'208\";a=\"529672514\""
        ],
        "X-ExtLoop1": "1",
        "From": "Kai Ji <kai.ji@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Fan Zhang <roy.fan.zhang@intel.com>,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>, Kai Ji <kai.ji@intel.com>",
        "Date": "Wed, 27 Oct 2021 16:50:47 +0100",
        "Message-Id": "<20211027155055.32264-2-kai.ji@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20211027155055.32264-1-kai.ji@intel.com>",
        "References": "<20211026171633.19498-1-kai.ji@intel.com>\n <20211027155055.32264-1-kai.ji@intel.com>",
        "Subject": "[dpdk-dev] [dpdk-dev v7 1/9] common/qat: add gen specific data and\n function",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "From: Fan Zhang <roy.fan.zhang@intel.com>\n\nThis patch adds the data structure and function prototypes for\ndifferent QAT generations.\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\nSigned-off-by: Fan Zhang <roy.fan.zhang@intel.com>\nSigned-off-by: Kai Ji <kai.ji@intel.com>\nAcked-by: Ciara Power <ciara.power@intel.com>\n---\n drivers/common/qat/qat_common.h | 14 ++++++++------\n drivers/common/qat/qat_device.c |  4 ++++\n drivers/common/qat/qat_device.h | 23 +++++++++++++++++++++++\n 3 files changed, 35 insertions(+), 6 deletions(-)\n\n--\n2.17.1",
    "diff": "diff --git a/drivers/common/qat/qat_common.h b/drivers/common/qat/qat_common.h\nindex 23715085f4..1889ec4e88 100644\n--- a/drivers/common/qat/qat_common.h\n+++ b/drivers/common/qat/qat_common.h\n@@ -15,20 +15,24 @@\n /* Intel(R) QuickAssist Technology device generation is enumerated\n  * from one according to the generation of the device\n  */\n+\n enum qat_device_gen {\n-\tQAT_GEN1 = 1,\n+\tQAT_GEN1,\n \tQAT_GEN2,\n \tQAT_GEN3,\n-\tQAT_GEN4\n+\tQAT_GEN4,\n+\tQAT_N_GENS\n };\n\n enum qat_service_type {\n-\tQAT_SERVICE_ASYMMETRIC = 0,\n+\tQAT_SERVICE_ASYMMETRIC,\n \tQAT_SERVICE_SYMMETRIC,\n \tQAT_SERVICE_COMPRESSION,\n-\tQAT_SERVICE_INVALID\n+\tQAT_MAX_SERVICES\n };\n\n+#define QAT_SERVICE_INVALID\t(QAT_MAX_SERVICES)\n+\n enum qat_svc_list {\n \tQAT_SVC_UNUSED = 0,\n \tQAT_SVC_CRYPTO = 1,\n@@ -37,8 +41,6 @@ enum qat_svc_list {\n \tQAT_SVC_ASYM = 4,\n };\n\n-#define QAT_MAX_SERVICES\t\t(QAT_SERVICE_INVALID)\n-\n /**< Common struct for scatter-gather list operations */\n struct qat_flat_buf {\n \tuint32_t len;\ndiff --git a/drivers/common/qat/qat_device.c b/drivers/common/qat/qat_device.c\nindex 1b967cbcf7..e6b43c541f 100644\n--- a/drivers/common/qat/qat_device.c\n+++ b/drivers/common/qat/qat_device.c\n@@ -13,6 +13,10 @@\n #include \"adf_pf2vf_msg.h\"\n #include \"qat_pf2vf.h\"\n\n+/* Hardware device information per generation */\n+struct qat_gen_hw_data qat_gen_config[QAT_N_GENS];\n+struct qat_dev_hw_spec_funcs *qat_dev_hw_spec[QAT_N_GENS];\n+\n /* pv2vf data Gen 4*/\n struct qat_pf2vf_dev qat_pf2vf_gen4 = {\n \t.pf2vf_offset = ADF_4XXXIOV_PF2VM_OFFSET,\ndiff --git a/drivers/common/qat/qat_device.h b/drivers/common/qat/qat_device.h\nindex 228c057d1e..b8b5c387a3 100644\n--- a/drivers/common/qat/qat_device.h\n+++ b/drivers/common/qat/qat_device.h\n@@ -21,6 +21,29 @@\n #define COMP_ENQ_THRESHOLD_NAME \"qat_comp_enq_threshold\"\n #define MAX_QP_THRESHOLD_SIZE\t32\n\n+/**\n+ * Function prototypes for GENx specific device operations.\n+ **/\n+typedef int (*qat_dev_reset_ring_pairs_t)\n+\t\t(struct qat_pci_device *);\n+typedef const struct rte_mem_resource* (*qat_dev_get_transport_bar_t)\n+\t\t(struct rte_pci_device *);\n+typedef int (*qat_dev_get_misc_bar_t)\n+\t\t(struct rte_mem_resource **, struct rte_pci_device *);\n+typedef int (*qat_dev_read_config_t)\n+\t\t(struct qat_pci_device *);\n+typedef int (*qat_dev_get_extra_size_t)(void);\n+\n+struct qat_dev_hw_spec_funcs {\n+\tqat_dev_reset_ring_pairs_t\tqat_dev_reset_ring_pairs;\n+\tqat_dev_get_transport_bar_t\tqat_dev_get_transport_bar;\n+\tqat_dev_get_misc_bar_t\t\tqat_dev_get_misc_bar;\n+\tqat_dev_read_config_t\t\tqat_dev_read_config;\n+\tqat_dev_get_extra_size_t\tqat_dev_get_extra_size;\n+};\n+\n+extern struct qat_dev_hw_spec_funcs *qat_dev_hw_spec[];\n+\n struct qat_dev_cmd_param {\n \tconst char *name;\n \tuint16_t val;\n",
    "prefixes": [
        "v7",
        "1/9"
    ]
}