From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 8DFD77C08F; Tue, 30 Jan 2024 14:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706625686; cv=none; b=mAedPtDOFOPE8Apq5cCiqVzUxLu6o3pXf2Ev6QNl2TyCV5MgIcXK1DfLVp4YKAeNLhT15Ad1KScz8QHyXby/8iYCzsmNlv2ReCc/DUsB/yt2TZsYf9oc4in9NhJdrlcVXM4Ykb3jL+4yOurIAUNlM3UjG44bdGVlCkgYwDo2Q50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706625686; c=relaxed/simple; bh=PXZdwNK53cAhwjeBTpBqIUIBacQc9dvzL/B/xGVMkWM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=n1KmWLyQGE/IONfuW0iJZKoLJtEABWvIuWjajMVlm8Am8SY9M1M9Qq8BO5JWfuxq4+khLL4u4/oF1kACW1amg83ZbW6MvIdbyo9Tsaoucq61BT7dr0KvidpLwU6Ax7FxW5zYjtGL8syfe8C4xMh1ypJUwdmOMEINRiZ5rSWJey4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=IVv9XLuO; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IVv9XLuO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706625684; x=1738161684; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=PXZdwNK53cAhwjeBTpBqIUIBacQc9dvzL/B/xGVMkWM=; b=IVv9XLuODC9UWKd46wO94Nseu9oEUAIzBDE7Sb3yYj/cZ3hZjvYEfwsB ngHFti+Io3M1Kw/XKrP6HgVlsorCdpTfWDoJ/ZYeDaY21y/+IgnlixYxW vWgjJUU/XaPAhmrRy0TiIkfJTP5H/JcsvEp8YNyU68ozNi6V6s/GZPC3D SEaklu/7UyNhVTLaNpnr45E8MmfkcvcdSKr4svV0d1eUXvzEA1i1ecr3N dKSMiQJuHbqVdlEnfAUymOC2/a6AQ6pbmk4qI3qs2Jec+25wUsv8GPhN9 N043anFgNGJUe9Ox83044aHCqdz1rOcnt9XakBq2tIgsh/+VxLl9j/MC2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="10399294" X-IronPort-AV: E=Sophos;i="6.05,707,1701158400"; d="scan'208";a="10399294" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2024 06:41:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="878454212" X-IronPort-AV: E=Sophos;i="6.05,707,1701158400"; d="scan'208";a="878454212" Received: from mszycik-mobl1.ger.corp.intel.com (HELO [10.246.34.225]) ([10.246.34.225]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2024 06:41:19 -0800 Message-ID: Date: Tue, 30 Jan 2024 15:41:14 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Intel-wired-lan] [PATCH net-next v4] ethtool: ice: Support for RSS settings to GTP Content-Language: en-US To: Takeru Hayasaka , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet Cc: linux-doc@vger.kernel.org, vladimir.oltean@nxp.com, linux-kernel@vger.kernel.org, laforge@gnumonks.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, mailhol.vincent@wanadoo.fr References: <20240130095307.951049-1-hayatake396@gmail.com> From: Marcin Szycik In-Reply-To: <20240130095307.951049-1-hayatake396@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 30.01.2024 10:53, Takeru Hayasaka wrote: > This is a patch that enables RSS functionality for GTP packets using ethtool. > > A user can include her TEID and make RSS work for GTP-U over IPv4 by doing the Remove "her" (sorry for missing it last time). > 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 does > 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 Downlink, > for both IPv4 and IPv6. I'd still add a short note here that all gtpu have TEID. > 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 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 bias > in the terminals connected to a particular base station.This case can be > solved by using this patch. > > Signed-off-by: Takeru Hayasaka > --- > > v2->v3: Based on Harald-san's review, I added documentation and comments to > ethtool.h and ice.rst. > v3->v4: Based on Marcin-san's review, I added the missing code for GTPC and > 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