get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131782,
    "url": "http://patchwork.dpdk.org/api/patches/131782/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230921114820.2526810-4-ktejasree@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230921114820.2526810-4-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230921114820.2526810-4-ktejasree@marvell.com",
    "date": "2023-09-21T11:48:08",
    "name": "[03/15] common/cnxk: set cipher key only for non-null cipher",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "bc0da2192e021fcde33b8e1408e951093248c651",
    "submitter": {
        "id": 1789,
        "url": "http://patchwork.dpdk.org/api/people/1789/?format=api",
        "name": "Tejasree Kondoj",
        "email": "ktejasree@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patchwork.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230921114820.2526810-4-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 29589,
            "url": "http://patchwork.dpdk.org/api/series/29589/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29589",
            "date": "2023-09-21T11:48:05",
            "name": "fixes and improvements to cnxk crypto PMD",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/29589/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/131782/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/131782/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 80A0A425FF;\n\tThu, 21 Sep 2023 13:48:45 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D540140E7C;\n\tThu, 21 Sep 2023 13:48:35 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 82F4840E78\n for <dev@dpdk.org>; Thu, 21 Sep 2023 13:48:34 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 38L77TDD001448 for <dev@dpdk.org>; Thu, 21 Sep 2023 04:48:33 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3t7u4ddv8h-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 21 Sep 2023 04:48:33 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 21 Sep 2023 04:48:31 -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.48 via Frontend\n Transport; Thu, 21 Sep 2023 04:48:31 -0700",
            "from hyd1554.marvell.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 6B1965B693B;\n Thu, 21 Sep 2023 04:48:29 -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=pfpt0220;\n bh=Wa1WRyViqLBj+NdawijHlaFQjCxmKRroI0wCSi+LrmM=;\n b=L6Xq/vE6szzLfsTdUQQeOFRWfjcnUotGajjSqzCxm7I1hA54qTn6OtnoRze+x2+xVTwT\n vAj6I6LDYbMHVBGnK10Hu4LBcErVhRvvcfqbNh+B61B6rIPpVAmho5ash+v6Zn38D04y\n mkMruabVtvRmHHi5HHUo30WcF4Efmi7BBcrVql0yXkcHRye4SzBu7fXkisbTMWOhit3b\n HSN3/VabYT1xw+9ksrtZi0L8a1i9/+mGMaayvsx+nLzsJP26HmSG4NNBXV4x6caI3/Y7\n L0LJkkgr3ZZInJUgEpPbOQb4hDC83R3Sm21JCPEH5R+P8s+9JylWnIsEjO2aOjOUO/as vw==",
        "From": "Tejasree Kondoj <ktejasree@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>",
        "CC": "Anoob Joseph <anoobj@marvell.com>, Aakash Sasidharan\n <asasidharan@marvell.com>, Gowrishankar Muthukrishnan\n <gmuthukrishn@marvell.com>,\n Vidya Sagar Velumuri <vvelumuri@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH 03/15] common/cnxk: set cipher key only for non-null cipher",
        "Date": "Thu, 21 Sep 2023 17:18:08 +0530",
        "Message-ID": "<20230921114820.2526810-4-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230921114820.2526810-1-ktejasree@marvell.com>",
        "References": "<20230921114820.2526810-1-ktejasree@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "Dn264rS8A5dfYm5B7R2NbP8FO3y2Ga1K",
        "X-Proofpoint-GUID": "Dn264rS8A5dfYm5B7R2NbP8FO3y2Ga1K",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-09-21_09,2023-09-21_01,2023-05-22_02",
        "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": "From: Anoob Joseph <anoobj@marvell.com>\n\nSet cipher key only for non-NULL cipher algorithms only.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\n---\n drivers/common/cnxk/roc_se.c | 11 ++++-------\n 1 file changed, 4 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_se.c b/drivers/common/cnxk/roc_se.c\nindex 2662297315..6ced4ef789 100644\n--- a/drivers/common/cnxk/roc_se.c\n+++ b/drivers/common/cnxk/roc_se.c\n@@ -58,9 +58,6 @@ cpt_ciph_type_set(roc_se_cipher_type type, struct roc_se_ctx *ctx, uint16_t key_\n \tint fc_type = 0;\n \n \tswitch (type) {\n-\tcase ROC_SE_PASSTHROUGH:\n-\t\tfc_type = ROC_SE_FC_GEN;\n-\t\tbreak;\n \tcase ROC_SE_DES3_CBC:\n \tcase ROC_SE_DES3_ECB:\n \tcase ROC_SE_DES_DOCSISBPI:\n@@ -526,6 +523,10 @@ roc_se_ciph_key_set(struct roc_se_ctx *se_ctx, roc_se_cipher_type type, const ui\n \tuint8_t *ci_key;\n \tint i, ret;\n \n+\t/* For NULL cipher, no processing required. */\n+\tif (type == ROC_SE_PASSTHROUGH)\n+\t\treturn 0;\n+\n \tzs_ch_ctx = &se_ctx->se_ctx.zs_ch_ctx;\n \n \tif (roc_model_is_cn9k()) {\n@@ -555,10 +556,6 @@ roc_se_ciph_key_set(struct roc_se_ctx *se_ctx, roc_se_cipher_type type, const ui\n \t}\n \n \tswitch (type) {\n-\tcase ROC_SE_PASSTHROUGH:\n-\t\tse_ctx->enc_cipher = 0;\n-\t\tfctx->enc.enc_cipher = 0;\n-\t\tgoto success;\n \tcase ROC_SE_DES3_CBC:\n \t\t/* CPT performs DES using 3DES with the 8B DES-key\n \t\t * replicated 2 more times to match the 24B 3DES-key.\n",
    "prefixes": [
        "03/15"
    ]
}