Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp533376rdb; Mon, 29 Jan 2024 09:32:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQVLUtNCs/QibZNWErGl80W+62OIVxQ3yxOkB/DkNhgz+8PDpFznoIVtvs37gfqk8Gp5me X-Received: by 2002:a05:6a00:3d49:b0:6de:209c:3228 with SMTP id lp9-20020a056a003d4900b006de209c3228mr2537263pfb.6.1706549573718; Mon, 29 Jan 2024 09:32:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706549573; cv=pass; d=google.com; s=arc-20160816; b=BQ87FYWiLEr7kbsW59xelQkqjbTzS9ZlJ1QqJE3CXwuUyHMuor0llNbcEW1sra2U5g DZStkcbrNSQlsfFxxv7o6sQ2d5kkkpyDWACur8NEX7TMdChDrCXOZPzmxNYhFMojfb+A DARCEGSkdj6Gfzbzr3FGvXkOEWZyeGAxxHXfYpS1e/oQKmwE3LxIPVyV5qg0lPf6p58g tKyDfKjHP35BSf59NADVxSNZsiUsjs/iSZ+CKBJFKmsMowfWXft5J77GyKdw6zBvTnPj Lgbg95NXoGl0GUcvtnAyq84RjUcDqrkc6qJ386aAn4zZaylWuVbeq+Jz4w18DnjEfpZw x4Ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ZClCW9vnR2liJzgFnwFbIEEQTLWGo4GjGMmtjegps2c=; fh=2qdykOujE+uRupormGfYuNwBfBSto8NePl2HEL1aRN0=; b=bjRIITdSrhPbB3Bpu+7DIOctytAUBNmzNxZcB9pouUe4QwDxutXrmh1F0l+kvOlyOd jOAgfUPDaW7AFf2xUzJ34k6KFPrjSYZh2ArHj3wYNTqQzfKQJOSLF7T4oUNsOQeDMPrh bisWosDYZkRTap3DW6LExorpxTwdqxQMIFUFD5KZUt5djSnX4+9299nGL1xynRplrQYy z6pi1L5RgyKs9PwbIxobO6Twz4Q3lmyOFF8MeXcr0JQ1DcPf/vkhnXu8bJkydXntVrQl PMKTpONCkzl8Ts1ggAaYSZsyu7sdFoD4RzdTOoyAvBr1FCxoxk+AeAjFH0SPRDUsj4b3 KPTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SckMYNwi; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-42891-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bx40-20020a056a02052800b005d8bf74a070si3386625pgb.556.2024.01.29.09.32.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:32:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42891-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SckMYNwi; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-42891-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EE6AE2867FA for ; Mon, 29 Jan 2024 14:23:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8FA865BD9; Mon, 29 Jan 2024 14:23:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SckMYNwi" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 F2EE64596D; Mon, 29 Jan 2024 14:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706538187; cv=none; b=LX25tNI0qj6GC9RJG91XKFadJmVmtJ5XJ41aws3jMcSTQ2nPoSxVmNYqs2cwdt5s86Z8cn/JTnemSEG1K/WQGCqqTHWQe/qjm+wSP9b+MbVwnleUcGf8Zu6JjHtJdf2Um4xYyFCtrFkxSxY9i1IHEp1GHG4b2TzXjLQFb5LsbvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706538187; c=relaxed/simple; bh=jLumZPTDUu9m3VOSkaduIPuQVqxovZno0a7wx9mMz8E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pMifd8PIeuWshMtnkX3TMHZYkMUjQ3cyZnl5k0UjgqW0fPIJGPfHcXqJBekOnCb0NWOHqIk1nBMyaNvFt1mmVuKpepjlbMTT/vaQOEWr0i7s8a8y++jUuIF68Qjh7idFtp/oO6xLhBSn3RJXJLiHQ5QLTZpYPIlwvdsVBYgeUTI= 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=SckMYNwi; arc=none smtp.client-ip=198.175.65.10 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706538185; x=1738074185; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=jLumZPTDUu9m3VOSkaduIPuQVqxovZno0a7wx9mMz8E=; b=SckMYNwivYnadminxKMbkTWHAsjh6SOtaH6XPnW01npr6pUpXzKLOPW7 2V4qw6pOUZWocaLuon+6PG5zNWLuwjzlfz0LvKXTHrVR4NEf5iJqI865o yU/2dhMzf+8nEMiuD9a0hKt0wrhlx6hyEjYW7uTbb5tXzPEqVtP3Xb5XD bJVnAZlWK74ZCpRl1iX1khRlLqam/eZJ8QyqU6Xmwgie0h0gyGGX4vtk7 xAYN6+RfitrCJvKOv5yypzB8aaNFK4xyw7E3qJ2y4uxCqUTSafLpYvdRv LBMek5uPURYWw9VFU6VHITvUNGOnZ2VsZCVRRWuiuZzjg+PHP62j7nTty A==; X-IronPort-AV: E=McAfee;i="6600,9927,10967"; a="16320270" X-IronPort-AV: E=Sophos;i="6.05,227,1701158400"; d="scan'208";a="16320270" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2024 06:23:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10967"; a="960900662" X-IronPort-AV: E=Sophos;i="6.05,227,1701158400"; d="scan'208";a="960900662" Received: from mszycik-mobl1.ger.corp.intel.com (HELO [10.237.140.138]) ([10.237.140.138]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2024 06:23:00 -0800 Message-ID: <154f979e-a335-461b-b72e-5e9c54fe940c@linux.intel.com> Date: Mon, 29 Jan 2024 15:22:54 +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 RESENT v3] ethtool: ice: Support for RSS settings to GTP from ethtool 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: <20240127140747.905552-1-hayatake396@gmail.com> From: Marcin Szycik In-Reply-To: <20240127140747.905552-1-hayatake396@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 27.01.2024 15:07, 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 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. Do I understand correctly that all gtpu* include TEID? Maybe write it here. > 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. It would be nice to see a link to the patch that added GTP and 'e' flag support to ethtool itself ("ethtool: add support for rx-flow-hash gtp"). > 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. > Since Harald has been supportive of the basic structure in the previous patch review, I've kept it largely unchanged but added some comments and documentation. > I would appreciate it if you could review it again. Please wrap all text to 80 columns and add missing spaces after ',' and '.'. > .../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