From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 451A239FF7; Thu, 1 Feb 2024 03:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706758433; cv=none; b=VxLdlsN7HSEBObq1tjoM3GAFXB9WDnoovEleIppfKJrZCzafSPso+EhdkUva15uIwO09CTXtdUitvJjvSnDcxh/pWolHzFTmwF8y/EBfRz9cQbHilAbkGwAJvMiJXYiZU9nw+VKJ405TtxZw1gQ66XlH/wRY/8hLinOGTp/uUrE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706758433; c=relaxed/simple; bh=FcN9Oz8uRf7SVlupVgLPbuVjVr6ymhkfTfSTUN2UYTs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=S3zNVqdyHPFE3tRzjvc8xUo7ETFsEi1mOrz4krZMWkXjrJewabZ/znHZwNYhA54qnnMzIbKuq0I30LVGovInwUP+dklfsHJdwEshQP6NIL9ipmujnPTtSARUP2wuLT8tEZdZHKWCsuMPgW3do1PwagzW1nqDWn8PWjgELfciV1M= 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=lNe3NSHN; arc=none smtp.client-ip=209.85.167.182 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="lNe3NSHN" Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-3be78c26850so326819b6e.0; Wed, 31 Jan 2024 19:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706758430; x=1707363230; 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=HUVdlwWAjj8cbBkvTW+76Z/trcG39A3eTZ0exUJTSf4=; b=lNe3NSHN5p8j607stWRha5Qb/cHuPzEf1WqlIfGkzsBbwqPI3s4dq0QMetC9XRBMWf e16TZlfEleCcYoUKmvQ+miJEmsdN4siBEIpkd+GaPc8mOnxV1LqzSUHxgh+PrtZnc2L2 nze7962RJDkb9Bv7Blku09s5mXDbkMPSK8IlLV0uNVpkfs/Dgd7YMA+tMevQkdfWsEqK WDS1g8MXcgl0+fGnL8Y5ValSMsctl8GR9AyiMvH0YieE30doIUpKJAbUpLBI3tc9zhma uJ1AvQiuFijo8OUaqvz04LylL3oBzoVkY05jAhbkeHr/f6JgoAJvAYa1idzg7XDOYHyS Xmlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706758430; x=1707363230; 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=HUVdlwWAjj8cbBkvTW+76Z/trcG39A3eTZ0exUJTSf4=; b=mtwWHQyzZpGFAG/YRJSsHfC+no3hWdHGtW03HM0qvjqVEU7EXPNHFa7qDV9UUC8Gpk pOoVFRFZvPAShN+h0Z/TgWtHwb3wGoxqU/7bz7/b9vI4jpjTPqQPUF1dC2vFq99DXWzJ pT8meSQUkpLLBsNfm6981oksAdL5QwBP1u0jy3DevKziHLblkunrmtHvDyxoial7zuzA GORnj4ZuGz6k/Ll7us7ElqrTWi9M0nFWWXiJgmdAZGpwC/pq0AVLVUaJCmQVKFtAzJWI jh3hFpnw5nE0JdAFraSjyxbC5Dzx60M4G/56kzGTwlEVNWfMdx2HFOWAjqDF4bhkGEMf 6KwA== X-Gm-Message-State: AOJu0YzuvIRc5KC8uzDz7eiktjRM+w/ojEQSGX6jWZ4nuOcpJcLURsu4 RLhUcXD+KQ+QNAayXJIRifb7zV6+yefxxWQG2Jwgk8pRLwKFIueh X-Google-Smtp-Source: AGHT+IEEQt79M0JlAm/N6QYBVf1P5+8iXykqitwBZ0+r/C/s30/Gh+B6WaaGUKshLmWGPL1ZumbTew== X-Received: by 2002:a05:6808:eca:b0:3be:97d3:2f68 with SMTP id q10-20020a0568080eca00b003be97d32f68mr3322808oiv.36.1706758430150; Wed, 31 Jan 2024 19:33:50 -0800 (PST) Received: from ocxma-dut.. ([153.126.233.62]) by smtp.gmail.com with ESMTPSA id n12-20020aa78a4c000000b006ddd2be2169sm10661625pfa.73.2024.01.31.19.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 19:33:49 -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 v7 2/2] ice: Implement RSS settings for GTP using ethtool Date: Thu, 1 Feb 2024 03:33:10 +0000 Message-Id: <20240201033310.1028154-2-hayatake396@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201033310.1028154-1-hayatake396@gmail.com> References: <20240201033310.1028154-1-hayatake396@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../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