get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 140170,
    "url": "http://patchwork.dpdk.org/api/patches/140170/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240517074448.3146611-10-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": "<20240517074448.3146611-10-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240517074448.3146611-10-ndabilpuram@marvell.com",
    "date": "2024-05-17T07:44:48",
    "name": "[10/10] net/cnxk: define CPT HW result format for PMD API",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "4315fc876afd7dbd1840f3c7d630800824303255",
    "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/20240517074448.3146611-10-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 31944,
            "url": "http://patchwork.dpdk.org/api/series/31944/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31944",
            "date": "2024-05-17T07:44:39",
            "name": "[01/10] common/cnxk: sync VF root weight with kernel",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/31944/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/140170/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/140170/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 0252344048;\n\tFri, 17 May 2024 09:46:06 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2B03740A75;\n\tFri, 17 May 2024 09:45:25 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 00E3040A77\n for <dev@dpdk.org>; Fri, 17 May 2024 09:45:23 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id\n 44GLTc64006304\n for <dev@dpdk.org>; Fri, 17 May 2024 00:45:23 -0700",
            "from dc6wp-exch02.marvell.com ([4.21.29.225])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3y579bcykr-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 17 May 2024 00:45:23 -0700 (PDT)",
            "from DC6WP-EXCH02.marvell.com (10.76.176.209) by\n DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1544.4; Fri, 17 May 2024 00:45:22 -0700",
            "from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com\n (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend\n Transport; Fri, 17 May 2024 00:45:22 -0700",
            "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id D0C483F7085;\n Fri, 17 May 2024 00:45:19 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding:content-type; s=\n pfpt0220; bh=oxpj/Kn6ThZVf+noadIFV2S1wwYpBtRRPMTEMzZCnQ8=; b=jsH\n du2cTbOdcLYiQhyAOtcwFN2UjG843czZr8NSnDGFJyZSzz1GYN6b01fn7pHmCS2F\n kAyYGRROy7qPkM0gLOpPj7A086S58Ma3sKfYe0j9LX9fPw54kXiLpcbQ8bE9MtQO\n CTRXk7H15EP1uqdwAPf6aARokVUF1PDUIOpP6bdt62Wc7MAIM1TVrPmG4XyfeLkE\n xjYzGkRthb5cHxPBVsDLVqx8rsVx4ao48YuibQSuHB/3SXjiNha+bVm80cUqsbQh\n aL3vf2I+y+MhtG4V+CeU6w3ut/NVfDkxmjlkRvCFTElparCpYxwQJebTwEPNdNJw\n b+zEvETlxAPgkjR837w==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>, Harman Kalra <hkalra@marvell.com>",
        "CC": "<jerinj@marvell.com>, <dev@dpdk.org>, Srujana Challa <schalla@marvell.com>",
        "Subject": "[PATCH 10/10] net/cnxk: define CPT HW result format for PMD API",
        "Date": "Fri, 17 May 2024 13:14:48 +0530",
        "Message-ID": "<20240517074448.3146611-10-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20240517074448.3146611-1-ndabilpuram@marvell.com>",
        "References": "<20240517074448.3146611-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "xHt6s6KfoPDp-N1inoCZ-aijjS_JBC62",
        "X-Proofpoint-ORIG-GUID": "xHt6s6KfoPDp-N1inoCZ-aijjS_JBC62",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26\n definitions=2024-05-16_07,2024-05-15_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: Srujana Challa <schalla@marvell.com>\n\nDefines CPT HW result format for PMD API,\nrte_pmd_cnxk_inl_ipsec_res().\n\nSigned-off-by: Srujana Challa <schalla@marvell.com>\n---\n drivers/net/cnxk/cn10k_ethdev_sec.c |  4 ++--\n drivers/net/cnxk/rte_pmd_cnxk.h     | 28 ++++++++++++++++++++++++++--\n 2 files changed, 28 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c b/drivers/net/cnxk/cn10k_ethdev_sec.c\nindex eed4c29218..b8b0da5ea9 100644\n--- a/drivers/net/cnxk/cn10k_ethdev_sec.c\n+++ b/drivers/net/cnxk/cn10k_ethdev_sec.c\n@@ -1251,7 +1251,7 @@ rte_pmd_cnxk_hw_sa_write(void *device, struct rte_security_session *sess,\n \treturn 0;\n }\n \n-void *\n+union rte_pmd_cnxk_cpt_res_s *\n rte_pmd_cnxk_inl_ipsec_res(struct rte_mbuf *mbuf)\n {\n \tconst union nix_rx_parse_u *rx;\n@@ -1265,7 +1265,7 @@ rte_pmd_cnxk_inl_ipsec_res(struct rte_mbuf *mbuf)\n \trx = (const union nix_rx_parse_u *)(wqe + 8);\n \tdesc_size = (rx->desc_sizem1 + 1) * 16;\n \n-\t/* cpt_res_s sits after SG list at 16B aligned address */\n+\t/* rte_pmd_cnxk_cpt_res_s sits after SG list at 16B aligned address */\n \treturn (void *)(wqe + 64 + desc_size);\n }\n \ndiff --git a/drivers/net/cnxk/rte_pmd_cnxk.h b/drivers/net/cnxk/rte_pmd_cnxk.h\nindex 43f2a7ed9b..67c8329abd 100644\n--- a/drivers/net/cnxk/rte_pmd_cnxk.h\n+++ b/drivers/net/cnxk/rte_pmd_cnxk.h\n@@ -453,6 +453,30 @@ union rte_pmd_cnxk_ipsec_hw_sa {\n \tstruct rte_pmd_cnxk_ipsec_outb_sa outb;\n };\n \n+/** CPT HW result format */\n+union rte_pmd_cnxk_cpt_res_s {\n+\tstruct rte_pmd_cpt_cn10k_res_s {\n+\t\tuint64_t compcode : 7;\n+\t\tuint64_t doneint : 1;\n+\t\tuint64_t uc_compcode : 8;\n+\t\tuint64_t rlen : 16;\n+\t\tuint64_t spi : 32;\n+\n+\t\tuint64_t esn;\n+\t} cn10k;\n+\n+\tstruct rte_pmd_cpt_cn9k_res_s {\n+\t\tuint64_t compcode : 8;\n+\t\tuint64_t uc_compcode : 8;\n+\t\tuint64_t doneint : 1;\n+\t\tuint64_t reserved_17_63 : 47;\n+\n+\t\tuint64_t reserved_64_127;\n+\t} cn9k;\n+\n+\tuint64_t u64[2];\n+};\n+\n /**\n  * Read HW SA context from session.\n  *\n@@ -501,9 +525,9 @@ int rte_pmd_cnxk_hw_sa_write(void *device, struct rte_security_session *sess,\n  *   Pointer to packet that was just received and was processed with Inline IPsec.\n  *\n  * @return\n- *   - Pointer to mbuf location where CPT result info is stored on success.\n+ *   - Pointer to mbuf location where `union rte_pmd_cnxk_cpt_res_s` is stored on success.\n  *   - NULL on failure.\n  */\n __rte_experimental\n-void *rte_pmd_cnxk_inl_ipsec_res(struct rte_mbuf *mbuf);\n+union rte_pmd_cnxk_cpt_res_s *rte_pmd_cnxk_inl_ipsec_res(struct rte_mbuf *mbuf);\n #endif /* _PMD_CNXK_H_ */\n",
    "prefixes": [
        "10/10"
    ]
}