get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 135337,
    "url": "http://patches.dpdk.org/api/patches/135337/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231219155124.4133385-2-ciara.power@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": "<20231219155124.4133385-2-ciara.power@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231219155124.4133385-2-ciara.power@intel.com",
    "date": "2023-12-19T15:51:20",
    "name": "[1/4] crypto/qat: add new gen3 device",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c0f0d9d9c895dfb388a5fa7f26608ba97d02c3af",
    "submitter": {
        "id": 978,
        "url": "http://patches.dpdk.org/api/people/978/?format=api",
        "name": "Power, Ciara",
        "email": "ciara.power@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/20231219155124.4133385-2-ciara.power@intel.com/mbox/",
    "series": [
        {
            "id": 30615,
            "url": "http://patches.dpdk.org/api/series/30615/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30615",
            "date": "2023-12-19T15:51:19",
            "name": "add new QAT gen3 device",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/30615/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/135337/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/135337/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 0F22043746;\n\tTue, 19 Dec 2023 16:51:41 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1FB7E42E1A;\n\tTue, 19 Dec 2023 16:51:36 +0100 (CET)",
            "from mgamail.intel.com (mgamail.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 780A8402E0\n for <dev@dpdk.org>; Tue, 19 Dec 2023 16:51:34 +0100 (CET)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Dec 2023 07:51:34 -0800",
            "from silpixa00400355.ir.intel.com (HELO\n silpixa00400355.ger.corp.intel.com) ([10.237.222.80])\n by orsmga002.jf.intel.com with ESMTP; 19 Dec 2023 07:51:32 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1703001094; x=1734537094;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=I5kH724hj13PjqtFe5eY072R8DpUa+xuC+eW0PD/mmM=;\n b=K2o+38GOU4AbT3GiWU80iBTiA/4Ai8ZP9eBpnrZhQ0iicIHSezg9npzp\n f1r9YaFHmvc/XbGkF+DTFFJBz7tUxQv7sOfc6hAwZyS3X5PZ0hFbxhs4Z\n i8kG8J/csD1DNaOCB4qkur2UmFY+8e/zYLEu0V1Sqz/vLJIP0uc4aMvty\n kiZyhoWDS6CvkmSZUF/qv8nmlpeHEZbm9nd4J25kyBXRiWH86gCLvcjep\n 1DI6rYSvdlwnoHS/vkn5o+2QR06unXJznCdOahKVgIZa1a0ZCoNzfz2Rs\n MQE2dTAyglCOogonUVlXsapkycWPAWJQmk4N7Ela2+S/w8wtig0fsINLl A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10929\"; a=\"399510246\"",
            "E=Sophos;i=\"6.04,288,1695711600\"; d=\"scan'208\";a=\"399510246\"",
            "E=McAfee;i=\"6600,9927,10929\"; a=\"776021687\"",
            "E=Sophos;i=\"6.04,288,1695711600\"; d=\"scan'208\";a=\"776021687\""
        ],
        "X-ExtLoop1": "1",
        "From": "Ciara Power <ciara.power@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Ciara Power <ciara.power@intel.com>,\n\tKai Ji <kai.ji@intel.com>",
        "Subject": "[PATCH 1/4] crypto/qat: add new gen3 device",
        "Date": "Tue, 19 Dec 2023 15:51:20 +0000",
        "Message-Id": "<20231219155124.4133385-2-ciara.power@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20231219155124.4133385-1-ciara.power@intel.com>",
        "References": "<20231219155124.4133385-1-ciara.power@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "Add new gen3 QAT device ID.\nThis device has a wireless slice, but other gen3 devices do not, so we\nmust set a flag to indicate this wireless enabled device.\n\nCapabilities for the device are slightly different from base gen3\ncapabilities, some are removed from the list for this device.\n\nSigned-off-by: Ciara Power <ciara.power@intel.com>\n---\n drivers/common/qat/qat_device.c              | 13 +++++++++++++\n drivers/common/qat/qat_device.h              |  2 ++\n drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 11 +++++++++++\n 3 files changed, 26 insertions(+)",
    "diff": "diff --git a/drivers/common/qat/qat_device.c b/drivers/common/qat/qat_device.c\nindex f55dc3c6f0..0e7d387d78 100644\n--- a/drivers/common/qat/qat_device.c\n+++ b/drivers/common/qat/qat_device.c\n@@ -53,6 +53,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {\n \t\t{\n \t\t\tRTE_PCI_DEVICE(0x8086, 0x18a1),\n \t\t},\n+\t\t{\n+\t\t\tRTE_PCI_DEVICE(0x8086, 0x578b),\n+\t\t},\n \t\t{\n \t\t\tRTE_PCI_DEVICE(0x8086, 0x4941),\n \t\t},\n@@ -194,6 +197,7 @@ pick_gen(const struct rte_pci_device *pci_dev)\n \tcase 0x18ef:\n \t\treturn QAT_GEN2;\n \tcase 0x18a1:\n+\tcase 0x578b:\n \t\treturn QAT_GEN3;\n \tcase 0x4941:\n \tcase 0x4943:\n@@ -205,6 +209,12 @@ pick_gen(const struct rte_pci_device *pci_dev)\n \t}\n }\n \n+static int\n+wireless_slice_support(uint16_t pci_dev_id)\n+{\n+\treturn pci_dev_id == 0x578b;\n+}\n+\n struct qat_pci_device *\n qat_pci_device_allocate(struct rte_pci_device *pci_dev,\n \t\tstruct qat_dev_cmd_param *qat_dev_cmd_param)\n@@ -282,6 +292,9 @@ qat_pci_device_allocate(struct rte_pci_device *pci_dev,\n \tqat_dev->qat_dev_id = qat_dev_id;\n \tqat_dev->qat_dev_gen = qat_dev_gen;\n \n+\tif (wireless_slice_support(pci_dev->id.device_id))\n+\t\tqat_dev->has_wireless_slice = 1;\n+\n \tops_hw = qat_dev_hw_spec[qat_dev->qat_dev_gen];\n \tNOT_NULL(ops_hw->qat_dev_get_misc_bar, goto error,\n \t\t\"QAT internal error! qat_dev_get_misc_bar function not set\");\ndiff --git a/drivers/common/qat/qat_device.h b/drivers/common/qat/qat_device.h\nindex aa7988bb74..43e4752812 100644\n--- a/drivers/common/qat/qat_device.h\n+++ b/drivers/common/qat/qat_device.h\n@@ -135,6 +135,8 @@ struct qat_pci_device {\n \t/**< Per generation specific information */\n \tuint32_t slice_map;\n \t/**< Map of the crypto and compression slices */\n+\tuint16_t has_wireless_slice;\n+\t/**< Wireless Slices supported */\n };\n \n struct qat_gen_hw_data {\ndiff --git a/drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c b/drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c\nindex 02bcdb06b1..bc53e2e0f1 100644\n--- a/drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c\n+++ b/drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c\n@@ -255,6 +255,17 @@ qat_sym_crypto_cap_get_gen3(struct qat_cryptodev_private *internals,\n \t\t\t\tRTE_CRYPTO_AUTH_SM3_HMAC))) {\n \t\t\tcontinue;\n \t\t}\n+\t\tif (internals->qat_dev->has_wireless_slice && (\n+\t\t\tcheck_auth_capa(&capabilities[iter],\n+\t\t\t\tRTE_CRYPTO_AUTH_KASUMI_F9) ||\n+\t\t\tcheck_cipher_capa(&capabilities[iter],\n+\t\t\t\tRTE_CRYPTO_CIPHER_KASUMI_F8) ||\n+\t\t\tcheck_cipher_capa(&capabilities[iter],\n+\t\t\t\tRTE_CRYPTO_CIPHER_DES_CBC) ||\n+\t\t\tcheck_cipher_capa(&capabilities[iter],\n+\t\t\t\tRTE_CRYPTO_CIPHER_DES_DOCSISBPI)))\n+\t\t\tcontinue;\n+\n \t\tmemcpy(addr + curr_capa, capabilities + iter,\n \t\t\tsizeof(struct rte_cryptodev_capabilities));\n \t\tcurr_capa++;\n",
    "prefixes": [
        "1/4"
    ]
}