From nobody Wed Dec 24 10:02:01 2025 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 F3C5028DA0; Sat, 27 Jan 2024 14:34:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706366063; cv=none; b=Nydk2BskrJW+NukTSZN07TTKRxmZE8mtcpfQsllXTF9xfKX+/+hkF7xaC+wpsex1j6UIXYRf2zhuADnKmzSS74O2Vtt53GBJFVSmS2HLys4un+fo9xKxxZiSK6FY36RTMIMVZAK1mJ/YKbq9QWxPBFCbrD6FTnRpG/GsrGCHBdo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706366063; c=relaxed/simple; bh=SwgbL6R6rjtyODBrPAM5Rc0AGgL/I6UBGUJ2RqnTg48=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Wbst8kfWDKhFPPiJMpk+ViGE1BX2NXIlSeM+bEbaEgkYSNcwfhGO1+lOabIirWfCkWIxDiJgyqpyMJCan1Fovc1wrm1MOEuan4rXU3xG+SfAHJpjPxUwa5GEyeW4+vKz7pnHVNtwrYUHt+wfVa+PiUnsoBTm8qHCdLa+jhEMoL4= 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=YQvYH4fF; arc=none smtp.client-ip=209.85.210.180 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="YQvYH4fF" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6ddc0c02593so710896b3a.3; Sat, 27 Jan 2024 06:34:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706366061; x=1706970861; 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=DU2wtgM1sYNlNq0tFEhGIhqfxPmXsPzm3Qf0VdWlxiM=; b=YQvYH4fFUFBcbwa4Did97zyYjEvtbvlOS3Vigb8e4/ZEmxGfP7B4FuNwa/s/3t15iT LzPcC0dALn+NoMwVREOdOn0r6LBueQ2eDthgJUu6yMP7rzx3Iqis5mTTN9JpohZ7JPYK 2ksxwKEfvy/XJDggrqAb91PZIRn3WURWK1yO7iFHvLlC4L9nmGWqbpCRFYrnnb/zYmkO tn/zJWmWLlsWPZ3WKkW884daEpnXCsBq4FGN4AeB6jDTz21Oh6E0b6+2K51lyQHTXR2G d7uw/yt/m09mRIMWWumNT4T7dJmijqXko87fwUKnExiOm5Cc1h87/YKtdKpYygh63dkO 4d0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706366061; x=1706970861; 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=DU2wtgM1sYNlNq0tFEhGIhqfxPmXsPzm3Qf0VdWlxiM=; b=PM0AdlCXBj0mF/vntMgO5mrB6PoLCsETEbFTjJpnhA29z1jxi7fOHd4p+8BZ8R/Jt+ TfMmtamSED0+iy9jmKNhwgCJEJeSKmnH4muWA9CKp3iemNCy077rVQtXHtYU2k38Kph8 WrU3sW8fjwpR2bqusZ1Dg5wv3YaqgWepZhCFctNyWWkmjwNJOglspymSD2VclQExONhl w45J8lUqEq1TnU+dANTb2y8oHvlLD8KyRYDNMs5Ba3KRPf0Us8Jlku313lL7oVGfpXzP aQVzk1kPyG+n1wlv9/KZllBDxqgAESo9yOa3k0pNI6xJyd4wWTKaYCEiLJ5Y3HXsXm70 ksoQ== X-Gm-Message-State: AOJu0YyVZ/i3xZ12r+Sq2X9fgr+Sbti45yyifuwf1mp0v6v8DN2+dT6P L72CQ2usxz345wEFHWcn0ekVOuvN0pBE5IoGhsF78fV8UDfLbjma X-Google-Smtp-Source: AGHT+IG79Zpy/H6uiiFkhouwH1vLAj1aKTq5+TRNZxxjlwoi3YI92aWeNRfzzNSVgiDi8iil7zeXCg== X-Received: by 2002:a05:6a00:2fc3:b0:6d9:bb7c:a56d with SMTP id fn3-20020a056a002fc300b006d9bb7ca56dmr648845pfb.35.1706366061065; Sat, 27 Jan 2024 06:34:21 -0800 (PST) Received: from ocxma-dut.. ([153.126.233.62]) by smtp.gmail.com with ESMTPSA id gu7-20020a056a004e4700b006db105027basm2852463pfb.50.2024.01.27.06.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 06:34:20 -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 RESENT v3] ethtool: ice: Support for RSS settings to GTP from ethtool Date: Sat, 27 Jan 2024 14:07:48 +0000 Message-Id: <20240127140747.905552-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,gt= pu(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 not include a TEID. gtpc(4|6)t: Used for GTP-C in IPv4 and IPv6, with a GTP header format that = 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= . This tunnel is created for each UE (User Equipment).By performing RSS bas= ed on this flow, it is possible to apply RSS for each communication unit fr= om the UE.Without this, RSS would only be effective within the range of IP = addresses.=20 For instance, the PGW can only perform RSS within the IP range of the SGW.P= roblematic from a load distribution perspective, especially if there's a bi= as in the terminals connected to a particular base station.This case can be= solved by using this patch. Signed-off-by: Takeru Hayasaka --- (I have resent the submission after making revisions based on Paul's advice= .) Sorry for the delay. I've been swamped with other work and fell behind.=20 Since Harald has been supportive of the basic structure in the previous pat= ch review, I've kept it largely unchanged but added some comments and docum= entation. I would appreciate it if you could review it again. .../device_drivers/ethernet/intel/ice.rst | 23 ++++-- drivers/net/ethernet/intel/ice/ice_ethtool.c | 74 +++++++++++++++++++ drivers/net/ethernet/intel/ice/ice_flow.h | 22 ++++++ drivers/net/ethernet/intel/ice/ice_lib.c | 37 ++++++++++ include/uapi/linux/ethtool.h | 41 ++++++++++ 5 files changed, 192 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..6bc1c6f10617 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