get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74580,
    "url": "https://patches.dpdk.org/api/patches/74580/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200721145648.29168-1-david.coyle@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20200721145648.29168-1-david.coyle@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200721145648.29168-1-david.coyle@intel.com",
    "date": "2020-07-21T14:56:48",
    "name": "[v2] app/crypto-perf: support security protocol in PMDCC mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "30f1887b7a6faeee9310a34dff68deb4666cf0ba",
    "submitter": {
        "id": 961,
        "url": "https://patches.dpdk.org/api/people/961/?format=api",
        "name": "Coyle, David",
        "email": "david.coyle@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "https://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200721145648.29168-1-david.coyle@intel.com/mbox/",
    "series": [
        {
            "id": 11217,
            "url": "https://patches.dpdk.org/api/series/11217/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11217",
            "date": "2020-07-21T14:56:48",
            "name": "[v2] app/crypto-perf: support security protocol in PMDCC mode",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/11217/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74580/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74580/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 13644A0526;\n\tTue, 21 Jul 2020 17:21:36 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D26401BFF9;\n\tTue, 21 Jul 2020 17:21:34 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id F25C21BFEB\n for <dev@dpdk.org>; Tue, 21 Jul 2020 17:21:32 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jul 2020 08:21:31 -0700",
            "from silpixa00399912.ir.intel.com (HELO\n silpixa00399912.ger.corp.intel.com) ([10.237.223.64])\n by fmsmga008.fm.intel.com with ESMTP; 21 Jul 2020 08:21:30 -0700"
        ],
        "IronPort-SDR": [
            "\n B4GqSkdJz1ERFoiS6SXyRxp9jPPA+VUQlnBia1KYxYQQZsdT9XwqtZhw6Dq7oyzIbvfPDgRVs+\n YdB3VDLtQLXg==",
            "\n 4f6+yTfE7U5KLajerYmkoTNVfSxp0EmntXDxZcDoG+pBudaAEhZ5CWP/9D+xlMpLEetTYQyYC/\n wIuaT8jxYj9g=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9689\"; a=\"168292209\"",
            "E=Sophos;i=\"5.75,379,1589266800\"; d=\"scan'208\";a=\"168292209\"",
            "E=Sophos;i=\"5.75,379,1589266800\"; d=\"scan'208\";a=\"271743508\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "David Coyle <david.coyle@intel.com>",
        "To": "akhil.goyal@nxp.com, declan.doherty@intel.com,\n pablo.de.lara.guarch@intel.com, fiona.trahe@intel.com",
        "Cc": "dev@dpdk.org, brendan.ryan@intel.com, mairtin.oloingsigh@intel.com,\n David Coyle <david.coyle@intel.com>",
        "Date": "Tue, 21 Jul 2020 15:56:48 +0100",
        "Message-Id": "<20200721145648.29168-1-david.coyle@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200720153909.18552-1-david.coyle@intel.com>",
        "References": "<20200720153909.18552-1-david.coyle@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2] app/crypto-perf: support security protocol in\n\tPMDCC mode",
        "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 adds support for DOCSIS and PDCP security protocols to the\npmd-cyclecount mode of the crypto performance tool. Adding this support\ninvolves freeing the correct session type (i.e. security or cryptodev\nsession) when the test ends, depending on the op_type specified.\n\nSigned-off-by: David Coyle <david.coyle@intel.com>\n---\nv2:\n* Fixing typo in commit message (specified)\n\n .../cperf_test_pmd_cyclecount.c               | 33 +++++++++++++------\n 1 file changed, 23 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/app/test-crypto-perf/cperf_test_pmd_cyclecount.c b/app/test-crypto-perf/cperf_test_pmd_cyclecount.c\nindex 74371faa8..69f0943d1 100644\n--- a/app/test-crypto-perf/cperf_test_pmd_cyclecount.c\n+++ b/app/test-crypto-perf/cperf_test_pmd_cyclecount.c\n@@ -59,23 +59,36 @@ static const uint16_t iv_offset =\n static void\n cperf_pmd_cyclecount_test_free(struct cperf_pmd_cyclecount_ctx *ctx)\n {\n-\tif (ctx) {\n-\t\tif (ctx->sess) {\n+\tif (!ctx)\n+\t\treturn;\n+\n+\tif (ctx->sess) {\n+#ifdef RTE_LIBRTE_SECURITY\n+\t\tif (ctx->options->op_type == CPERF_PDCP ||\n+\t\t\t\tctx->options->op_type == CPERF_DOCSIS) {\n+\t\t\tstruct rte_security_ctx *sec_ctx =\n+\t\t\t\t(struct rte_security_ctx *)\n+\t\t\t\trte_cryptodev_get_sec_ctx(ctx->dev_id);\n+\t\t\trte_security_session_destroy(sec_ctx,\n+\t\t\t\t(struct rte_security_session *)ctx->sess);\n+\t\t} else\n+#endif\n+\t\t{\n \t\t\trte_cryptodev_sym_session_clear(ctx->dev_id, ctx->sess);\n \t\t\trte_cryptodev_sym_session_free(ctx->sess);\n \t\t}\n+\t}\n \n-\t\tif (ctx->pool)\n-\t\t\trte_mempool_free(ctx->pool);\n+\tif (ctx->pool)\n+\t\trte_mempool_free(ctx->pool);\n \n-\t\tif (ctx->ops)\n-\t\t\trte_free(ctx->ops);\n+\tif (ctx->ops)\n+\t\trte_free(ctx->ops);\n \n-\t\tif (ctx->ops_processed)\n-\t\t\trte_free(ctx->ops_processed);\n+\tif (ctx->ops_processed)\n+\t\trte_free(ctx->ops_processed);\n \n-\t\trte_free(ctx);\n-\t}\n+\trte_free(ctx);\n }\n \n void *\n",
    "prefixes": [
        "v2"
    ]
}