get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42395,
    "url": "http://patches.dpdk.org/api/patches/42395/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1530806730-11822-3-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-3-git-send-email-fiona.trahe@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1530806730-11822-3-git-send-email-fiona.trahe@intel.com",
    "date": "2018-07-05T16:05:16",
    "name": "[v2,02/16] compress/qat: add makefiles for PMD",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ae5634a3d53c2a0c1bd5b099e0a64566cd942014",
    "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-3-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/42395/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/42395/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 E3C221BF8E;\n\tThu,  5 Jul 2018 18:05:49 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id 0075C1BED1\n\tfor <dev@dpdk.org>; Thu,  5 Jul 2018 18:05:45 +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:45 -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:43 -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=\"213680428\"",
        "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:16 +0100",
        "Message-Id": "<1530806730-11822-3-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 02/16] compress/qat: add makefiles for PMD",
        "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 Makefiles, directory and empty source files for compression PMD.\nHandle cases for building either symmetric crypto PMD\nor compression PMD or both and the common files both depend on.\n\nChange-Id: I71c4c6abd1982443cd6f7ff25e03bb161fb3fb16\nSigned-off-by: Fiona Trahe <fiona.trahe@intel.com>\nSigned-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>\n---\n MAINTAINERS                         |  4 ++++\n config/common_base                  |  3 ++-\n drivers/common/qat/Makefile         | 48 ++++++++++++++++++++++++++++---------\n drivers/compress/qat/qat_comp.c     |  5 ++++\n drivers/compress/qat/qat_comp.h     | 14 +++++++++++\n drivers/compress/qat/qat_comp_pmd.c |  5 ++++\n drivers/compress/qat/qat_comp_pmd.h | 15 ++++++++++++\n test/test/test_cryptodev.c          |  6 ++---\n 8 files changed, 85 insertions(+), 15 deletions(-)\n create mode 100644 drivers/compress/qat/qat_comp.c\n create mode 100644 drivers/compress/qat/qat_comp.h\n create mode 100644 drivers/compress/qat/qat_comp_pmd.c\n create mode 100644 drivers/compress/qat/qat_comp_pmd.h",
    "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex 8050b5d..50b2dff 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -852,6 +852,10 @@ F: drivers/compress/isal/\n F: doc/guides/compressdevs/isal.rst\n F: doc/guides/compressdevs/features/isal.ini\n \n+Intel QuickAssist\n+M: Fiona Trahe <fiona.trahe@intel.com>\n+F: drivers/compress/qat/\n+F: drivers/common/qat/\n \n Eventdev Drivers\n ----------------\ndiff --git a/config/common_base b/config/common_base\nindex 4236e29..93c8857 100644\n--- a/config/common_base\n+++ b/config/common_base\n@@ -484,7 +484,8 @@ CONFIG_RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS=2048\n #\n # Compile PMD for QuickAssist based devices\n #\n-CONFIG_RTE_LIBRTE_PMD_QAT=n\n+CONFIG_RTE_LIBRTE_PMD_QAT=y\n+CONFIG_RTE_LIBRTE_PMD_QAT_SYM=n\n #\n # Max. number of QuickAssist devices, which can be detected and attached\n #\ndiff --git a/drivers/common/qat/Makefile b/drivers/common/qat/Makefile\nindex 68c7c95..b1a76c1 100644\n--- a/drivers/common/qat/Makefile\n+++ b/drivers/common/qat/Makefile\n@@ -15,35 +15,61 @@ CFLAGS += -O3\n \n # build directories\n QAT_CRYPTO_DIR := $(RTE_SDK)/drivers/crypto/qat\n+QAT_COMPRESS_DIR := $(RTE_SDK)/drivers/compress/qat\n \n # external library include paths\n CFLAGS += -I$(SRCDIR)/qat_adf\n CFLAGS += -I$(SRCDIR)\n CFLAGS += -I$(QAT_CRYPTO_DIR)\n+CFLAGS += -I$(QAT_COMPRESS_DIR)\n \n-# library common source files\n-SRCS-y += qat_device.c\n-SRCS-y += qat_common.c\n-SRCS-y += qat_logs.c\n-SRCS-y += qat_qp.c\n+\n+ifeq ($(CONFIG_RTE_LIBRTE_COMPRESSDEV),y)\n+\tCFLAGS += -DALLOW_EXPERIMENTAL_API\n+\tLDLIBS += -lrte_compressdev\n+\tSRCS-y += $(QAT_COMPRESS_DIR)/qat_comp.c\n+\tSRCS-y += $(QAT_COMPRESS_DIR)/qat_comp_pmd.c\n+\tbuild_qat = yes\n+endif\n \n # library symmetric crypto source files\n ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y)\n+ifeq ($(CONFIG_RTE_LIBRTE_PMD_QAT_SYM),y)\n \tLDLIBS += -lrte_cryptodev\n \tLDLIBS += -lcrypto\n \tCFLAGS += -DBUILD_QAT_SYM\n \tSRCS-y += $(QAT_CRYPTO_DIR)/qat_sym.c\n \tSRCS-y += $(QAT_CRYPTO_DIR)/qat_sym_session.c\n \tSRCS-y += $(QAT_CRYPTO_DIR)/qat_sym_pmd.c\n+\tbuild_qat = yes\n endif\n+endif\n+\n+ifdef build_qat\n \n-LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool\n-LDLIBS += -lrte_pci -lrte_bus_pci\n+\t# library name\n+\tLIB = librte_pmd_qat.a\n \n-# export include files\n-SYMLINK-y-include +=\n+\t# library version\n+\tLIBABIVER := 1\n+\t# build flags\n+\tCFLAGS += $(WERROR_FLAGS)\n+\tCFLAGS += -O3\n \n-# versioning export map\n-EXPORT_MAP := ../../crypto/qat/rte_pmd_qat_version.map\n+\t# library common source files\n+\tSRCS-y += qat_device.c\n+\tSRCS-y += qat_common.c\n+\tSRCS-y += qat_logs.c\n+\tSRCS-y += qat_qp.c\n+\n+\tLDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool\n+\tLDLIBS += -lrte_pci -lrte_bus_pci\n+\n+\t# export include files\n+\tSYMLINK-y-include +=\n+\n+\t# versioning export map\n+\tEXPORT_MAP := ../../crypto/qat/rte_pmd_qat_version.map\n+endif\n \n include $(RTE_SDK)/mk/rte.lib.mk\ndiff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c\nnew file mode 100644\nindex 0000000..caa1158\n--- /dev/null\n+++ b/drivers/compress/qat/qat_comp.c\n@@ -0,0 +1,5 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2018 Intel Corporation\n+ */\n+\n+#include \"qat_comp.h\"\ndiff --git a/drivers/compress/qat/qat_comp.h b/drivers/compress/qat/qat_comp.h\nnew file mode 100644\nindex 0000000..89c475e\n--- /dev/null\n+++ b/drivers/compress/qat/qat_comp.h\n@@ -0,0 +1,14 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2015-2018 Intel Corporation\n+ */\n+\n+#ifndef _QAT_COMP_H_\n+#define _QAT_COMP_H_\n+\n+#ifdef RTE_LIBRTE_COMPRESSDEV\n+\n+#include <rte_compressdev.h>\n+#include <rte_compressdev_pmd.h>\n+\n+#endif\n+#endif\ndiff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c\nnew file mode 100644\nindex 0000000..fb035d1\n--- /dev/null\n+++ b/drivers/compress/qat/qat_comp_pmd.c\n@@ -0,0 +1,5 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2015-2018 Intel Corporation\n+ */\n+\n+#include \"qat_comp_pmd.h\"\ndiff --git a/drivers/compress/qat/qat_comp_pmd.h b/drivers/compress/qat/qat_comp_pmd.h\nnew file mode 100644\nindex 0000000..9b5b543\n--- /dev/null\n+++ b/drivers/compress/qat/qat_comp_pmd.h\n@@ -0,0 +1,15 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2015-2018 Intel Corporation\n+ */\n+\n+#ifndef _QAT_COMP_PMD_H_\n+#define _QAT_COMP_PMD_H_\n+\n+#ifdef RTE_LIBRTE_COMPRESSDEV\n+\n+#include <rte_compressdev.h>\n+#include <rte_compressdev_pmd.h>\n+\n+\n+#endif\n+#endif /* _QAT_COMP_PMD_H_ */\ndiff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c\nindex 389f796..ec03a98 100644\n--- a/test/test/test_cryptodev.c\n+++ b/test/test/test_cryptodev.c\n@@ -9908,9 +9908,9 @@ test_cryptodev_qat(void /*argv __rte_unused, int argc __rte_unused*/)\n \t\t\tRTE_STR(CRYPTODEV_NAME_QAT_SYM_PMD));\n \n \tif (gbl_driver_id == -1) {\n-\t\tRTE_LOG(ERR, USER1, \"QAT PMD must be loaded. Check if \"\n-\t\t\t\t\"CONFIG_RTE_LIBRTE_PMD_QAT is enabled \"\n-\t\t\t\t\"in config file to run this testsuite.\\n\");\n+\t\tRTE_LOG(ERR, USER1, \"QAT PMD must be loaded. Check that both \"\n+\t\t\"CONFIG_RTE_LIBRTE_PMD_QAT and CONFIG_RTE_LIBRTE_PMD_QAT_SYM \"\n+\t\t\"are enabled in config file to run this testsuite.\\n\");\n \t\treturn TEST_SKIPPED;\n \t}\n \n",
    "prefixes": [
        "v2",
        "02/16"
    ]
}