get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 137027,
    "url": "http://patches.dpdk.org/api/patches/137027/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240222110232.2342903-14-ndabilpuram@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20240222110232.2342903-14-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240222110232.2342903-14-ndabilpuram@marvell.com",
    "date": "2024-02-22T11:02:32",
    "name": "[v4,14/14] net/cnxk: reset mbuf fields in multi-seg Tx path",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "fd98b159edd96a421642b0e6621394cd31b7702a",
    "submitter": {
        "id": 1202,
        "url": "http://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240222110232.2342903-14-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 31180,
            "url": "http://patches.dpdk.org/api/series/31180/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31180",
            "date": "2024-02-22T11:02:19",
            "name": "[v4,01/14] common/cnxk: remove cn9k Inline IPsec FP opcode defines",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/31180/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/137027/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/137027/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 D72C843B74;\n\tThu, 22 Feb 2024 12:09:24 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5CD8E40281;\n\tThu, 22 Feb 2024 12:09:02 +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 4F1D940EDC\n for <dev@dpdk.org>; Thu, 22 Feb 2024 12:08:56 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 41M9BLbX021847 for <dev@dpdk.org>; Thu, 22 Feb 2024 03:08:55 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3we3dw8at4-14\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 22 Feb 2024 03:08:55 -0800 (PST)",
            "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.48;\n Thu, 22 Feb 2024 03:03: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.48 via Frontend\n Transport; Thu, 22 Feb 2024 03:03:14 -0800",
            "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id CCB633F71DD;\n Thu, 22 Feb 2024 03:03:12 -0800 (PST)"
        ],
        "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=RQ3xOtKML/uoMnSJWUzyVjyiK/ZrER7+usht+w+yeiw=; b=lXD\n NvJlESkQokWU1x7ZeUW8alBe+rhWGF4nrPXAmtD8yqPoLhPxKV3rVzA5LRhDlkbe\n TCX4+0TK958YtNAQdcfn2BauJUuLdjRcT8nkMHKRsypuI+u3ypTdzN4rz5qoyEiV\n CmKpHY9qcaOYvNAQTC8tJHL1Q+KiUwIJO5ONm+EKK58iRAlAKLazKeON9LKq60VM\n iqYURZkAx6Tj/07a0/dO2Abat6ghh3+brC969ybIZpdUJNjBbx3BHmy+yll+uxuk\n x8m6fiehum/us+i5HqTbWUA1C6pDG+ruHFDv2IygpFW6GrVPQ18Xr8X2ekgsqm6C\n 5XXDIfwfLJWmWMJi4dA==",
        "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": "<dev@dpdk.org>, Rahul Bhansali <rbhansali@marvell.com>",
        "Subject": "[PATCH v4 14/14] net/cnxk: reset mbuf fields in multi-seg Tx path",
        "Date": "Thu, 22 Feb 2024 16:32:32 +0530",
        "Message-ID": "<20240222110232.2342903-14-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20240222110232.2342903-1-ndabilpuram@marvell.com>",
        "References": "<20240208085956.1741174-1-ndabilpuram@marvell.com>\n <20240222110232.2342903-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "hSuplaOgsEWPXbra3nkTYmKgTDp61eHU",
        "X-Proofpoint-ORIG-GUID": "hSuplaOgsEWPXbra3nkTYmKgTDp61eHU",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2024-02-22_09,2024-02-22_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: Rahul Bhansali <rbhansali@marvell.com>\n\nCurrently in debug mode when a buffer is allocated in SW,\nnb_segs will have invalid values as it didn't come from driver\nRx path. Hence reset mbuf next and nb_segs fields in multi-seg Tx path.\n\nFixes: 3626d5195d49 (\"net/cnxk: add multi-segment Tx for CN10K\")\n\nSigned-off-by: Rahul Bhansali <rbhansali@marvell.com>\n---\n drivers/net/cnxk/cn10k_tx.h |  2 ++\n drivers/net/cnxk/cn9k_tx.h  | 20 ++++++++++++++++++++\n 2 files changed, 22 insertions(+)",
    "diff": "diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h\nindex ad4cbf7ffa..94bfebf246 100644\n--- a/drivers/net/cnxk/cn10k_tx.h\n+++ b/drivers/net/cnxk/cn10k_tx.h\n@@ -1324,6 +1324,7 @@ cn10k_nix_prepare_mseg(struct cn10k_eth_txq *txq,\n \tnb_segs = m->nb_segs - 1;\n \tm_next = m->next;\n \tm->next = NULL;\n+\tm->nb_segs = 1;\n \tslist = &cmd[3 + off + 1];\n \n \tcookie = RTE_MBUF_DIRECT(m) ? m : rte_mbuf_from_indirect(m);\n@@ -1869,6 +1870,7 @@ cn10k_nix_prepare_mseg_vec_list(struct rte_mbuf *m, uint64_t *cmd,\n \tnb_segs = m->nb_segs - 1;\n \tm_next = m->next;\n \tm->next = NULL;\n+\tm->nb_segs = 1;\n \tm = m_next;\n \t/* Fill mbuf segments */\n \tdo {\ndiff --git a/drivers/net/cnxk/cn9k_tx.h b/drivers/net/cnxk/cn9k_tx.h\nindex e6512471b9..fb5e8c5f56 100644\n--- a/drivers/net/cnxk/cn9k_tx.h\n+++ b/drivers/net/cnxk/cn9k_tx.h\n@@ -643,6 +643,10 @@ cn9k_nix_prepare_mseg(struct cn9k_eth_txq *txq,\n \trte_io_wmb();\n #else\n \tRTE_SET_USED(cookie);\n+#endif\n+#ifdef RTE_ENABLE_ASSERT\n+\tm->next = NULL;\n+\tm->nb_segs = 1;\n #endif\n \tm = m_next;\n \tif (!m)\n@@ -679,6 +683,9 @@ cn9k_nix_prepare_mseg(struct cn9k_eth_txq *txq,\n \t\t\tsg_u = sg->u;\n \t\t\tslist++;\n \t\t}\n+#ifdef RTE_ENABLE_ASSERT\n+\t\tm->next = NULL;\n+#endif\n \t\tm = m_next;\n \t} while (nb_segs);\n \n@@ -692,6 +699,9 @@ cn9k_nix_prepare_mseg(struct cn9k_eth_txq *txq,\n \tsegdw += (off >> 1) + 1 + !!(flags & NIX_TX_OFFLOAD_TSTAMP_F);\n \tsend_hdr->w0.sizem1 = segdw - 1;\n \n+#ifdef RTE_ENABLE_ASSERT\n+\trte_io_wmb();\n+#endif\n \treturn segdw;\n }\n \n@@ -908,6 +918,10 @@ cn9k_nix_prepare_mseg_vec_list(struct cn9k_eth_txq *txq,\n \tRTE_SET_USED(cookie);\n #endif\n \n+#ifdef RTE_ENABLE_ASSERT\n+\tm->next = NULL;\n+\tm->nb_segs = 1;\n+#endif\n \tm = m_next;\n \t/* Fill mbuf segments */\n \tdo {\n@@ -938,6 +952,9 @@ cn9k_nix_prepare_mseg_vec_list(struct cn9k_eth_txq *txq,\n \t\t\tsg_u = sg->u;\n \t\t\tslist++;\n \t\t}\n+#ifdef RTE_ENABLE_ASSERT\n+\t\tm->next = NULL;\n+#endif\n \t\tm = m_next;\n \t} while (nb_segs);\n \n@@ -953,6 +970,9 @@ cn9k_nix_prepare_mseg_vec_list(struct cn9k_eth_txq *txq,\n \t\t !!(flags & NIX_TX_OFFLOAD_TSTAMP_F);\n \tsend_hdr->w0.sizem1 = segdw - 1;\n \n+#ifdef RTE_ENABLE_ASSERT\n+\trte_io_wmb();\n+#endif\n \treturn segdw;\n }\n \n",
    "prefixes": [
        "v4",
        "14/14"
    ]
}