From nobody Wed Dec 24 01:42:56 2025 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6436867724; Tue, 30 Jan 2024 09:53:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706608401; cv=none; b=qd9ScZHfVdKJYa1IOdG37iJekMxPufKvpz6pCPoUcUSHRWHLnglVlAvwoISVBELqMvE9qEZLzWL+Vg2Vn2MiISPxeSQDPGQqO0ZK69r5qQ7N8KblbStJYS7FRXCgL0SDfgNhdYGT7s8OFtb+tlel8kWxjfRm7pBasb6sCLjCTW4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706608401; c=relaxed/simple; bh=wtaDpHQjBEdC7/zkr+lb8YZqLRe5LEzL1lVxvFwalMg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=rw/yarLlk89jUNOJar1xggPD/iBP9Fee+MwFNuj468WPNuajYJcZ1Z1pqrtfNwrfiTdoKvHIyXl751qwHLs2U5Lo0jYKB4hc7+XcUZrkzXzyoK78+ezcOvdCjvXc1VJFvWz8l7oQY4j/a2VFp0/ll+c9sBM1THz93JldbzIS4wY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JtN54auz; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JtN54auz" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d8dc0172d7so10519785ad.1; Tue, 30 Jan 2024 01:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706608398; x=1707213198; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+VJ1MS6porrPSquWwAd+36Q3EfEI0u3EFCLw+C38UP8=; b=JtN54auzxBN1PDiAegq9ZPX04r0Ubrp1JyoBmtOOa47RGsDS7tcijYOE93HX6IzhIP Tbpv+xgqlFcw8NiNGldqJ11pfGUcsi7pS/VgM71WSCbzhtkFQN09gb0HX87pcV9MWZML G1YeqAbBJ0NzQ1+MVtnevCD6iXY6eazTp3435OleNYvygL/2WsiGQPTxG+jnEO40R/ZJ pmVmoGPcVAiYihuEVoW3PRxdguutgC3H+ej3QjgMu0RLPqsobc7w6Mz9vyt7anXLFGD6 0bsze9tdUkAPcJPV3DEoisl7kmeZfx6aoVV7HIVYKzFyxstSbheKQ7wMMbbrVoMstgLK jJlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706608398; x=1707213198; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+VJ1MS6porrPSquWwAd+36Q3EfEI0u3EFCLw+C38UP8=; b=g/ISgIRyX4vVPysnh4N2IcyTTKUcKi5HMRlZOZntWO9I7Fqxk3Y8ctmtqzIFABOJwZ 5vTu2+fZieAbAWe7sfeHQ5+Z1nfWyXcHHq6Az7fsLYe9v2Ajsg7sRhia8iJ7SVezya9t lvn8kzuWgcJsT46YQ5n898xGGngpjL0R23GqwJdi02eFQQ4w2UJADFnyJKGRty97p7fu zqNsJEm4vZ+JydIMayuAWyxDi16aOiYHUuXHFE5GgicP3oMLMtFiInnHF/QBSStiXo/p P7ruVcKplRA2KBCRywMKEqAbPjFKorORuBTQ/bAZV0weUYJrK//yRAL7j3m4LbYZPHoW HIJQ== X-Gm-Message-State: AOJu0YwBZTN3VXsZmFGBBpNo5Z34d5ie6HhDDXEZ0SIdWrHLD11lbzLg KX04dipAoeTVEdmgayCx9TWBHC1GNgeRAi20CjCutrklYCHIjoBv X-Google-Smtp-Source: AGHT+IGrMdpunsFn3oBZZmTD7Mg83U3z7kzfben30Khd8wGAYHdux23vAjy2S/xcktd8RyrbAu2MmQ== X-Received: by 2002:a17:902:654e:b0:1d8:d583:1811 with SMTP id d14-20020a170902654e00b001d8d5831811mr3494710pln.38.1706608397617; Tue, 30 Jan 2024 01:53:17 -0800 (PST) Received: from ocxma-dut.. ([153.126.233.62]) by smtp.gmail.com with ESMTPSA id r18-20020a170902c61200b001d8f0e4bc32sm2624486plr.144.2024.01.30.01.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 01:53:17 -0800 (PST) From: Takeru Hayasaka To: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mailhol.vincent@wanadoo.fr, vladimir.oltean@nxp.com, laforge@gnumonks.org, Takeru Hayasaka Subject: [PATCH net-next v4] ethtool: ice: Support for RSS settings to GTP Date: Tue, 30 Jan 2024 09:53:07 +0000 Message-Id: <20240130095307.951049-1-hayatake396@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is a patch that enables RSS functionality for GTP packets using ethtoo= l. A user can include her TEID and make RSS work for GTP-U over IPv4 by doing = the following:`ethtool -N ens3 rx-flow-hash gtpu4 sde` In addition to gtpu(4|6), we now support gtpc(4|6),gtpc(4|6)t,gtpu(4|6)e, gtpu(4|6)u, and gtpu(4|6)d. gtpc(4|6): Used for GTP-C in IPv4 and IPv6, where the GTP header format doe= s=20 not include a TEID. gtpc(4|6)t: Used for GTP-C in IPv4 and IPv6, with a GTP header format that=20 includes a TEID. gtpu(4|6): Used for GTP-U in both IPv4 and IPv6 scenarios. gtpu(4|6)e: Used for GTP-U with extended headers in both IPv4 and IPv6. gtpu(4|6)u: Used when the PSC (PDU session container) in the GTP-U extended header includes Uplink, applicable to both IPv4 and IPv6. gtpu(4|6)d: Used when the PSC in the GTP-U extended header includes Downlin= k, for both IPv4 and IPv6. GTP generates a flow that includes an ID called TEID to identify the tunnel= .=20 This tunnel is created for each UE (User Equipment).By performing RSS based= on this flow, it is possible to apply RSS for each communication unit from the= UE. Without this, RSS would only be effective within the range of IP addresses.= For instance, the PGW can only perform RSS within the IP range of the SGW. Problematic from a load distribution perspective, especially if there's a b= ias in the terminals connected to a particular base station.This case can be=20 solved by using this patch. Signed-off-by: Takeru Hayasaka --- v2->v3: Based on Harald-san's review, I added documentation and comments to=20 ethtool.h and ice.rst. v3->v4: Based on Marcin-san's review, I added the missing code for GTPC and=20 GTPC_TEID, and revised the documentation and comments. .../device_drivers/ethernet/intel/ice.rst | 23 ++++-- drivers/net/ethernet/intel/ice/ice_ethtool.c | 82 +++++++++++++++++++ drivers/net/ethernet/intel/ice/ice_flow.h | 22 +++++ drivers/net/ethernet/intel/ice/ice_lib.c | 37 +++++++++ include/uapi/linux/ethtool.h | 48 +++++++++++ 5 files changed, 207 insertions(+), 5 deletions(-) diff --git a/Documentation/networking/device_drivers/ethernet/intel/ice.rst= b/Documentation/networking/device_drivers/ethernet/intel/ice.rst index 5038e54586af..6f48688940c4 100644 --- a/Documentation/networking/device_drivers/ethernet/intel/ice.rst +++ b/Documentation/networking/device_drivers/ethernet/intel/ice.rst @@ -368,16 +368,29 @@ more options for Receive Side Scaling (RSS) hash byte= configuration. # ethtool -N rx-flow-hash