get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 108070,
    "url": "https://patches.dpdk.org/api/patches/108070/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220222193512.19292-20-ndabilpuram@marvell.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": "<20220222193512.19292-20-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220222193512.19292-20-ndabilpuram@marvell.com",
    "date": "2022-02-22T19:35:11",
    "name": "[v2,20/21] net/cnxk: add option to override outbound inline SA IV",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5effe06984632ac90ddf4c2301dfc77c1e723ba5",
    "submitter": {
        "id": 1202,
        "url": "https://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220222193512.19292-20-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 21801,
            "url": "https://patches.dpdk.org/api/series/21801/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=21801",
            "date": "2022-02-22T19:34:52",
            "name": "[v2,01/21] common/cnxk: increase SMQ resource count",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/21801/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/108070/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/108070/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 F3D98A034C;\n\tTue, 22 Feb 2022 20:37:14 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3EFF2411EE;\n\tTue, 22 Feb 2022 20:36:19 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id ECCA7411E1\n for <dev@dpdk.org>; Tue, 22 Feb 2022 20:36:16 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 21MItcEU019938\n for <dev@dpdk.org>; Tue, 22 Feb 2022 11:36:16 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ecwaxar5x-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 22 Feb 2022 11:36:16 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Tue, 22 Feb 2022 11:36:14 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Tue, 22 Feb 2022 11:36:14 -0800",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id B0B993F7092;\n Tue, 22 Feb 2022 11:36:12 -0800 (PST)"
        ],
        "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-type; s=pfpt0220; bh=uc4wiWUV/JEOVxMpcmZ4qOyJniB5qqn0LMQnS0ZpO9I=;\n b=YgaRsGSo92ijx4SRD3B0thZJgr2Epjqdp+/kMl/8VPtNfmNzp1xI4zAWx9hXYzv0OBti\n JihfXwrzL41LRnLM8MvA5TEMJjVysnEGGDQBm/r25sULajLf8j7LFyN+QxHokbDtkGrt\n XtL7R+UQf1NXQIE3/J8CrvAiBN8CYt+WzDct3WB4MhZXCQsQr+fy7LakyEF3iGB2f7Ms\n AIHjk3/lSqvV3ZHXUzgPqnsL+aktYilJTHcVO+dxvdd78JS8rPCP4TQfaShaTyZV1yEE\n S6BebLYbIuQbSiUChbEKYlKwFAhlsHX/GlKIZIMkhg+JTo5csOtl8AGp8NpJhMg3Ze/k 7g==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "<jerinj@marvell.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, \"Kiran\n Kumar K\" <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>,\n Satha Rao <skoteshwar@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "Subject": "[PATCH v2 20/21] net/cnxk: add option to override outbound inline SA\n IV",
        "Date": "Wed, 23 Feb 2022 01:05:11 +0530",
        "Message-ID": "<20220222193512.19292-20-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20220222193512.19292-1-ndabilpuram@marvell.com>",
        "References": "<20220207072932.22409-1-ndabilpuram@marvell.com>\n <20220222193512.19292-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "yn027HTr6Tky9w3hLqK4YELBBS7XJtBd",
        "X-Proofpoint-ORIG-GUID": "yn027HTr6Tky9w3hLqK4YELBBS7XJtBd",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2022-02-22_06,2022-02-21_02,2021-12-02_01",
        "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 option to override outbound inline SA IV for debug\npurposes via environment variable. User can set env variable as:\nexport CN10K_ETH_SEC_IV_OVR=\"0x0, 0x0,...\"\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n drivers/net/cnxk/cn10k_ethdev_sec.c | 62 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 62 insertions(+)",
    "diff": "diff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c b/drivers/net/cnxk/cn10k_ethdev_sec.c\nindex a2a53c1..a514345 100644\n--- a/drivers/net/cnxk/cn10k_ethdev_sec.c\n+++ b/drivers/net/cnxk/cn10k_ethdev_sec.c\n@@ -252,6 +252,63 @@ cn10k_eth_sec_sso_work_cb(uint64_t *gw, void *args)\n \tcnxk_pktmbuf_free_no_cache(mbuf);\n }\n \n+static void\n+outb_dbg_iv_update(struct roc_ot_ipsec_outb_sa *outb_sa, const char *__iv_str)\n+{\n+\tuint8_t *iv_dbg = outb_sa->iv.iv_dbg;\n+\tchar *iv_str = strdup(__iv_str);\n+\tchar *iv_b = NULL, len = 16;\n+\tchar *save;\n+\tint i;\n+\n+\tif (!iv_str)\n+\t\treturn;\n+\n+\tif (outb_sa->w2.s.enc_type == ROC_IE_OT_SA_ENC_AES_GCM ||\n+\t    outb_sa->w2.s.enc_type == ROC_IE_OT_SA_ENC_AES_CTR ||\n+\t    outb_sa->w2.s.enc_type == ROC_IE_OT_SA_ENC_AES_CCM ||\n+\t    outb_sa->w2.s.auth_type == ROC_IE_OT_SA_AUTH_AES_GMAC) {\n+\t\tmemset(outb_sa->iv.s.iv_dbg1, 0, sizeof(outb_sa->iv.s.iv_dbg1));\n+\t\tmemset(outb_sa->iv.s.iv_dbg2, 0, sizeof(outb_sa->iv.s.iv_dbg2));\n+\n+\t\tiv_dbg = outb_sa->iv.s.iv_dbg1;\n+\t\tfor (i = 0; i < 4; i++) {\n+\t\t\tiv_b = strtok_r(i ? NULL : iv_str, \",\", &save);\n+\t\t\tif (!iv_b)\n+\t\t\t\tbreak;\n+\t\t\tiv_dbg[i] = strtoul(iv_b, NULL, 0);\n+\t\t}\n+\t\t*(uint32_t *)iv_dbg = rte_be_to_cpu_32(*(uint32_t *)iv_dbg);\n+\n+\t\tiv_dbg = outb_sa->iv.s.iv_dbg2;\n+\t\tfor (i = 0; i < 4; i++) {\n+\t\t\tiv_b = strtok_r(NULL, \",\", &save);\n+\t\t\tif (!iv_b)\n+\t\t\t\tbreak;\n+\t\t\tiv_dbg[i] = strtoul(iv_b, NULL, 0);\n+\t\t}\n+\t\t*(uint32_t *)iv_dbg = rte_be_to_cpu_32(*(uint32_t *)iv_dbg);\n+\n+\t} else {\n+\t\tiv_dbg = outb_sa->iv.iv_dbg;\n+\t\tmemset(iv_dbg, 0, sizeof(outb_sa->iv.iv_dbg));\n+\n+\t\tfor (i = 0; i < len; i++) {\n+\t\t\tiv_b = strtok_r(i ? NULL : iv_str, \",\", &save);\n+\t\t\tif (!iv_b)\n+\t\t\t\tbreak;\n+\t\t\tiv_dbg[i] = strtoul(iv_b, NULL, 0);\n+\t\t}\n+\t\t*(uint64_t *)iv_dbg = rte_be_to_cpu_64(*(uint64_t *)iv_dbg);\n+\t\t*(uint64_t *)&iv_dbg[8] =\n+\t\t\trte_be_to_cpu_64(*(uint64_t *)&iv_dbg[8]);\n+\t}\n+\n+\t/* Update source of IV */\n+\toutb_sa->w2.s.iv_src = ROC_IE_OT_SA_IV_SRC_FROM_SA;\n+\tfree(iv_str);\n+}\n+\n static int\n cn10k_eth_sec_session_create(void *device,\n \t\t\t     struct rte_security_session_conf *conf,\n@@ -390,6 +447,7 @@ cn10k_eth_sec_session_create(void *device,\n \t\tstruct cn10k_outb_priv_data *outb_priv;\n \t\tstruct cnxk_ipsec_outb_rlens *rlens;\n \t\tuint64_t sa_base = dev->outb.sa_base;\n+\t\tconst char *iv_str;\n \t\tuint32_t sa_idx;\n \n \t\tPLT_STATIC_ASSERT(sizeof(struct cn10k_outb_priv_data) <\n@@ -416,6 +474,10 @@ cn10k_eth_sec_session_create(void *device,\n \t\t\tgoto mempool_put;\n \t\t}\n \n+\t\tiv_str = getenv(\"CN10K_ETH_SEC_IV_OVR\");\n+\t\tif (iv_str)\n+\t\t\toutb_dbg_iv_update(outb_sa_dptr, iv_str);\n+\n \t\t/* Save userdata */\n \t\toutb_priv->userdata = conf->userdata;\n \t\toutb_priv->sa_idx = sa_idx;\n",
    "prefixes": [
        "v2",
        "20/21"
    ]
}