get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 120202,
    "url": "http://patchwork.dpdk.org/api/patches/120202/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221128095442.3185112-6-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": "<20221128095442.3185112-6-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221128095442.3185112-6-ndabilpuram@marvell.com",
    "date": "2022-11-28T09:54:37",
    "name": "[06/11] net/cnxk: fix packet type for IPv6 packets post decryption",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4658d786f9d2e03f7f31d5a5e0d34be443c568de",
    "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/20221128095442.3185112-6-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 25906,
            "url": "http://patchwork.dpdk.org/api/series/25906/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25906",
            "date": "2022-11-28T09:54:32",
            "name": "[01/11] common/cnxk: free pending sqe buffers",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/25906/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/120202/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/120202/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 17AF9A00C3;\n\tMon, 28 Nov 2022 10:55:29 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9DA4542D2F;\n\tMon, 28 Nov 2022 10:55:09 +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 245BE42D1F\n for <dev@dpdk.org>; Mon, 28 Nov 2022 10:55:07 +0100 (CET)",
            "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 2AS5ihPN025017 for <dev@dpdk.org>; Mon, 28 Nov 2022 01:55:07 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m4q3srsfc-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 28 Nov 2022 01:55:07 -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 Mon, 28 Nov 2022 01:55:05 -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; Mon, 28 Nov 2022 01:55:05 -0800",
            "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 7B5B53F707C;\n Mon, 28 Nov 2022 01:55:03 -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-transfer-encoding : content-type; s=pfpt0220;\n bh=cbTjwJuiFGPFAsv8/krMW0nnEYlpbqc5XFzdGkXc/rE=;\n b=EnXw1YfxcaFbkbUM/7VIzXzW7QW+Tpf0mYtOTs4jdHIsPFQAONnyGRLJHRqb32VBCHpZ\n lYvaGfCaSl5dcFpnMVoPr99AR9mwL6Q2Q3olp7/J6DmxpCNF5FE/MksAba3rUeB2ypLV\n 3Jft8RF4hPPr6S8Pm7Jl4Y/scyIKCAMd1wgoVjR2Eoi7Rdx9NmYteU8uB2mIsssLw4pQ\n egKIDK6UIRMXayy6J/SDjvmBYpQBN4bTGt/bxix4FaB1rqTwCFXTj1pEA/hwhehXmQor\n HUU7Ss5hryGJZdUfYDKqAJJ8IxY/47LBODPIz5KpWbu9WeGQvhAyJ8oTE0e4HW2sHlXg 8A==",
        "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>",
        "CC": "<jerinj@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH 06/11] net/cnxk: fix packet type for IPv6 packets post\n decryption",
        "Date": "Mon, 28 Nov 2022 15:24:37 +0530",
        "Message-ID": "<20221128095442.3185112-6-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221128095442.3185112-1-ndabilpuram@marvell.com>",
        "References": "<20221128095442.3185112-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "xvHwT_FpMIkog3ubXCKyF8XHRCSTbH6T",
        "X-Proofpoint-GUID": "xvHwT_FpMIkog3ubXCKyF8XHRCSTbH6T",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1\n definitions=2022-11-28_07,2022-11-25_01,2022-06-22_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": "Update ptype properly for IPv6 packets post inline decryption.\nFixes: 4440eb88ddfc (\"net/cnxk: use full context IPsec structures\")\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n drivers/net/cnxk/cn9k_rx.h | 17 +++++++----------\n 1 file changed, 7 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/drivers/net/cnxk/cn9k_rx.h b/drivers/net/cnxk/cn9k_rx.h\nindex 1a9f920b41..0e23609df5 100644\n--- a/drivers/net/cnxk/cn9k_rx.h\n+++ b/drivers/net/cnxk/cn9k_rx.h\n@@ -260,8 +260,8 @@ nix_rx_sec_mbuf_err_update(const union nix_rx_parse_u *rx, uint16_t res,\n }\n \n static __rte_always_inline uint64_t\n-nix_rx_sec_mbuf_update(const struct nix_cqe_hdr_s *cq, struct rte_mbuf *m,\n-\t\t       uintptr_t sa_base, uint64_t *rearm_val, uint16_t *len)\n+nix_rx_sec_mbuf_update(const struct nix_cqe_hdr_s *cq, struct rte_mbuf *m, uintptr_t sa_base,\n+\t\t       uint64_t *rearm_val, uint16_t *len, uint32_t packet_type)\n {\n \tuintptr_t res_sg0 = ((uintptr_t)cq + ROC_ONF_IPSEC_INB_RES_OFF - 8);\n \tconst union nix_rx_parse_u *rx =\n@@ -315,15 +315,18 @@ nix_rx_sec_mbuf_update(const struct nix_cqe_hdr_s *cq, struct rte_mbuf *m,\n \tip = (struct rte_ipv4_hdr *)(data + ROC_ONF_IPSEC_INB_SPI_SEQ_SZ +\n \t\t\t\t     ROC_ONF_IPSEC_INB_MAX_L2_SZ);\n \n+\tpacket_type = (packet_type & ~(RTE_PTYPE_L3_MASK | RTE_PTYPE_TUNNEL_MASK));\n \tif (((ip->version_ihl & 0xf0) >> RTE_IPV4_IHL_MULTIPLIER) ==\n \t    IPVERSION) {\n \t\t*len = rte_be_to_cpu_16(ip->total_length) + lcptr;\n+\t\tpacket_type |= RTE_PTYPE_L3_IPV4_EXT_UNKNOWN;\n \t} else {\n \t\tPLT_ASSERT(((ip->version_ihl & 0xf0) >>\n \t\t\t    RTE_IPV4_IHL_MULTIPLIER) == 6);\n \t\tip6 = (struct rte_ipv6_hdr *)ip;\n \t\t*len = rte_be_to_cpu_16(ip6->payload_len) +\n \t\t       sizeof(struct rte_ipv6_hdr) + lcptr;\n+\t\tpacket_type |= RTE_PTYPE_L3_IPV6_EXT_UNKNOWN;\n \t}\n \n \t/* Update data offset */\n@@ -332,6 +335,7 @@ nix_rx_sec_mbuf_update(const struct nix_cqe_hdr_s *cq, struct rte_mbuf *m,\n \t*rearm_val = *rearm_val & ~(BIT_ULL(16) - 1);\n \t*rearm_val |= data_off;\n \n+\tm->packet_type = packet_type;\n \treturn RTE_MBUF_F_RX_SEC_OFFLOAD;\n }\n \n@@ -363,14 +367,7 @@ cn9k_nix_cqe_to_mbuf(const struct nix_cqe_hdr_s *cq, const uint32_t tag,\n \t\t/* Get SA Base from lookup mem */\n \t\tsa_base = cnxk_nix_sa_base_get(port, lookup_mem);\n \n-\t\tol_flags |= nix_rx_sec_mbuf_update(cq, mbuf, sa_base, &val,\n-\t\t\t\t\t\t   &len);\n-\n-\t\t/* Only Tunnel inner IPv4 is supported */\n-\t\tpacket_type = (packet_type &\n-\t\t\t       ~(RTE_PTYPE_L3_MASK | RTE_PTYPE_TUNNEL_MASK));\n-\t\tpacket_type |= RTE_PTYPE_L3_IPV4_EXT_UNKNOWN;\n-\t\tmbuf->packet_type = packet_type;\n+\t\tol_flags |= nix_rx_sec_mbuf_update(cq, mbuf, sa_base, &val, &len, packet_type);\n \t\tgoto skip_parse;\n \t}\n \n",
    "prefixes": [
        "06/11"
    ]
}