get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 106950,
    "url": "http://patchwork.dpdk.org/api/patches/106950/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220207072932.22409-20-ndabilpuram@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": "<20220207072932.22409-20-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220207072932.22409-20-ndabilpuram@marvell.com",
    "date": "2022-02-07T07:29:32",
    "name": "[20/20] net/cnxk: add option to override outbound inline sa iv",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "5effe06984632ac90ddf4c2301dfc77c1e723ba5",
    "submitter": {
        "id": 1202,
        "url": "http://patchwork.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patchwork.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220207072932.22409-20-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 21483,
            "url": "http://patchwork.dpdk.org/api/series/21483/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=21483",
            "date": "2022-02-07T07:29:13",
            "name": "[01/20] common/cnxk: increase resource count for bitmap alloc",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/21483/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/106950/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/106950/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 36A63A034F;\n\tMon,  7 Feb 2022 08:32:11 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 234744114F;\n\tMon,  7 Feb 2022 08:30:47 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 7C9ED41141\n for <dev@dpdk.org>; Mon,  7 Feb 2022 08:30:45 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 216MnxOv021550\n for <dev@dpdk.org>; Sun, 6 Feb 2022 23:30:44 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e1smr4p77-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Sun, 06 Feb 2022 23:30:44 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Sun, 6 Feb 2022 23:30:42 -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; Sun, 6 Feb 2022 23:30:42 -0800",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 5176A3F704F;\n Sun,  6 Feb 2022 23:30:40 -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=RM2MHhMTJPnT9zFYJI5vHoHSUQVxP1OewpNInXVMxRg=;\n b=QEd+DOjL6QDGbiN16rAyE4V54ME0byF5ZUiOJlDjVB0IQY1AuwC/iZcJFVWN/PuGc+uy\n rZ/5z8w5qY7RO5Oy5O4AOc4P/i+HF+ThCnLCvutXkIfCOwbiMg2wZx403hRxqnqAqp51\n s/igu7lpEgMf1vkz4w1wxH0fvkaQOugpWA175HKkxVyJtCEBEMU7DuUWWtSZAkHDFlS5\n JhCB6Pr8N66taL4Ff9VtocjN9DF4/9EhREwOmsiDhePm6rMVecNyb1CZypUTpS1Cx0xC\n QW0hgbYZmoduIkdmtz8i8pZbyYOpE8vmJ6Pm7Y1AUJWtEFuMhbyM9EqwlD9VFVwUfBln Pw==",
        "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 20/20] net/cnxk: add option to override outbound inline sa iv",
        "Date": "Mon, 7 Feb 2022 12:59:32 +0530",
        "Message-ID": "<20220207072932.22409-20-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20220207072932.22409-1-ndabilpuram@marvell.com>",
        "References": "<20220207072932.22409-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "Simlx9mXOh1RoiCaSAAL7_mesj-U4ds_",
        "X-Proofpoint-ORIG-GUID": "Simlx9mXOh1RoiCaSAAL7_mesj-U4ds_",
        "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-07_02,2022-02-03_01,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": [
        "20/20"
    ]
}