From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from SJ2PR03CU001.outbound.protection.outlook.com (mail-westusazon11012051.outbound.protection.outlook.com [52.101.43.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E4BA347BC1; Tue, 11 Nov 2025 10:15:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.43.51 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762856143; cv=fail; b=P0Xi9bciXkUvER0vaqlUjzQpRXSXt9ukEWX81/WzXJGMmcvEt2VvZezEUIiy1v+oEDttzxb2SfcqdBb7aGJOsyaxUCf+RHOHCIcDqDJS3tRDFLP3UpYPOv7XZbVx2RH4ItLXh4jizc9jNoCSt174FLPltBAbsv1xG3yyM/B9A3s= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762856143; c=relaxed/simple; bh=IGkX09IZ33U8pvPbgZO+pPmd69QGth4oNYUkIVHtbfQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=eWr95FUsY9xfxBNon0iHR0LBB1pvTIPdjhhn1fF8dX/Vef5fTKlYNQUtCPp0BJODAcI7brQMTlld50Y6M0N1x75U42fvRw7fvcX+XYuF/PzrUz8gCBv2MC+XmRj+fxDnJL9uwv3Jad1V/kx1NcOKKYekA4t3vowg+DROAb4sNr4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=kdHVOZWO; arc=fail smtp.client-ip=52.101.43.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="kdHVOZWO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HLyDF9r+bMnMZQF+tiodsEfJTweWh11PfMW4ITjEnnYVn8VlToL88DJnjiuU+tWHqw9pFWv+yt9t/UXwtdlqB3uod4SO6CLYLU6kWxB2zU2dcfyDXfUoUUhttpe8yx4JvOEwpNp2z4LXz7Ig+bjvWYz52JJN8xCvIAMXPf+ere9+9AX36fZoRON6TwyLd1mRrSNvJ5eXyYR4gIXmEwM1Yu/qEFGTEnDDsXC3Idg7A2INJuVeL0xhrcXxde2O0Zvf86p5h0BBPo7yOO1zXdxchDVtUzZio4OTmsG1lgNnQi6BYB6WZTIWZWe1JXOiB2PQhLgE6qY457mYCUxR6XfKxg== 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=u/g10OXeyFVYDRWSv01A8reEIOYXEZwVJLGHlt+4yIc=; b=MOGUcK6Qc3rGqQjJSFn1F7Xl2cqwoeExp3KfArkEvZdh6A7yeW5mmoBnV3PW+mPOlALv6wIzS4z1bypVIiUTchAb6nPbWjgV/fuKy1RpYDBn84EDvp8YWVJoUWo1+hIBWbC5dtlwhJLTMzf2w5gCWyHoJQ0LbjNlfh154lK3byVkwvF+9Ja659RWQW6Tc+Ie56tBcmsEyWn/E9bUOjIr+XLenGMYXTHB85PZFXiEOA0AVfOQMlTVxXgrOmT5bWN/ZESTsDgKt84Fo6HZpmTe1sygfZK7OZPpqIli5O82+Nu+KSXuAbNZMFakDsBJSZCLLlc/r2eK8q6p/LGb8jtThg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.23.194) smtp.rcpttodomain=kernel.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u/g10OXeyFVYDRWSv01A8reEIOYXEZwVJLGHlt+4yIc=; b=kdHVOZWOE52EMXpEkLvx5cbUkSE/YxJZ8yOIEDpyB2hBkU1AeRQuD4iUimhZjguzNsELnSAoJF1Ms1XpJToG2ojJFOpEVhbVv1QEEsevOgPlLi/UN7G6mpgVF4q1mKb+PRMu79RSuKrO40UA5GsFFYBu1BE565dW6dbhy0twn6w= Received: from BY3PR05CA0042.namprd05.prod.outlook.com (2603:10b6:a03:39b::17) by SA1PR10MB7815.namprd10.prod.outlook.com (2603:10b6:806:3ac::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9298.16; Tue, 11 Nov 2025 10:15:37 +0000 Received: from SJ1PEPF00002311.namprd03.prod.outlook.com (2603:10b6:a03:39b:cafe::86) by BY3PR05CA0042.outlook.office365.com (2603:10b6:a03:39b::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9320.15 via Frontend Transport; Tue, 11 Nov 2025 10:15:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.23.194) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.23.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.23.194; helo=lewvzet200.ext.ti.com; pr=C Received: from lewvzet200.ext.ti.com (198.47.23.194) by SJ1PEPF00002311.mail.protection.outlook.com (10.167.242.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9320.13 via Frontend Transport; Tue, 11 Nov 2025 10:15:37 +0000 Received: from DLEE211.ent.ti.com (157.170.170.113) by lewvzet200.ext.ti.com (10.4.14.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Tue, 11 Nov 2025 04:15:29 -0600 Received: from DLEE207.ent.ti.com (157.170.170.95) by DLEE211.ent.ti.com (157.170.170.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Tue, 11 Nov 2025 04:15:29 -0600 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DLEE207.ent.ti.com (157.170.170.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Tue, 11 Nov 2025 04:15:29 -0600 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 5ABAFTkb751480; Tue, 11 Nov 2025 04:15:29 -0600 Received: from localhost (meghana-pc.dhcp.ti.com [10.24.69.13] (may be forged)) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 5ABAFRQj011888; Tue, 11 Nov 2025 04:15:28 -0600 From: Meghana Malladi To: , , , , , , , , , , , , , , , , CC: , , , , , , , , Vignesh Raghavendra , Roger Quadros , Subject: [PATCH net-next v5 0/6] Add AF_XDP zero copy support Date: Tue, 11 Nov 2025 15:45:17 +0530 Message-ID: <20251111101523.3160680-1-m-malladi@ti.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00002311:EE_|SA1PR10MB7815:EE_ X-MS-Office365-Filtering-Correlation-Id: 31d7b8c4-9d52-4619-f3d5-08de210b4235 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|36860700013|1800799024|82310400026|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?AWnrbSmOnAhZNlFv1GCQqafgr3yS/7mxg4Uiy4F14sbk26IU/i905lp0KFOL?= =?us-ascii?Q?vbz7R3Ex+hgrRxfnpWvSyji41Lz4jVlZQrznReRn449O8s5o6C0nwyLF7pEk?= =?us-ascii?Q?GC5G5t3tQNLEEd0u1jF+64gdybHnQV5MA5oQY4ksptdtour1OGLz3+4dZ/6w?= =?us-ascii?Q?rDw8KhZn+XXvI/wQa13nUMc1kX0uNwtkgdVZ4qKwk3qv8V99S2XdjgupUzoC?= =?us-ascii?Q?E9kalPbkJE0Mae+bDx54Nz0FIUS41Yfz/IX8WgiiUk658T1tIfN1vbU4mE8w?= =?us-ascii?Q?zVvfv7JlJiZSgf83+wchL7lNM9MBF5hiEyYrDSR8b3Eu4Cr3UmPTzoCwBGq8?= =?us-ascii?Q?MS1n4MmJGqG6CqycgyZ9w5cXiAP7CEODeBsQOEtfJPNFTU5PGV9DCK2GgAIT?= =?us-ascii?Q?Hjzr3mmhotiX0iEAZ3uRD5gAqTFy/8aFtK2FkBokaPd4PHDZXNBQ7qm6Gn+N?= =?us-ascii?Q?D+bCrpy1zkpZUq1j5PL25MOiANbioiDN2H/XTuRu9pJQB99uoq29JbIpfZkh?= =?us-ascii?Q?7Jj2CBpkx/4jrih/vAapHZOFuJDfR9Bo/0zTTJf6RObdb/FUrv/a02Uo/cCk?= =?us-ascii?Q?HAQ51b4YEFwqwRhdwqAA+t65IfuSIT5/oLroSt0U1pSDcSYYa3eVcUviyhS0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KWD2Rgin6ROKl6CfmCxaGlO1fhIxpZsZ7yShqSi?= =?us-ascii?Q?NXLP2hud5pRMLgUDBBIkHiaUz7mgGGXKvG6QtbIz?= X-Forefront-Antispam-Report: CIP:198.47.23.194;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:lewvzet200.ext.ti.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(7416014)(376014)(36860700013)(1800799024)(82310400026)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2025 10:15:37.1722 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 31d7b8c4-9d52-4619-f3d5-08de210b4235 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.23.194];Helo=[lewvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00002311.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB7815 This series adds AF_XDP zero coppy support to icssg driver. Tests were performed on AM64x-EVM with xdpsock application [1]. A clear improvement is seen Transmit (txonly) and receive (rxdrop) for 64 byte packets. 1500 byte test seems to be limited by line rate (1G link) so no improvement seen there in packet rate Having some issue with l2fwd as the benchmarking numbers show 0 for 64 byte packets after forwading first batch packets and I am currently looking into it. AF_XDP performance using 64 byte packets in Kpps. AF_XDP performance using 64 byte packets in Kpps. Benchmark: XDP-SKB XDP-Native XDP-Native(ZeroCopy) rxdrop 253 473 656 txonly 350 354 855 l2fwd 178 240 0 AF_XDP performance using 1500 byte packets in Kpps. Benchmark: XDP-SKB XDP-Native XDP-Native(ZeroCopy) rxdrop 82 82 82 txonly 81 82 82 l2fwd 81 82 82 [1]: https://github.com/xdp-project/bpf-examples/tree/master/AF_XDP-example v4: https://lore.kernel.org/all/20251023093927.1878411-1-m-malladi@ti.com/ v5-v4: - Rebased to the latest tip - Collected Reviewed-by from Jacob Keller Meghana Malladi (6): net: ti: icssg-prueth: Add functions to create and destroy Rx/Tx queues net: ti: icssg-prueth: Add XSK pool helpers net: ti: icssg-prueth: Add AF_XDP zero copy for TX net: ti: icssg-prueth: Make emac_run_xdp function independent of page net: ti: icssg-prueth: Add AF_XDP zero copy for RX net: ti: icssg-prueth: Enable zero copy in XDP features drivers/net/ethernet/ti/icssg/icssg_common.c | 471 ++++++++++++++++--- drivers/net/ethernet/ti/icssg/icssg_prueth.c | 394 +++++++++++++--- drivers/net/ethernet/ti/icssg/icssg_prueth.h | 25 +- 3 files changed, 741 insertions(+), 149 deletions(-) base-commit: b981e100c19dcd91ce8cca8562c3cdabd4fcf28c -- 2.43.0