From patchwork Fri Jan 26 02:09:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takeru Hayasaka X-Patchwork-Id: 13531938 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 860704687; Fri, 26 Jan 2024 02:10:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706235020; cv=none; b=oyZ/Ep1s5qcBWNXSGIrEF+B2jy0ukso+5MAExzXs0OhGQ+ALEIJ4kMiPTgJpCDHYfhKPKm6azWX2h7yQ3EJQ/1Z2Wg1vhhxIcM7iixzJYNe75I8KTo0aWXblJIkfS/KfYX0l6brLd8LvpFgj6pDPfpZ/8BTajNaAJ8omC+gBMKY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706235020; c=relaxed/simple; bh=6v2FN2p81kidGMFBYwnq5KT+TLDFlAZQmj4CY+00aGQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=m/NYumyNUI8cmt425lRYFIAAySCMbGNAqos2T7PDygFCOFIaxavrR0UMEgO8hZPsyPSnIRqKFg5YpfHhKkYD6erYO6UYFzl92KsBA9npxLUlwAlRd/zJStsgbn0cz4K52IdIcYAO/slPzAtaFYsYRCgHjoviyIdshGu/1RjGmK0= 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=CFcBfBg2; arc=none smtp.client-ip=209.85.214.179 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="CFcBfBg2" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1d731314e67so31104495ad.1; Thu, 25 Jan 2024 18:10:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706235018; x=1706839818; 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=r8B1O00SdeuKEg/sH/EZDUoyazytZxHGS8kZbS7zUUA=; b=CFcBfBg2RHXUQ24Ha+IBIj2b40/u4XexcChNshKdX1/CnPF0f/DbJoPtgcZjT6Kb3C oXTOBBjRc7XbbIJpI5xY8Uux6ZM9MGE6r2DzROEj6e8z6WTSYJ5hTmiQBIxQO3KjuQja PjLgiJGMVmLji4jqOZ2HUUTRRGGbJK6vtNZwOQgwpXgr+z5GkxZswF/P+1EEvFWKbGDd klSaISDzwWkiDuGBY7SpwDooQMXks0OOpLlzVAKZnbv/Q0U/iK+ROd/noCSXnWKIyxG+ /rKNQ7LtQiEFM6UJHnxkAZuOueZ6S1Q05BW4jOIexCm4cIeOAMHsRx6U+r13XK6LFvET KMTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706235018; x=1706839818; 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=r8B1O00SdeuKEg/sH/EZDUoyazytZxHGS8kZbS7zUUA=; b=qVyZqVXxqp0ug5nb02q3r+BmxywLB9bNKCuAIDTMH2VCzOEYsr9S+mtgfmvBdrrCmi Dz3vq6a1ULqInh0Ra3hyQnVj7S8npRKEa2ym+h0mjJJ2CSGLBUo6BvoYA6LJgfE6uZAG TG5zk6ekPI30Ytgp8ghGF3MXLsizkCoCyi6dYucPs1z8XqirkbaeznnwO9a/cQBO0SeS n5eXvjsos+AZG/77XzbTieErOy3fTniajiwwaGpBjij2NIRD4IhVsmD9u12LvP56XNqb uJp3t+nGaSVuAqOwHoeKeJuNhHCsYxGt0mQS9KEoQ4l25aNomg2Aam2BHZxEBiwyl1Ke 7lzQ== X-Gm-Message-State: AOJu0YzMUCC9SHABqHlqH+U4O0st8d+QvSUVZn1AfNSIvxfSu4yzdrYl f3kZX1IwiWUeGUY0z+v55zpKlY3QKHi721ibrSY3lndBu4dhkjpq X-Google-Smtp-Source: AGHT+IEnfqve9u7cQMYFpRFk7ZdEbzNkrVyrNDi2hpBieIyDeV3JIlXOErueU5u3CfvIRuzgiFmCzA== X-Received: by 2002:a17:903:191:b0:1d4:e084:571e with SMTP id z17-20020a170903019100b001d4e084571emr713097plg.129.1706235017658; Thu, 25 Jan 2024 18:10:17 -0800 (PST) Received: from ocxma-dut.. ([153.126.233.62]) by smtp.gmail.com with ESMTPSA id j3-20020a170902f24300b001d6f584ee1esm157288plc.34.2024.01.25.18.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 18:10: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 v3] ethtool: ice: Support for RSS settings to GTP from ethtool Date: Fri, 26 Jan 2024 02:09:49 +0000 Message-Id: <20240126020949.758175-1-hayatake396@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org 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 (Tunnel Endpoint Identifier). 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 (Packet Service Charge) 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. 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 --- 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. .../device_drivers/ethernet/intel/ice.rst | 23 +++++++--- drivers/net/ethernet/intel/ice/ice_ethtool.c | 42 +++++++++++++++++++ drivers/net/ethernet/intel/ice/ice_lib.c | 20 +++++++-- include/uapi/linux/ethtool.h | 37 +++++++++++++--- 4 files changed, 108 insertions(+), 14 deletions(-) diff --git a/Documentation/networking/device_drivers/ethernet/intel/ice.rst b/Documentation/networking/device_drivers/ethernet/intel/ice.rst index e4d065c55ea8..4b32e510ecdb 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