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 79E1B45A68 for ; Mon, 30 Sep 2024 14:16:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A55C740B9B; Mon, 30 Sep 2024 14:16:45 +0200 (CEST) Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013066.outbound.protection.outlook.com [52.101.67.66]) by mails.dpdk.org (Postfix) with ESMTP id C6BC140A87; Mon, 30 Sep 2024 14:16:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oXkUzsSBmHzJgzkiV/PRnttg8OCI7mznGdQ9rB0giXJG/EtgKpNTZevcH05zMfdmFLnBjlpUS+fJx6azoSKavltVcWffyNo/oDNaYgSseH5waZXZwKgTNTfXvnPeDzCYSV0P0RlADPp6DOEHZ4jGFWBY3+FGSqTyJHOSGVcFI6a+D+DZq0EsXVr6zGiKy8Ad5litDScJzwIusxyPfMdVegdBVLrNQXJAfvX/MuNKqjHKPZdEA9GbkQb068XTRzBuMIp0RND/NCCAMesIXGNJgjLwoN+gOPFbkcl4OQtpL63tps1mr7FW2tKoFL7oU69kgKtoRP3SGMKjPH/L7/ztwg== 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=MGtTkT3WGfvJMjB5YGqdyD5jrgh2eaMnkd6EM9xJipNWxQj7nYQ6hVdlFXP1TboTsgw1LG+cQCGmqH1c0mItfsWmcNuplsMFMd3f8/AhvM23OMRsykt1U4yQxwKRDZ9XAP4AaUS3836eIyxutaajkHJQtd7BS3UfscQmKda7vQhlnwvJvajt5E32mTZcgkYuvsPzx882gaZmcPaRKo5iMFH7YqTvN0CDl77sKNKO497iZUX2mOtsWZOrKR6vmFSN6lhVyJTFxYTZeBNH5plaLpqMHdXnxWhyrYK+ih9NgFaiBmdFZWePmD4t/UNU4FplKS2z5IBK8NHhf1KwF0wOXg== 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=dTMW7vKNjU4s7wg8zMPHQT2znKS7d4CWN8+1B2ZoC7jepNNYTD9K6OplHaCjpXrXjWoO/bKd4+UIwafH51h7RFo1HKIWwJvWI2hZ+68viKj75KwmlrdF/7UN0Q1+j6L2MNV3spviCoYuOIfIDFQJwF12krE1InHtEhDHSHQM9BAvTLoDcTVGXAsfynn5fOD8uIg89xjJDZyCzPnZdwNfvMasAMMCa+vv9YSr7nt7trn6VJEa/8+cQraNsfYP48J2egFGnxB9u087pze1iawqdRvSwj4JPDy04abH6vnbH0NLZWdryweey7cs/MZjArtbaAWRgE4vcNLc5FLQZB5mjg== 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 DBBPR04MB7897.eurprd04.prod.outlook.com (2603:10a6:10:1e7::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.21; Mon, 30 Sep 2024 12:16:33 +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 12:16:33 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@amd.com, Vanshika Shukla , stable@dpdk.org Subject: [PATCH v4 18/18] net/dpaa: fix reallocate_mbuf handling Date: Mon, 30 Sep 2024 17:45:25 +0530 Message-Id: <20240930121525.3452847-19-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240930121525.3452847-1-hemant.agrawal@nxp.com> References: <20240823073240.3708320-1-hemant.agrawal@nxp.com> <20240930121525.3452847-1-hemant.agrawal@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0124.apcprd01.prod.exchangelabs.com (2603:1096:4:40::28) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|DBBPR04MB7897:EE_ X-MS-Office365-Filtering-Correlation-Id: 210c17e7-9add-4880-86b1-08dce149b8d2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?9VK2ongxlIpChkSBu5IEXhrPrdHkQ5F0wKuDcfpiM6UiMHShXOhrRdvBEp7a?= =?us-ascii?Q?Pcrn0acxKuLJzxypeEXE+h71nykSXcxidogWxExqp/jL0w4+L+53M56jRt8y?= =?us-ascii?Q?awZJOXEZxnj7j7LrWJLpXYbcE3RH0D/CoN1MHLFjOwnkNVvOqcm9tbuIkCwj?= =?us-ascii?Q?zL/jX4onGfoaWEScBU6V95rrHSqF8HKmiH0ONf8fL5MfLmX7O/5p+aK9R3oJ?= =?us-ascii?Q?Sny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qEGWaejXpm9ev2Wr+gQ9g0u?= =?us-ascii?Q?cM1ujemYTZt5Uy3j6S2pSnbCE3+MDBSK4/yLcgRdpHAnmIU0mDlO3n0WPHwo?= =?us-ascii?Q?lJriRKrtIrn1C2T/ae786BubrT8fgp21O8MbU25WsIBYX57at3H9Kyf3/cWE?= =?us-ascii?Q?JFfgfqv8t4p9uk/FGHWXY3rUtJLhAJ3GBjEvofRUX1dTkfMHQw4lxJoAxWZH?= =?us-ascii?Q?lJMYLQiGj1pyPKv1Fln9VbmVDxoqoy13/6rPomItPlDmaA=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)(376014)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?FAuDJsup8rS823zMItvC0og8oDYvWlb8bqLKFWR0U32FgORr2ByHvZ7Z0QyK?= =?us-ascii?Q?xdFnuU7Bd6q9NylTOJE35AaS/XlHRtN7t5BOhGyO/4wF55JZBhyfBYfmL8uB?= =?us-ascii?Q?9Vh+QKSHlXHTx0jDsbPCY0GNz9cCdaHl7nxBuCsSlCEMxjMQL85LA51BwUZ/?= =?us-ascii?Q?RJoTfBQqAczZn67mUUkUGeIEFrRfeJLUi3j/Zi+F270KFLNDT1UwlhdBXvFJ?= =?us-ascii?Q?ZPA/hT9McKUXsTdC1lSnQLBFKtVlVbNxN2VtxIC7i4kgUVz7AdIVCkwGRl1f?= =?us-ascii?Q?hAoN9PK5qO6s4wCMPPtpN1tInoo2pBXxfJrbbOT3bo4KnmWQ3zicXBkoEwiw?= =?us-ascii?Q?6q+wwTHXKbgnnuVjYDgMvSMdJ7CEU8839YQgtX00zvmJSfnTNFZ3qB8wzQw1?= =?us-ascii?Q?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8PKvFEZOTZ7sc296dFN8?= =?us-ascii?Q?q7s+hzs9FakI2OsQcwgGOwDY0MXijrqkTH3dkL+af1Anma03HCZVfGcOoqsr?= =?us-ascii?Q?jsAzK2iVgPC2cBaz1l2nejpzxQjPnpfiUQ4cqwlDKXaVjTgzCTvqvVPdFpOc?= =?us-ascii?Q?Lip4BErR/PD/MUt2uw1lF1M4m16Qhb677FNQwZq/pQ3FQ5JL0LSMk+RtCFBH?= =?us-ascii?Q?3leOakZPHi6N1m77NPtOsBLCJ62NlMYvn3qGLpl8YWUdpL/uwG89/lXqPXr/?= =?us-ascii?Q?J7ovHHnypcwzfKx5PsR46dommaFUAw8SrcPpOe9+UF5499bqCm8TvyEnxsee?= =?us-ascii?Q?lA=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 210c17e7-9add-4880-86b1-08dce149b8d2 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 12:16:33.2197 (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: MkxHOZ0WcHB93IzrMzAaEtc3LLN5bOxqp78s6G9BnBAx9hN/SiiPJhnu7MezNYMxaxn8Bmb9bAtYHZyFsBNLMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7897 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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