From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E54F245A67; Mon, 30 Sep 2024 12:32:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD1F440A89; Mon, 30 Sep 2024 12:30:44 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011040.outbound.protection.outlook.com [52.101.65.40]) by mails.dpdk.org (Postfix) with ESMTP id 8423340676; Mon, 30 Sep 2024 12:30:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NPixt3o+H/SykNEo1t8ijjrD5oiORthCBRXaAYwZQIISEDcNTeIJUIH9MBPiZp/9swq/64zIeOgCrji+EIZ8jRYtbDXzqMaeL1iI/xhgs7CEwnkqb3wgAfy/ZDotyxlHISEYcR4LKxkChE9E+35YXtW8rMoFt8ZVqpJ9f4Fo4zv7cMdkX7lae1y8oK71duKUBu0e0IxXgnAEUVqLk5PtvhGFBKPBuIaZID2xIMSDrixHDpFHuPZqcjy3eds7b3p53mzWgDuTR9TiAIj/i/h/wKGU3AogVt72gREuMSmxAB2mUBdD2i59VTqAwXvR13CJTAJnUYbm0I5VQ6ph4Y+yKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EBbUSWMhUWs2SBqpL7IeEGcaffwFPxJd5cQ+a9kpbvs=; b=M8yYHaoXp/c0MU/Ts7wqEr8bmlJe3Yb/30Fv8TXW48LX1dNdJCOaWyejzBZplirulSuxeHJyhVn0TZACc0HpxllXEtd8rlKxrhH+pU4q0zze8WGNe/2v80Qdlu+AnyNC3K9C95E8Ys6SnGvEykGuZhHs4A/AvG/B5/q0miaTugiIOPmVjl8XF0jLzDpAVukPL8Z6eYtjpUZPpQbNu2jiaGlq861jyto5CRafDTCJ0fPUskL1bA72bOisD9Oiei///jkE9U9Qx7eYlluakS3c81Ol5LtXp54eICjo+T5uQZUfA+7u2WaQL3earXnBm+HOHosmCImw1WG+9zY39AwH0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EBbUSWMhUWs2SBqpL7IeEGcaffwFPxJd5cQ+a9kpbvs=; b=QjDkmsxrAiwhAjpABZaeiqGcG6yFOW2msLh3GxaAIVjdz3HVvgL47XRnybsE3qAxOH6GbBl3neeso0fyuIMjVkgDUA/9j8q6h9tBS2LjxUz/roH6KlfDA4RcV/eu18JIH3fXby0LFZfRCvb6/3OXoPV7WBXp1DGwaBaaxy0B26F0go/Au/HkRmoouHvHos5VFx6BieaxEmz9BW83U62nOWhE5SWeXE5dOfYoz7GoKaRqxG5DBkJB3DhVe3NpDvmOLPD3xGT3Q4TQYzOUVmrEYxY3Rh81DVxGa9fBzscq109lK/mw5Vd4/eZEBrDOGtU03EKr0omCaVBR07BHMX76ag== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) by VE1PR04MB7214.eurprd04.prod.outlook.com (2603:10a6:800:1a6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Mon, 30 Sep 2024 10:30:28 +0000 Received: from PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87]) by PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87%3]) with mapi id 15.20.8005.026; Mon, 30 Sep 2024 10:30:28 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@amd.com, Vanshika Shukla , stable@dpdk.org Subject: [PATCH v3 18/18] net/dpaa: fix reallocate_mbuf handling Date: Mon, 30 Sep 2024 15:59:46 +0530 Message-Id: <20240930102946.3236998-19-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240930102946.3236998-1-hemant.agrawal@nxp.com> References: <20240823073240.3708320-1-hemant.agrawal@nxp.com> <20240930102946.3236998-1-hemant.agrawal@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2P153CA0027.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::14) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|VE1PR04MB7214:EE_ X-MS-Office365-Filtering-Correlation-Id: 27941421-338c-4623-a3b1-08dce13ae747 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?GP/4gOi/PpCcxdyErmmxqKfZDGPBpY5t6vgWZa/JnLmrGeKGRSLR6Y3TCANj?= =?us-ascii?Q?00liVEZKxpCS8ZIJIuU5Gw0Qq6ljIrkaRqia9gUG7k3W/NAxpPKHqUQUOF3g?= =?us-ascii?Q?tO5ykyquxLpwMmm+Iie+Kqi4fXJ9MOVJ1I6s6mm1grXS+bv6ZeGm70x3VQYU?= =?us-ascii?Q?HB1lQMVKTL8TuREosxYCb4dI7GfEvkoTKz8fcq7mxqbs5FcCIs9H1m7vUoH7?= =?us-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f8f3OsFNJTpYRiCMafublaknr1iqIQ0LpceayQiawUQrtu?= =?us-ascii?Q?fZDAKSJZNweFLaFV9mFtWKRz5P3nEVhKHiRZKo1Bcd2enFjbCPq8ybLn4gnH?= =?us-ascii?Q?8mk8wDll8vwiNcR5V+PflU7B5LpaOKBJ9sNcvVvbrn+04BCKJJueMlrhOHZi?= =?us-ascii?Q?3KQCsY/ox+eyIrP16axSk3z4IQEbd0J3pUmRzUemxFjwH7AYHZhfCQ3FsDyM?= =?us-ascii?Q?iaYhrkH7u1oMqdJka/GraugrryLtoy5anbM8Pa0TBM7RdPB8Ai8UPaTXHWGZ?= =?us-ascii?Q?gSijiDCmbNlXNSQFFaj1ad50Pvcj6nuX2zFYm6Hziu5GL+bEWw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9328.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1Ey8YwyDxujB3ohLRT4WdesMmN4E2/nsYD+G1QaCGiwSTZR1zdxmjOPVzj1y?= =?us-ascii?Q?OR0Ef314wDCxCTDoQcWZQ9Ck4i4Dsw/vKj5cWubiW8Wqa/dkFqYzV50LkjJC?= =?us-ascii?Q?yIrz4F8PdwI8RpzeYv5C1/dvA9h3OT4/edaX0jJ66MnQsRhz0m6X1ukN2KMJ?= =?us-ascii?Q?PM7iHML1UYHpSaIL5hqRKSAU9DhCWrNSPExkfP42n6YnR8NXZUu6UaO2S0cG?= =?us-ascii?Q?nAW5rFKyfjRo5aNB2h2ZO7wmSObHZetAQMCtTy9cwhnFmCIbq3PXuJcTiU7C?= =?us-ascii?Q?DD2Ze07Z+pcDoLgQYtyr++Jnurf/eQn/o0HNKPrHKF99VJA0yljGpkOeXnAz?= =?us-ascii?Q?lSqz36oamblDMN2wN/3q3cAdkDjQ6nlOVppP18NTWtUSJ2OpYitGEGL4qf7U?= =?us-ascii?Q?VyXhyZPlZgms1/nompLMNATXC/ccOOeQtckrZha+DU31PfnonwNh9PlKNkDb?= =?us-ascii?Q?mYkTLRWi2CKC9lYSTZfev20DsjCQVC+lvwYep5f2fRry0wClUpfzE5iCUffF?= =?us-ascii?Q?yGJrLAS6N5Jto527rbpQFdzWsS1q5Np5HjskRWSje01pNG0kagrWdadO2icN?= =?us-ascii?Q?G3XyF21s81z+O8Wpg0S6rAMO4En51L8AI5kh3eQJr2XbBZmNGTTtUslqQOyI?= =?us-ascii?Q?oi0EnBopdc+OS8cAzgoLkU5eXPqpxHG+swUuS871jmlBdUCT7HcuNUGMNmcy?= =?us-ascii?Q?CUSzR9txypJZo/4uTpU9HlBnwWMH7cKeiON7dBnk5SPPCbazdEw1HAdDwJbT?= =?us-ascii?Q?u1loo5SNwYdJiRZI26cS+FDJ5l8iZn1Sll7wd2sUWDlPh4kMlZBQEuokkVnH?= =?us-ascii?Q?SlgC3/CjyW8XjgV7Earh6+lVy7IlUTGUxeieK2QIh4nqAdXT0iJ+t7DmhlgQ?= =?us-ascii?Q?O8b2cFMzlub7kt1SsAOl7NYNcmKfZSGuE7NSP0GEJLn+LKZF/Zj80JLdvgCp?= =?us-ascii?Q?Zmy24xto/GsMDom3Z6JHAqODkLIe5a19f/38QXGVjlQUG90qp1Y7OF4ZEiSk?= =?us-ascii?Q?VU6VVI7hv77n1HA3i9EaatCtNeNWdqCD6yddp5PfIfCm+19WTTfk2e/u68S3?= =?us-ascii?Q?tT3SiL009Vf0Uc91jq20upsB9o4drWmwbhZrObS/3gYKk1lcLeo1pmLT99XP?= =?us-ascii?Q?q7H9CH5Rv9r+O34Z7RtkTNbJ+gF8VyERq9sWDCthgVSVscj0HIxLZssCVd+h?= =?us-ascii?Q?O/lgmoRu7/5GjdxRjuWo7B3WcrjYhSi4T0392tMpCZDbA7WLonne19DH4GcG?= =?us-ascii?Q?SSYQC56OMKgg8Y/2rtXdabKpfYzv35Jb1/ayzpPQTdTcIK4tbRVAC6alWeGV?= =?us-ascii?Q?CoduWY9U4fzyq1o2rO0R7saOCBPl24pt8d9veilqIIJSIwjZ2zIo0l2KaU4k?= =?us-ascii?Q?px+/fgxvGY1B3V1A//rCERVMP1n6wCbLeCiuLNnEs1ukYIMIZB3kLwloJ8mv?= =?us-ascii?Q?ubcXhvQ9AnO7/Cms51CB0rN4iNSc0VewA3oZ4O3Q+1IoqqzcwIOUECtVjgAa?= =?us-ascii?Q?MTKiWRPei3u859wakw7GYQghxQUMAv4jUZ7d/KQo2zLtRiH8IScebpaRqHGy?= =?us-ascii?Q?tTmCKKk3ZKlu+t/bOyeWHCgv0koYt6h0H4wGd0rQY+A9nHggzIVn/EHZLP+M?= =?us-ascii?Q?vg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27941421-338c-4623-a3b1-08dce13ae747 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 10:30:28.7374 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cmL9DvgZKOClX23DDSTZB4/yiyrXpyYp1Xw7w1vuDx61dlwVICkMvXGRvj/AQFilrlLuuSbjxdXLMJVlN4LTMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7214 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Vanshika Shukla This patch fixes the bug in the reallocate_mbuf code handling. The source location is corrected when copying the data in the new mbuf. Fixes: f8c7a17a48c9 ("net/dpaa: support Tx scatter gather for non-DPAA buffer") Cc: stable@dpdk.org Signed-off-by: Vanshika Shukla --- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 1d7efdef88..247e7b92ba 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -1223,7 +1223,7 @@ reallocate_mbuf(struct qman_fq *txq, struct rte_mbuf *mbuf) /* Copy the data */ data = rte_pktmbuf_append(new_mbufs[0], bytes_to_copy); - rte_memcpy((uint8_t *)data, rte_pktmbuf_mtod_offset(mbuf, + rte_memcpy((uint8_t *)data, rte_pktmbuf_mtod_offset(temp_mbuf, void *, offset1), bytes_to_copy); /* Set new offsets and the temp buffers */ -- 2.25.1