From patchwork Thu Feb 1 03:33:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takeru Hayasaka X-Patchwork-Id: 195143 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp185044dyc; Wed, 31 Jan 2024 19:34:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGx1qnLWPQ5nzrjY6XUboGOq7Rs9Uuvo6LD1GTlDzaC8eM6UzTz6rnosR1DAqKGGccwoNN1 X-Received: by 2002:a17:906:e0c6:b0:a35:8c8b:942f with SMTP id gl6-20020a170906e0c600b00a358c8b942fmr764413ejb.62.1706758466647; Wed, 31 Jan 2024 19:34:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706758466; cv=pass; d=google.com; s=arc-20160816; b=u4QI0NaAMdt+MQlw48RvTzifgUMIi4GigpEd8K3I64qryHY3st4asOP8etdEGH1Zur xAIg88N/9p6apjkvzWGgd7JYssgnw0fJwf33BGJyNh9MhGDGOKrwG+Lf5xfo9jjeQvAm Ngqua7ayA1wIKV9QUDz1Jk6ARBWIrTq64twRpVgb7QyqixS77ylMv3Gx5Dib3FLZgxO4 kvqTDCLtPF1ESYvGbcclJpi8e63Z53c8kuSx41YganVMF0gLr7/oQV3lM55UwBrMtw+0 ja0q5AvyXIkCtrhVduoKbkEBiwnG3YN22ld6DrbrlAzgtkJsVJth38NGbtaER0jLgJu8 /3kQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HUVdlwWAjj8cbBkvTW+76Z/trcG39A3eTZ0exUJTSf4=; fh=EowIzQ4XXgUYGtM5cW+karpfcv6Im1dqdt5dZ+PaiJ4=; b=ImRoMFTq2eau03+BT3wqM8VmugLj6X8MyweeUj5hggFAn7Br4OMk19ypnAtsMr13Zb uH2Fe0IV2G3AR0pBtxTWDOJNi14fkaYHxu7pDZyCcHVqIjY8dx7/TmY4kUpVAl0mBmiv f9FyrMZmvCXgpY8pCiGsrpxnYgvYdOezjBA062bLkBDiRLQBI/3RFtnOHaUeHH2KnLlt HIcFIEFFQHVPLn76EQ2jrdAVzPtEGIfHwmAblMqm1d6YZdmLbGvPSuVHrvJzsuRRa6Df 6BAWS0HLKt37iO5/S+P9jU//AwZdg9iwANClNeMTyt2wJmKSP//0yd5+O1Z2ekprdKzP IR8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lNe3NSHN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47585-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47585-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCUKUt+hc0Nz/NdJlyhLeE1FWwE5mAWIZlpy9uod7eba0mwWUTyAgPdyrkj5ee3O0hH3i5ldX1R0pF7VG522XH0BaEqfZg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n27-20020a1709061d1b00b00a312726ed6csi6341603ejh.944.2024.01.31.19.34.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 19:34:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47585-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lNe3NSHN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47585-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47585-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1CBCE1F23347 for ; Thu, 1 Feb 2024 03:34:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 911463BB2C; Thu, 1 Feb 2024 03:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lNe3NSHN" 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 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-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789665965959413662 X-GMAIL-MSGID: 1789665965959413662 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 --- .../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