Show a patch.

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

{
    "id": 74507,
    "url": "https://patches.dpdk.org/api/patches/74507/?format=api",
    "web_url": "https://patches.dpdk.org/patch/74507/",
    "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"
    },
    "msgid": "<20200720153909.18552-1-david.coyle@intel.com>",
    "date": "2020-07-20T15:39:09",
    "name": "[v1] app/crypto-perf: support security protocol in PMDCC mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "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": "akhil.goyal@nxp.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74507/mbox/",
    "series": [
        {
            "id": 11178,
            "url": "https://patches.dpdk.org/api/series/11178/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11178",
            "date": "2020-07-20T15:39:09",
            "name": "[v1] app/crypto-perf: support security protocol in PMDCC mode",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11178/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74507/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/74507/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9688\"; a=\"137427591\"",
            "E=Sophos;i=\"5.75,375,1589266800\"; d=\"scan'208\";a=\"137427591\"",
            "E=Sophos;i=\"5.75,375,1589266800\"; d=\"scan'208\";a=\"327575329\""
        ],
        "From": "David Coyle <david.coyle@intel.com>",
        "IronPort-SDR": [
            "\n adCe6AdaJtASmjPxi/L4BFFOH6t9NT6rtOJh43TtMOa4pvKQm5qJEDnnuBsfH25xXh2qbUqVWg\n TasK1YOvQeoQ==",
            "\n VO7iv89gjeALDETjOnSI8sSMZ1v5mgJwMPyhxFB0UgQh1nLpb5FABg/4oiYJFQQ5HD8i2zotaM\n VYcD9YhgPLLw=="
        ],
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-ExtLoop1": "1",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Message-Id": "<20200720153909.18552-1-david.coyle@intel.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id CC8B5A0527;\n\tMon, 20 Jul 2020 18:03:49 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8ADD31BFBD;\n\tMon, 20 Jul 2020 18:03:49 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by dpdk.org (Postfix) with ESMTP id 7AC011BFBB\n for <dev@dpdk.org>; Mon, 20 Jul 2020 18:03:47 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jul 2020 09:03:46 -0700",
            "from silpixa00399912.ir.intel.com (HELO\n silpixa00399912.ger.corp.intel.com) ([10.237.223.64])\n by orsmga007.jf.intel.com with ESMTP; 20 Jul 2020 09:03:44 -0700"
        ],
        "X-Mailer": "git-send-email 2.17.1",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH v1] app/crypto-perf: support security protocol in\n\tPMDCC mode",
        "Precedence": "list",
        "Date": "Mon, 20 Jul 2020 16:39:09 +0100",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Amp-File-Uploaded": "False",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "dev@dpdk.org, brendan.ryan@intel.com, mairtin.oloingsigh@intel.com,\n David Coyle <david.coyle@intel.com>",
        "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-Post": "<mailto:dev@dpdk.org>",
        "To": "akhil.goyal@nxp.com, declan.doherty@intel.com,\n pablo.de.lara.guarch@intel.com, fiona.trahe@intel.com",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "Errors-To": "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 specificed.\n\nSigned-off-by: David Coyle <david.coyle@intel.com>\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": [
        "v1"
    ]
}