From patchwork Mon Feb 12 02:04:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takeru Hayasaka X-Patchwork-Id: 13552675 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 89C9F5684; Mon, 12 Feb 2024 02:05:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707703502; cv=none; b=RB6iE4/C9qpoUxbAv0YhD+UkjiRaoiQLdQ9rN49Dxf/Zttz6i6neYWhEV1ZiOVGhO9ZCC+yWzcqGh0PPu3/r1v9ofActFwb51WhqAbB2PKBIl5HQszyZKv05P4YbsjKSgh64ww3Oj+pghYrF/6xytcKUXG8DWmFXXwrakqRrvzE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707703502; c=relaxed/simple; bh=/yK0O9oNpKpf7hz/NM0vxbU2X3FQwYfJGi/o7iMCJgQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dDX2f5tHGSCjKFOhwIxb7pVWY2wZNoJo/NEX9uoAdGN6kEq7zIkyxrqDhI1Xj+t+cFY4pdqgFva3QKtCB7dgkrTI/IKJl3gY9b2C43lOIxVQfdWdcFqcUJyKwx3COJqXie+GV41dp0n8d/1S/t85r17ZZoqKLmKV79AIzJaORKc= 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=Lo4Qxfg8; arc=none smtp.client-ip=209.85.210.170 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="Lo4Qxfg8" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6e04ea51984so1000250b3a.0; Sun, 11 Feb 2024 18:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707703500; x=1708308300; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HWGN4oCsEiEGwruB1PokEjKJ6NRiHp24aKJ8G4QKuGc=; b=Lo4Qxfg8a20ULZgUxrr3/+zJGJn6nbDzYsn8/qxknRnqYmMeuYzmPFP2QTUfuB2cEs UEp2LOGVdem6ree/qj2lUoR5kLB1rwvMvRhOMFa6f9iPk9zfdM9y50bY8hoirKc/CXeY NhzJbcD3JgPEQRRiAk8Uj0jXZtBe9G2YfLAgKiCGz2V7kThiJmUBzSRDOB3ZijMFy930 KLCbWeiD1i3Q9C5XE1fiensl6Q3RL5LPIgxDloRsa/sW0Mn+FBUgOyl6KO0DSh2ESr/E zh3s49ZXsWhnsXoxw7dpLItqy2jBzLIxdXig9S2GnA/WRt/Zvc+CBp+8eXdbZ7NVB+dI zslA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707703500; x=1708308300; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HWGN4oCsEiEGwruB1PokEjKJ6NRiHp24aKJ8G4QKuGc=; b=DHhhbSWcgUvZz78Exjn46yXNX3SPwwDyKavejyHZVMb4ErSPuct+imPtsRRult+0jA W3IgEP1PANSFcjkbEHCPIpZvELua1Qkc3DdHpVEZO+sJaR7nxJ1YKuwMkJl+lsatvww/ +rLaUDxM4GxFpvU5jInRSy1UEr9QhulnFFcVMg7V3UPLJlJe5512v55L2/FYkb0K0204 59eBLz7nptIP83l0VREm1m7VeAsJbNOZV7MrBRXatfBNaRdrLLTpanqRCDDcRP5qbUME 26hyI9nJu5zKE3edlUr/ZXH/5dPqo9gMOH8lnlQbXEX+TwGR/1PWytkSGK7BTMABwt5h 98WA== X-Gm-Message-State: AOJu0YzIh3Xb7ErrnBJeqiFsNeGFA3YbBkwXu+Bz6oiv1zPGAf2UUstN SNlJkYISUdjhvVSrLxZaar8aNqvONXS+u8M5+8Dz510+/9RDz61D3TwXvaez X-Google-Smtp-Source: AGHT+IG5aGyymoD7kxgUCk0G1zufO+GYgmCAP1IkCl9IsiWvkjHAvecsem6Lmp/8yH/Rl5y0dlDIBA== X-Received: by 2002:a17:902:e847:b0:1d8:fae3:2216 with SMTP id t7-20020a170902e84700b001d8fae32216mr5273989plg.35.1707703499713; Sun, 11 Feb 2024 18:04:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXYIj58maB9MbZ2dpMGsClqWQOQkSIZ3rNWAmWLQD5GM9zPAxfR31HHMZ2+oap7VeUod5RsmXk+jFduRqcZ+iFtwwQdr7BV0DVEC0wvFb7S+at9+6GvxpAvffqzpF4eP/whZdoY1XXCUWihChb8W8CfkuolDwMVbBgBsslRO7d5s4XaObeXYIfgfVtL/nQTnInlg2jUavhnVAn7xqoYkesdHSeug8k8+GxhqTPl24+6AGljyiVDjFNfuQaYWuGXyXUWUITXluIGlZlpygtvow+EUFh2sQxd3/yK0ym3V0deXkGfBCUyUTzaNbAg23KEDscRZlq0X8o24yOf926zPLX7YKa1hbZKBNr1gQroybt1pED9tNa6PvWXaXrSceL9+8o/LvG2G5NdKuZstVZS2yLq1cuTRBvr1cEgsE78/akmdpaCnhSs0Ogp4p9pVy9L05P9WWHvZf1cqxt0URiuOZCWKYMf5+ZcU8SlmvB+TQaJXVo4N+u0GcDZml4= Received: from ocxma-dut.. ([153.126.233.61]) by smtp.gmail.com with ESMTPSA id kc8-20020a17090333c800b001d5b93560c3sm4913556plb.167.2024.02.11.18.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 18:04:59 -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 , Marcin Szycik Subject: [PATCH net-next v8 2/2] ice: Implement RSS settings for GTP using ethtool Date: Mon, 12 Feb 2024 02:04:05 +0000 Message-Id: <20240212020403.1639030-2-hayatake396@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240212020403.1639030-1-hayatake396@gmail.com> References: <20240212020403.1639030-1-hayatake396@gmail.com> 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 Following the addition of new GTP RSS hash options to ethtool.h, this patch implements the corresponding RSS settings for GTP packets in the Intel ice driver. It enables users to configure RSS for GTP-U and GTP-C traffic over IPv4 and IPv6, utilizing the newly defined hash options. The implementation covers the handling of gtpu(4|6), gtpc(4|6), gtpc(4|6)t, gtpu(4|6)e, gtpu(4|6)u, and gtpu(4|6)d traffic, providing enhanced load distribution for GTP traffic across multiple processing units. Signed-off-by: Takeru Hayasaka Reviewed-by: Marcin Szycik Tested-by: Pucha Himasekhar Reddy (A Contingent worker at Intel) --- .../device_drivers/ethernet/intel/ice.rst | 21 ++++- drivers/net/ethernet/intel/ice/ice_ethtool.c | 82 +++++++++++++++++++ drivers/net/ethernet/intel/ice/ice_flow.h | 31 +++++-- drivers/net/ethernet/intel/ice/ice_lib.c | 37 +++++++++ 4 files changed, 162 insertions(+), 9 deletions(-) diff --git a/Documentation/networking/device_drivers/ethernet/intel/ice.rst b/Documentation/networking/device_drivers/ethernet/intel/ice.rst index 5038e54586af..934752f675ba 100644 --- a/Documentation/networking/device_drivers/ethernet/intel/ice.rst +++ b/Documentation/networking/device_drivers/ethernet/intel/ice.rst @@ -368,15 +368,28 @@ more options for Receive Side Scaling (RSS) hash byte configuration. # ethtool -N rx-flow-hash