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 BD12445A79 for ; Tue, 1 Oct 2024 13:04:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56C0C40E1F; Tue, 1 Oct 2024 13:04:17 +0200 (CEST) Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2041.outbound.protection.outlook.com [40.107.103.41]) by mails.dpdk.org (Postfix) with ESMTP id 3E28B402E3; Tue, 1 Oct 2024 13:04:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rqzvbCa9ge8AwB2uj52A2zzkkZMHjJjgYW4xzZCeV1UG3wwT1NVsWUWAR4P7XhyijWU1zns95ge1AVn+Wjv2hXoOH019NkuOwOFjvvvj5911FHM6XyBZ8WEm9/kyjegGhehO3GxrN7D+P4huXDpASPLGfOqW2mAVlWT2rfComA306kDtgRd/NkHijuhId+BR7UcK9J+hn8YCufOj0A7AUXmW+pYIiaVn/qawJon6BwgMgE5u72U0SiscdL6Kb2SP/cH+zYyRho48W9Cbl11FPyF3iVMS9jxberXdALWJr7Df0Fc8/38VZGyCpNPzaFjyKqIMClQ6TrdA5D/lyOY3Tw== 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=vrqY1QYt3V/68MjHjHp/2EaSzq4zciJRoGNkN7Z+INsKX+hMuPzkSkyi/NawuAxKHL7aUfj2Si9KX6mTSw+TjFloBx72iA8OPsBcPXbkxpBQAx+F3rqIietaVxqrmob/qV8wWEtVwhQwvFbOkEWWvEO3L3lMfsJ5wFwhSweh+99wsApujPAnMZpybYp6gukR43siwZ7UOLiMmkJi3rtQDvuRwFSjK656XAaS2mFQpM/9pTHGoJW5qkeBMSalIEuxW1F6IEHkj8+Nmt3yaxvd6OCxVvO9O4pmwkIM+C079c5RntrvhCJGQ6FpVi1XwR1dvs6Ii5Q3SSuHaiRZxWxSNA== 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=g2eJFuiHnec9nH7z0CloXCf4Y+Y9UaX5MUWvIFqhSZflTLm7MBNawE3exWxs4VDMhRppx/eAKlGkzNUtMg1sJvtgGqwZWNxghBmK+8fyPKuwek4WB+iKPQzQGIxvRouLpseSqK3+AaGyaaBidVcDY+Y0/jTdhNbVdYy8p3R/d48KjcJtXEh7K4rszRPat9SuhYeRY+RCtBj7s4Br/3TAqcTX4YXJSPcA9ZAKKPhq8QV1RIgoNk+/l+MEK1Foc6uNfjg75CDx04V7rXwAflnVSPWyfKl4V6DHR01MxhgWrf9XkuXTEzJ+ie+RbDZNb4nFUgUbQqiPt9utoOCoawPhZg== 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 DU2PR04MB9196.eurprd04.prod.outlook.com (2603:10a6:10:2fb::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Tue, 1 Oct 2024 11:04:08 +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; Tue, 1 Oct 2024 11:04:08 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@amd.com, Vanshika Shukla , stable@dpdk.org Subject: [PATCH v5 18/18] net/dpaa: fix reallocate_mbuf handling Date: Tue, 1 Oct 2024 16:33:25 +0530 Message-Id: <20241001110325.4173762-19-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241001110325.4173762-1-hemant.agrawal@nxp.com> References: <20240930121525.3452847-1-hemant.agrawal@nxp.com> <20241001110325.4173762-1-hemant.agrawal@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0086.apcprd02.prod.outlook.com (2603:1096:4:90::26) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|DU2PR04MB9196:EE_ X-MS-Office365-Filtering-Correlation-Id: fff81208-f4e6-409d-d854-08dce208c5c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?7mnmtQNfl6CpaAuOkee4LF7ryUS6oYYBh0RVgcSQcRuMb8zp3kWqC9MnqWwM?= =?us-ascii?Q?xoM2ZWaD8rtp7A+Ro6tRGKt73ZRraYXaSyJombVOdngXG4gh85lD0mF/q9dg?= =?us-ascii?Q?A96MrIS7mUbie/tGQTzMI5M1yDotseaUeB4bQ56AtFcT63stlpYFW7cbc2+Y?= =?us-ascii?Q?EfJ9JXoM3dAs2lrQ4NRcXFP1N63KFnd31Hb8ZTnkE8hud1Xz1FdvNgX/ot0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P9u+KzZHuluPZe+xcZ2FiQ?= =?us-ascii?Q?P7cRAMb3F/kgrSAbX4zWFGnd0CclbnNJhFw8pbfR51ROrP55llCROkBBe46b?= =?us-ascii?Q?TVS+KVtk/OiXDw2ez2vU2jbDaTGKrjlvK6Ms6g6J74JhOHHHldtIdqeoy6Ll?= =?us-ascii?Q?ZTHMdrni+CjUHX2Xd3n0WSWmyzrzrKHk3hyhSyYz160qmRatZCiqEi/CQZ7s?= =?us-ascii?Q?4nXd7ak6sBEmvGZReDWvDjUYfgiLClUqDXhWOKUL5QoHBw=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)(52116014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BY1AMvjQGL8Y7B3+A6hJ63ZJUfhotEgD909/3COThSxikyOUz7NH/hgLgrJ/?= =?us-ascii?Q?4BGe7PPe6gUtLgjR08bWNSRF1C0/lOP6pFIf6OMNOG461UUV5mrPrPqhpiVS?= =?us-ascii?Q?ZpNfFp8G+uVmltDBfT1uzzQV+75z44Z2e0N8IJPOFYIVCAl0jYANdHAFnPsH?= =?us-ascii?Q?2vi3ccn9HgCn1MQr79HWGKQzqq7fmzp8HpKupl1f1yg4TJpmf0ao1G9198Ml?= =?us-ascii?Q?Gw8U5Aa3jML2eimaJYSx6sx0K1t7xEWZGwsKN27cR1weUulBD0rAdjQ/dplI?= =?us-ascii?Q?23+BrCGndFqo2EKqZUHkOqMSOGh7pEbgEjvWIpkyX0UcaSevNXHZllyYCX7Q?= =?us-ascii?Q?LB5Kjurb7ctwjaGIaqvJL9o5lkFvLwmQ/wdGCKN62h2Ks8sv83h2hb4AdwCM?= =?us-ascii?Q?sSq37VZ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ZOAfYXUnbyWnf5?= =?us-ascii?Q?8DDm5gwJ9DiTpmvYW3suAsSd0gElt4JpofHaD3m6DE9N/QD7AQB1DcknH0tt?= =?us-ascii?Q?PWwGgF8GazX3ctnE85wGxxydHAj+BHJcIylU1q+kbNzUH2ymcU1EtCTkBzYa?= =?us-ascii?Q?5waq8H2GybgmaSggIiv9JjIqGtl4vQHEguhzNjEdV5Y5TokAsv5NYAX3IwO4?= =?us-ascii?Q?/c/N4kaMKIyCSavHk+hUEfhdJQ6ABW7rpIr9xeSUn8WmGAf40YKn/e3vWMc9?= =?us-ascii?Q?66wADDchdsSe7EYHzcvWj0CxTikOVvYj2lYVCkgCl0WJA19ElCMX04XAukh/?= =?us-ascii?Q?qQ=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fff81208-f4e6-409d-d854-08dce208c5c2 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 11:04:08.8069 (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: lTBHi8eQQd1RdVEjasqleILBy5Em/Uv9kimc9r0XbhNwV3oM+dc0+mSsGo2HJZSwzvPn/Qi8omDN6tFPh5GaaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9196 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