From patchwork Wed Jan 22 12:49:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meghana Malladi X-Patchwork-Id: 13947255 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E80DDC02181 for ; Wed, 22 Jan 2025 12:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=rzsitFajKNQgm3+5WVXmKqy42uC96f1m1FRZWnKkx4M=; b=ZN/AfW85b4gEfynnAJf5eDpMLP LKBkEoSUSfXKDTh3lrBB5/94PDeIyMKN2FaITeSeL6UGH4a1SH2KyTL8zyV5GN6nqq55vMTsUk3AQ w6n8v1Kgt3eXLjk9a8I4AMfeSVE71oHAL22flSUEqhsFtKw/6wT9HEuXAouyTWmdqQqPYJcZzjKIk x3Pe5p2DBCZ9aIXIJ1wN7X4uB3kYR8gpa9i7xbVYb69EUdRlCrDn2Ve9pw31/p3VHb6ZdZBMwEZ43 JUqbJFdiNdyeFKB0gnMEk5zAaxYWFfDq+qkWEUo3aMOrE1FhdwNhIbWzNMbke6bCBIztwxtgGRyFP cZeWEJ6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1taaDm-0000000ACne-3eGO; Wed, 22 Jan 2025 12:52:38 +0000 Received: from lelvem-ot01.ext.ti.com ([198.47.23.234]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1taaCQ-0000000ACT7-2fzP for linux-arm-kernel@lists.infradead.org; Wed, 22 Jan 2025 12:51:15 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 50MCoPfk1012928 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Jan 2025 06:50:26 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1737550226; bh=rzsitFajKNQgm3+5WVXmKqy42uC96f1m1FRZWnKkx4M=; h=From:To:CC:Subject:Date; b=kJ90qTlI8xP7aJKzQEo8qHIpLJTheSsCstHj1GdsKIFXXg5/wVQhyTQYit24QXfCA S2OoBjqu/lS+yvD9Um4D9M+82fBVa38zMGW9la6BIglcgeNdgmROEKZCo8rumAjimu xvhZiBuXglzrrhoDmFCbua4yUy9m38RN+Rw4//JY= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 50MCoPQb024960 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 22 Jan 2025 06:50:25 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 22 Jan 2025 06:50:25 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 22 Jan 2025 06:50:25 -0600 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 50MCoP17014791; Wed, 22 Jan 2025 06:50:25 -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 50MCoONL026475; Wed, 22 Jan 2025 06:50:25 -0600 From: Meghana Malladi To: , , , , , , CC: , , , , , , , , , , , , , , , , , Vignesh Raghavendra Subject: [PATCH net 0/3] Add native mode XDP support Date: Wed, 22 Jan 2025 18:19:48 +0530 Message-ID: <20250122124951.3072410-1-m-malladi@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250122_045114_756961_300DC7D8 X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds native XDP support using page_pool. XDP zero copy support is not included in this patch series. Patch 1/3: Replaces skb with page pool for Rx buffer allocation Patch 2/3: Adds prueth_swdata struct for SWDATA for all swdata cases Patch 3/3: Introduces native mode XDP support Roger Quadros (3): net: ti: icssg-prueth: Use page_pool API for RX buffer allocation net: ti: icssg-prueth: introduce and use prueth_swdata struct for SWDATA net: ti: icssg-prueth: Add AF_XDP support drivers/net/ethernet/ti/Kconfig | 1 + drivers/net/ethernet/ti/icssg/icssg_common.c | 435 ++++++++++++++---- drivers/net/ethernet/ti/icssg/icssg_config.h | 2 +- drivers/net/ethernet/ti/icssg/icssg_prueth.c | 124 ++++- drivers/net/ethernet/ti/icssg/icssg_prueth.h | 51 +- .../net/ethernet/ti/icssg/icssg_prueth_sr1.c | 23 +- 6 files changed, 543 insertions(+), 93 deletions(-) base-commit: 49afc040f4d707a4149a05180edc42bc590641a4