From patchwork Thu Feb 1 03:27:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takeru Hayasaka X-Patchwork-Id: 13540599 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 D5AE93BB2A; Thu, 1 Feb 2024 03:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706758122; cv=none; b=ibdVYZqA6k0ihzU9cMSimpbsjddHlAlJKqdVZYj7XbVJ8EWXGuhNS+c7e09U0pIDk2R8M/4lnIdUKzfojmpaViw7QT/ajOjmTjqJHuXbNTJGXWebeLFWjooH9kfxRQzOOmViMz4KzoyxNycb2ce8CayOfDfU3njegW6fwEhAnd0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706758122; c=relaxed/simple; bh=FcN9Oz8uRf7SVlupVgLPbuVjVr6ymhkfTfSTUN2UYTs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=awuxt9CeL0z4iKlaRwDqMvWxy/YpvL+UVsVfQYB/UDoy9wpXIxZItolGq0H7YaocLPHk5XtIRMgJhqpERFnEldDweywLECwrgwTgg9TQDKpAJOatspGM+5sQAbRbvMR04WrZ92QHHls/vptVxRhAOsz6Z1aU4TU4D2IPMS0Jitw= 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=f2qnltL+; arc=none smtp.client-ip=209.85.214.181 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="f2qnltL+" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1d74045c463so3844895ad.3; Wed, 31 Jan 2024 19:28:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706758120; x=1707362920; 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=f2qnltL+f5eBov1K46SLpTbtOisGUwqrPqBdlmkmAYhzKJzJjuUpS7vD8Y5pAxrXNr MndfGKuYXHjzrICxteByANcIPhfZCTuqANFfK8Mv/ld8IQkHav8N4q/nhZjpRMGJ1f07 n23g+nia8bNce5yFBgCZwoWTT5BijKyUJF2uwK65LfSi1kqyBtlELDWGk1WD99vjo/HQ 4GIKISJUe1ilaBYDs/mwyjKB/eyyPCOU7U2LSrG1tJ2fyqhFoqk9BX0VYUtAJr7S3NMB HQoxnYvTLY8WmgFTzPahZJ5bnfqHbQPeGIvfjiBOHNlTkBctqyM9GcKMKs3U+2VlCmw4 mxMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706758120; x=1707362920; 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=DoRmJ/lMMWYnFBuXlRfqM8TuGgTatlBp71adl6cfLHRTjhCqMrN3sz8s2xrsrcBJaM 7I77FPyfMdbohRLKSaHhmtJU38DtIn1bY4YIgqKS2XfibRTrK6OHCX4tuNEJlVOAKDa+ nZXDX4xYTJc9wm/9yVRFlHLmdprkRZ0fkT8iOqdxsv4B8/EvELxQfa9LJII5c6cytmbg RMSEhViiufKs3rX4g/PomIzsErxLgwsuHSIMICUJRpridqw6YQCvqYzHdP/pX6QIHyMb ev4fwY0fK5yGW7H5aB4bhWGYzWowrYaHWhDgfwSGg2PLjoOHuaunl+SztzJjpYMQMQAf phKA== X-Gm-Message-State: AOJu0YwdtUfkzI9LZdCHilu6lcz4Y31PPvgZgdZ8QOg7dPRVPfLaVYiC EtKEZcZ3zyxJiZCqMyMChyMAhuAiBEoNGYHVJRz/RF9cJ7WZ0dly X-Google-Smtp-Source: AGHT+IENeTPn4CY7P8Z4GNVey20rB374YNBqiOzPH1Wo7h6vbnTx2fK0vOIu6LtQ2lqlONZrwZk/tg== X-Received: by 2002:a17:902:c60a:b0:1d9:464b:68a5 with SMTP id r10-20020a170902c60a00b001d9464b68a5mr1548349plr.56.1706758119982; Wed, 31 Jan 2024 19:28:39 -0800 (PST) Received: from ocxma-dut.. ([153.126.233.62]) by smtp.gmail.com with ESMTPSA id im23-20020a170902bb1700b001d8c8c903c0sm347852plb.149.2024.01.31.19.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 19:28:39 -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 v6 2/2] ice: Implement RSS settings for GTP using ethtool Date: Thu, 1 Feb 2024 03:27:50 +0000 Message-Id: <20240201032748.1027121-2-hayatake396@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201032748.1027121-1-hayatake396@gmail.com> References: <20240201032748.1027121-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 --- .../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