Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/118141/?format=api
https://patches.dpdk.org/api/patches/118141/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221013114156.996517-3-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": "<20221013114156.996517-3-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221013114156.996517-3-ndabilpuram@marvell.com", "date": "2022-10-13T11:41:46", "name": "[v2,03/13] net/cnxk: fix later skip to include mbuf priv", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "5fa029ce219ed3f393d668835ad2182b063eddaa", "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/20221013114156.996517-3-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 25210, "url": "https://patches.dpdk.org/api/series/25210/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=25210", "date": "2022-10-13T11:41:44", "name": "[v2,01/13] common/cnxk: set MTU size on SDP based on SoC type", "version": 2, "mbox": "https://patches.dpdk.org/series/25210/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/118141/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/118141/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 1ABC5A00C2;\n\tThu, 13 Oct 2022 13:42:18 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6EAD642EF7;\n\tThu, 13 Oct 2022 13:42:13 +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 6C28542EF7;\n Thu, 13 Oct 2022 13:42:12 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 29D9IY4v010992;\n Thu, 13 Oct 2022 04:42:11 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3k6fwv8edw-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 13 Oct 2022 04:42:11 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Thu, 13 Oct 2022 04:42:09 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Thu, 13 Oct 2022 04:42:09 -0700", "from localhost.localdomain (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 713093F703F;\n Thu, 13 Oct 2022 04:42:07 -0700 (PDT)" ], "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=12CBqud154xdjddHvMclxiZ2HYHNCR5NR6QgPu1jU2I=;\n b=KPtWFvwMuNMtWAX52VhMWwvOj00x5dZMW94xhGDPZlMU062aaN0ZKzwsOHAQDg7QRmka\n ODQUrovIgj8UpPuDw2x3TLcqJlv8rauftmEQmHQuO4QxtwI1vJ60bmwLKQZzCX/UT655\n P3XJgWav3u6QLpU/SMxF392SpSxgU1mYDUFWa/p0DxMAP0euNpTKIjzbK9P5EAlPO0yM\n hX2XQZve68HWyXg8krXR2xrZb4uVQ+xpyLSfLgk+uhmOp+PSUdcFHwldDuEvx5oq3/wx\n fl/ymoxMiZVWMFXRXcqiJFkKOBnA/KYqXNX94CYK/WdZC+6pNBT8LXf4HD0n0sPMUPtZ uA==", "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>, <stable@dpdk.org>", "Subject": "[PATCH v2 03/13] net/cnxk: fix later skip to include mbuf priv", "Date": "Thu, 13 Oct 2022 17:11:46 +0530", "Message-ID": "<20221013114156.996517-3-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20221013114156.996517-1-ndabilpuram@marvell.com>", "References": "<20221011120135.45846-1-ndabilpuram@marvell.com>\n <20221013114156.996517-1-ndabilpuram@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "Q3h5ISvw3KPnTqY3tRQIo5tiB_Xlj3GN", "X-Proofpoint-ORIG-GUID": "Q3h5ISvw3KPnTqY3tRQIo5tiB_Xlj3GN", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1\n definitions=2022-10-13_08,2022-10-13_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": "Fix later skip to include mbuf priv data as mbuf->buf_addr\nis populated based on calculation including per-mbuf priv area.\n\nFixes: 706eeae60757 (\"net/cnxk: add multi-segment Rx for CN10K\")\ncc: stable@dpdk.org\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n drivers/net/cnxk/cn10k_rx.h | 4 +++-\n drivers/net/cnxk/cnxk_ethdev.c | 2 +-\n 2 files changed, 4 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/cnxk/cn10k_rx.h b/drivers/net/cnxk/cn10k_rx.h\nindex 46488d442e..cf390a0361 100644\n--- a/drivers/net/cnxk/cn10k_rx.h\n+++ b/drivers/net/cnxk/cn10k_rx.h\n@@ -682,6 +682,7 @@ nix_cqe_xtract_mseg(const union nix_rx_parse_u *rx, struct rte_mbuf *mbuf,\n \t\t uint64_t rearm, const uint16_t flags)\n {\n \tconst rte_iova_t *iova_list;\n+\tuint16_t later_skip = 0;\n \tstruct rte_mbuf *head;\n \tconst rte_iova_t *eol;\n \tuint8_t nb_segs;\n@@ -720,10 +721,11 @@ nix_cqe_xtract_mseg(const union nix_rx_parse_u *rx, struct rte_mbuf *mbuf,\n \tnb_segs--;\n \n \trearm = rearm & ~0xFFFF;\n+\tlater_skip = (uintptr_t)mbuf->buf_addr - (uintptr_t)mbuf;\n \n \thead = mbuf;\n \twhile (nb_segs) {\n-\t\tmbuf->next = ((struct rte_mbuf *)*iova_list) - 1;\n+\t\tmbuf->next = (struct rte_mbuf *)(*iova_list - later_skip);\n \t\tmbuf = mbuf->next;\n \n \t\tRTE_MEMPOOL_CHECK_COOKIES(mbuf->pool, (void **)&mbuf, 1, 1);\ndiff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c\nindex 71c3f1666b..bf1585fe67 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.c\n+++ b/drivers/net/cnxk/cnxk_ethdev.c\n@@ -680,7 +680,7 @@ cnxk_nix_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t qid,\n \tfirst_skip += RTE_PKTMBUF_HEADROOM;\n \tfirst_skip += rte_pktmbuf_priv_size(lpb_pool);\n \trq->first_skip = first_skip;\n-\trq->later_skip = sizeof(struct rte_mbuf);\n+\trq->later_skip = sizeof(struct rte_mbuf) + rte_pktmbuf_priv_size(mp);\n \trq->lpb_size = lpb_pool->elt_size;\n \tif (roc_errata_nix_no_meta_aura())\n \t\trq->lpb_drop_ena = !(dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY);\n", "prefixes": [ "v2", "03/13" ] }{ "id": 118141, "url": "