From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 0FE72CF9C5B for ; Sat, 21 Sep 2024 16:53:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A813540674; Sat, 21 Sep 2024 16:53:12 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id OLa3frLUCAQ5; Sat, 21 Sep 2024 16:53:11 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5858D4063E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1726937591; bh=xGlHEAHL35QP8aj41FQozKU4SGvEbTjEc+gQoO/8OG8=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=kaOGZIS/1yl1eSmGHAscXIqW0R5M2LKjdO9PnvE++UmY6SdbON7QHm4o2hmYhz/fn Gg/mYgQ6fSwlEDRrhNFQBXTSthC3nnrZClzEXEAAm630SU8IZhhUeqXkxggWmPTYeB YfE7FId5p3tUyLWa3jdpNKTWb2tQBKbvuGT6Y9lTwvftRMb20gKrp5yTtqk72QYp4a mfxddd5cCXyY6BNtypJmrBNSb8RgfVTt95OqT77XANR3wCxzMKC93nUtxOIqoU8Ev3 TR1tzaabV6EgumQsjqX+OTG5naT4QxYpNsRnLBPC12OyGK+Z8zTEaYMmJfXco7YD8Y 9Zdw0jJtBzbKA== Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 5858D4063E; Sat, 21 Sep 2024 16:53:11 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 01C131BF373 for ; Sat, 21 Sep 2024 16:53:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E2DF0405D9 for ; Sat, 21 Sep 2024 16:53:09 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id QOIC6hqLzRIP for ; Sat, 21 Sep 2024 16:53:09 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=139.178.84.217; helo=dfw.source.kernel.org; envelope-from=lorenzo@kernel.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 0C130405AB DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0C130405AB Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by smtp4.osuosl.org (Postfix) with ESMTPS id 0C130405AB for ; Sat, 21 Sep 2024 16:53:08 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id BE3715C4C65; Sat, 21 Sep 2024 16:53:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85A4AC4CEC2; Sat, 21 Sep 2024 16:53:06 +0000 (UTC) From: Lorenzo Bianconi To: bpf@vger.kernel.org Date: Sat, 21 Sep 2024 18:52:56 +0200 Message-ID: X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726937587; bh=3DcqSOF/2OUCezVBG3TW/2mi74Vittpx3O4Bq7D530E=; h=From:To:Cc:Subject:Date:From; b=mvZgflTHVHw8FcQSB0HTmTUe0PReDu8ac0Ptt9TgciEUburqdfqLdHfKeUtAfXRp9 dT/fR60pFaascXawuuChzCkLfALQErQ9NI+fxLZtf3ckjxq4NqvzR2WVv6bnXlD7n5 46TQOWgSD76K+cQd6x95ZWOfSMcQG2x8iBW4jdZFoaZ8OMVxJ/e4UJqS/iQh2/swAe 5HAkxJUEPg5hk0arYhWSEUfa7atczRZeo/lvmknUdbCm//aH1iINb0+qEIJnmslirS hQF00/n7PXc2gqoallb0faO/HSH69QHgcOxzDb0anGn3CJeehea0fUHEmDYP1ni82I 9dl//9BFZ3zFA== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=mvZgflTH Subject: [Intel-wired-lan] [RFC bpf-next 0/4] Add XDP rx hw hints support performing XDP_REDIRECT X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: toke@toke.dk, mst@redhat.com, jasowang@redhat.com, ast@kernel.org, edumazet@google.com, anthony.l.nguyen@intel.com, sdf@google.com, daniel@iogearbox.net, przemyslaw.kitszel@intel.com, john.fastabend@gmail.com, intel-wired-lan@lists.osuosl.org, kuba@kernel.org, pabeni@redhat.com, hawk@kernel.org, alexandre.torgue@foss.st.com, netdev@vger.kernel.org, tariqt@nvidia.com, aleksander.lobakin@intel.com, mcoquelin.stm32@gmail.com, saeedm@nvidia.com, davem@davemloft.net Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" This series introduces the xdp_rx_meta struct in the xdp_buff/xdp_frame one as a container to store the already supported xdp rx hw hints (rx_hash and rx_vlan, rx_timestamp will be stored in skb_shared_info area) when the eBPF program running on the nic performs XDP_REDIRECT. Doing so, we are able to set the skb metadata converting the xdp_buff/xdp_frame to a skb. Update xdp_metadata_ops callbacks for the following drivers: - ice - igc - mlx5 - mlx4 - veth - virtio_net - stmmac Lorenzo Bianconi (4): net: xdp: Add xdp_rx_meta structure net: xdp: Update rx_hash of xdp_rx_meta struct running xmo_rx_hash callback net: xdp: Update rx_vlan of xdp_rx_meta struct running xmo_rx_vlan_tag callback net: xdp: Update rx timestamp of xdp_rx_meta struct running xmo_rx_timestamp callback drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 9 +++ drivers/net/ethernet/intel/igc/igc_main.c | 5 ++ drivers/net/ethernet/mellanox/mlx4/en_rx.c | 3 + .../net/ethernet/mellanox/mlx5/core/en/xdp.c | 8 ++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 3 + drivers/net/veth.c | 9 +++ drivers/net/virtio_net.c | 3 +- include/net/xdp.h | 79 +++++++++++++++++++ net/core/xdp.c | 29 ++++++- 9 files changed, 146 insertions(+), 2 deletions(-) -- 2.46.1