get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74181,
    "url": "http://patches.dpdk.org/api/patches/74181/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200716083931.29092-2-ktejasree@marvell.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": "<20200716083931.29092-2-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200716083931.29092-2-ktejasree@marvell.com",
    "date": "2020-07-16T08:39:24",
    "name": "[v3,1/8] crypto/octeontx2: move capabilities initialization into probe",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "61353d5aa42781b89f8f014270609a11b235cf30",
    "submitter": {
        "id": 1789,
        "url": "http://patches.dpdk.org/api/people/1789/?format=api",
        "name": "Tejasree Kondoj",
        "email": "ktejasree@marvell.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/20200716083931.29092-2-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 11079,
            "url": "http://patches.dpdk.org/api/series/11079/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11079",
            "date": "2020-07-16T08:39:23",
            "name": "add OCTEON TX2 lookaside IPsec support",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/11079/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/74181/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/74181/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 38A89A0546;\n\tThu, 16 Jul 2020 09:45:23 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 08B6F2C4F;\n\tThu, 16 Jul 2020 09:45:23 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 35EFF4F9A\n for <dev@dpdk.org>; Thu, 16 Jul 2020 09:45:22 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 06G7YjPC004489; Thu, 16 Jul 2020 00:45:21 -0700",
            "from sc-exch04.marvell.com ([199.233.58.184])\n by mx0b-0016f401.pphosted.com with ESMTP id 328mmhxm6q-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 16 Jul 2020 00:45:21 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH04.marvell.com\n (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Thu, 16 Jul 2020 00:45:20 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Thu, 16 Jul 2020 00:45:19 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Thu, 16 Jul 2020 00:45:19 -0700",
            "from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id B3F1F3F7044;\n Thu, 16 Jul 2020 00:45:16 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0818;\n bh=wAogfNgD83m6IeEyNXpN3zgiGLFU6u1Pp8Fnf4Tzv3o=;\n b=BJHjcw92L2NeY1K6r88e1HxlEn5Axh3YiWWRgaJtMVULGq5Vg8qbXGJYwsWWn0ujO/S2\n awkZRIJ/eV4OLQFSphjIddPoqSMYeXANmbA9Cyg9+L6i8Q8/S5jQrXlqqx7jMYWRGUuo\n 9JYC5A+fdF4iAcnhMWMmbwBN2VAd0t+vpepRjxoWTS8pfwN7bNOo5eDv8vqL6a9caiG5\n FV49xTavpT6bX0ASz6egtr8QrSJgHG1qq14dpoaynya/ryd5NT5ligseROUrTSFHw35s\n 4Y0V+OycGhvzeNcAKGKNoQufSDWnUfFVvSks9kQu359vhoeE2WwZgw9OIPQQbR5D82f/ /w==",
        "From": "Tejasree Kondoj <ktejasree@marvell.com>",
        "To": "Akhil Goyal <akhil.goyal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Narayana Prasad\n <pathreya@marvell.com>, Anoob Joseph <anoobj@marvell.com>, Vamsi Attunuru\n <vattunuru@marvell.com>, <dev@dpdk.org>",
        "Date": "Thu, 16 Jul 2020 14:09:24 +0530",
        "Message-ID": "<20200716083931.29092-2-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20200716083931.29092-1-ktejasree@marvell.com>",
        "References": "<20200716083931.29092-1-ktejasree@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687\n definitions=2020-07-16_04:2020-07-16,\n 2020-07-16 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v3 1/8] crypto/octeontx2: move capabilities\n\tinitialization into probe",
        "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 <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": "This patch moves capabilities initialization into probe.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n drivers/crypto/octeontx2/otx2_cryptodev.c              | 2 ++\n drivers/crypto/octeontx2/otx2_cryptodev_capabilities.c | 9 ++++++---\n drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h | 8 +++++++-\n drivers/crypto/octeontx2/otx2_cryptodev_ops.c          | 2 +-\n 4 files changed, 16 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/crypto/octeontx2/otx2_cryptodev.c b/drivers/crypto/octeontx2/otx2_cryptodev.c\nindex 9aa0fe35b4..a51d532553 100644\n--- a/drivers/crypto/octeontx2/otx2_cryptodev.c\n+++ b/drivers/crypto/octeontx2/otx2_cryptodev.c\n@@ -101,6 +101,8 @@ otx2_cpt_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \t\tgoto otx2_dev_fini;\n \t}\n \n+\totx2_crypto_capabilities_init(vf->hw_caps);\n+\n \tdev->feature_flags = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO |\n \t\t\t     RTE_CRYPTODEV_FF_HW_ACCELERATED |\n \t\t\t     RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |\ndiff --git a/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.c b/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.c\nindex f6f4dee6cf..f0ed1e2df9 100644\n--- a/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.c\n+++ b/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.c\n@@ -737,10 +737,9 @@ cpt_caps_add(const struct rte_cryptodev_capabilities *caps, int nb_caps)\n \tcur_pos += nb_caps;\n }\n \n-const struct rte_cryptodev_capabilities *\n-otx2_cpt_capabilities_get(union cpt_eng_caps *hw_caps)\n+void\n+otx2_crypto_capabilities_init(union cpt_eng_caps *hw_caps)\n {\n-\n \tCPT_CAPS_ADD(hw_caps, mul);\n \tCPT_CAPS_ADD(hw_caps, sha1_sha2);\n \tCPT_CAPS_ADD(hw_caps, chacha20);\n@@ -751,6 +750,10 @@ otx2_cpt_capabilities_get(union cpt_eng_caps *hw_caps)\n \n \tcpt_caps_add(caps_null, RTE_DIM(caps_null));\n \tcpt_caps_add(caps_end, RTE_DIM(caps_end));\n+}\n \n+const struct rte_cryptodev_capabilities *\n+otx2_cpt_capabilities_get(void)\n+{\n \treturn otx2_cpt_caps;\n }\ndiff --git a/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h b/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h\nindex e07a2a8c92..a439cbefd3 100644\n--- a/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h\n+++ b/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h\n@@ -16,11 +16,17 @@ enum otx2_cpt_egrp {\n \tOTX2_CPT_EGRP_MAX,\n };\n \n+/*\n+ * Initialize crypto capabilities for the device\n+ *\n+ */\n+void otx2_crypto_capabilities_init(union cpt_eng_caps *hw_caps);\n+\n /*\n  * Get capabilities list for the device\n  *\n  */\n const struct rte_cryptodev_capabilities *\n-otx2_cpt_capabilities_get(union cpt_eng_caps *hw_caps);\n+otx2_cpt_capabilities_get(void);\n \n #endif /* _OTX2_CRYPTODEV_CAPABILITIES_H_ */\ndiff --git a/drivers/crypto/octeontx2/otx2_cryptodev_ops.c b/drivers/crypto/octeontx2/otx2_cryptodev_ops.c\nindex a3703682a0..229b719b42 100644\n--- a/drivers/crypto/octeontx2/otx2_cryptodev_ops.c\n+++ b/drivers/crypto/octeontx2/otx2_cryptodev_ops.c\n@@ -1071,7 +1071,7 @@ otx2_cpt_dev_info_get(struct rte_cryptodev *dev,\n \tif (info != NULL) {\n \t\tinfo->max_nb_queue_pairs = vf->max_queues;\n \t\tinfo->feature_flags = dev->feature_flags;\n-\t\tinfo->capabilities = otx2_cpt_capabilities_get(vf->hw_caps);\n+\t\tinfo->capabilities = otx2_cpt_capabilities_get();\n \t\tinfo->sym.max_nb_sessions = 0;\n \t\tinfo->driver_id = otx2_cryptodev_driver_id;\n \t\tinfo->min_mbuf_headroom_req = OTX2_CPT_MIN_HEADROOM_REQ;\n",
    "prefixes": [
        "v3",
        "1/8"
    ]
}