get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42403,
    "url": "http://patches.dpdk.org/api/patches/42403/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1530806730-11822-11-git-send-email-fiona.trahe@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": "<1530806730-11822-11-git-send-email-fiona.trahe@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1530806730-11822-11-git-send-email-fiona.trahe@intel.com",
    "date": "2018-07-05T16:05:24",
    "name": "[v2,10/16] compress/qat: add fn to return device info",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cc2eeb5b695c41d9378b70ff4e1cf26868fed284",
    "submitter": {
        "id": 423,
        "url": "http://patches.dpdk.org/api/people/423/?format=api",
        "name": "Fiona Trahe",
        "email": "fiona.trahe@intel.com"
    },
    "delegate": {
        "id": 22,
        "url": "http://patches.dpdk.org/api/users/22/?format=api",
        "username": "pdelarag",
        "first_name": "Pablo",
        "last_name": "de Lara Guarch",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1530806730-11822-11-git-send-email-fiona.trahe@intel.com/mbox/",
    "series": [
        {
            "id": 424,
            "url": "http://patches.dpdk.org/api/series/424/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=424",
            "date": "2018-07-05T16:05:14",
            "name": "compress/qat: add compression PMD",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/424/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42403/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/42403/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 F320A1BFDD;\n\tThu,  5 Jul 2018 18:06:04 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id 762091B5C3\n\tfor <dev@dpdk.org>; Thu,  5 Jul 2018 18:05:57 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Jul 2018 09:05:57 -0700",
            "from sivswdev01.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.45])\n\tby orsmga004.jf.intel.com with ESMTP; 05 Jul 2018 09:05:55 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,313,1526367600\"; d=\"scan'208\";a=\"213680480\"",
        "From": "Fiona Trahe <fiona.trahe@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "pablo.de.lara.guarch@intel.com, fiona.trahe@intel.com,\n\ttomaszx.jozwiak@intel.com",
        "Date": "Thu,  5 Jul 2018 17:05:24 +0100",
        "Message-Id": "<1530806730-11822-11-git-send-email-fiona.trahe@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": "<1527100807-30814-1-git-send-email-fiona.trahe@intel.com>",
        "References": "<1527100807-30814-1-git-send-email-fiona.trahe@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 10/16] compress/qat: add fn to return device\n\tinfo",
        "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": "Add capabilities ptr to internal qat comp device\nand function to return this and other info.\n\nChange-Id: Ic0bf5375e0fbf6338d90fb10e7b9ae1454c93792\nSigned-off-by: Fiona Trahe <fiona.trahe@intel.com>\nSigned-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>\n---\n drivers/compress/qat/qat_comp_pmd.c | 18 ++++++++++++++++++\n drivers/compress/qat/qat_comp_pmd.h |  6 ++++++\n 2 files changed, 24 insertions(+)",
    "diff": "diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c\nindex dfdb373..2b64130 100644\n--- a/drivers/compress/qat/qat_comp_pmd.c\n+++ b/drivers/compress/qat/qat_comp_pmd.c\n@@ -196,3 +196,21 @@ qat_comp_dev_close(struct rte_compressdev *dev)\n \treturn ret;\n }\n \n+\n+void\n+qat_comp_dev_info_get(struct rte_compressdev *dev,\n+\t\t\tstruct rte_compressdev_info *info)\n+{\n+\tstruct qat_comp_dev_private *comp_dev = dev->data->dev_private;\n+\tconst struct qat_qp_hw_data *comp_hw_qps =\n+\t\tqat_gen_config[comp_dev->qat_dev->qat_dev_gen]\n+\t\t\t      .qp_hw_data[QAT_SERVICE_COMPRESSION];\n+\n+\tif (info != NULL) {\n+\t\tinfo->max_nb_queue_pairs =\n+\t\t\tqat_qps_per_service(comp_hw_qps,\n+\t\t\t\t\t    QAT_SERVICE_COMPRESSION);\n+\t\tinfo->feature_flags = dev->feature_flags;\n+\t\tinfo->capabilities = comp_dev->qat_dev_capabilities;\n+\t}\n+}\ndiff --git a/drivers/compress/qat/qat_comp_pmd.h b/drivers/compress/qat/qat_comp_pmd.h\nindex b10a66f..22576f4 100644\n--- a/drivers/compress/qat/qat_comp_pmd.h\n+++ b/drivers/compress/qat/qat_comp_pmd.h\n@@ -21,6 +21,8 @@ struct qat_comp_dev_private {\n \t/**< The qat pci device hosting the service */\n \tstruct rte_compressdev *compressdev;\n \t/**< The pointer to this compression device structure */\n+\tconst struct rte_compressdev_capabilities *qat_dev_capabilities;\n+\t/* QAT device compression capabilities */\n \tconst struct rte_memzone *interm_buff_mz;\n \t/**< The device's memory for intermediate buffers */\n \tstruct rte_mempool *xformpool;\n@@ -48,5 +50,9 @@ qat_comp_dev_config(struct rte_compressdev *dev,\n int\n qat_comp_dev_close(struct rte_compressdev *dev);\n \n+void\n+qat_comp_dev_info_get(struct rte_compressdev *dev,\n+\t\t\tstruct rte_compressdev_info *info);\n+\n #endif\n #endif /* _QAT_COMP_PMD_H_ */\n",
    "prefixes": [
        "v2",
        "10/16"
    ]
}