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: 195142 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp184357dyc; Wed, 31 Jan 2024 19:32:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbarJZig9eC2Yv6migNg7qxiz6kG7jW9KSZOri3OMWks+hbq/jWNLCDsmElAi76URl+ZhB X-Received: by 2002:a25:ef0d:0:b0:dc6:b9d5:9b14 with SMTP id g13-20020a25ef0d000000b00dc6b9d59b14mr3830184ybd.34.1706758339204; Wed, 31 Jan 2024 19:32:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706758339; cv=pass; d=google.com; s=arc-20160816; b=UVxmYHn63/Vhfk6Iva0JueEs8iK3IagCqRsOZtKUkSrElrd12gNludH1MWl2CpJp48 K6X+Eok2iAHqvK+YPIUg4Zh4/TyNYVhzleK31H7+sEIyTexlAzh8AO84s4mRnr+Lv1w1 nybAbIN8GkC8aDnoZZTyR/JZ3RMS23WguI0fLo7xr0XL3yKoJVwku1uupwRld/zkkErH EiwxDbdfdFbezic4iKTuVz++lFlgqUZKNaics8h5lwQGr7vMsxOCYOuSjvmpfFatSVx7 nkzoaTPdl7+972i5N7RMUhszaKgag0e518v4+zRcD8DbntGgYeYvrqL1l+Yh7ohgmccc Bcnw== 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=JzYahzksaLg+rID5lr4U0lZEZgaBbNeDpRPaL1irTEs=; b=fVe8rJn7Gw/MQ3CcWSZmMO44zHivn+EQ2zyui+8HLYvyKMQgY8hYCNuTC5mKPLXf/M FbDKLJTEqbcFzRI2OvEBO5CpQylU3ykBJR99ENwqx7OZaDGEn9C5YwVmjUl8XnKmHBmN vkNFqXAh7hOHrseghYRJAUV2lxglKj+CV4Vo7gpsX2dto+Ur9OZ64OT3G+OPqPx1H5MP T0t91qknAIayJAIi03lzmG/giVUFYU1X7kAJqaMIg4+JTD6+2shTY1E3bp2hdvb1bDiF Foc7hzwN6n513YgPduqkellZAre7rOE742+G4Iodyz6LsSO2/qNJ8F1npPRUA1SMEW0u +nnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f2qnltL+; 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-47578-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47578-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCXFarfOIATqF/86gw7SDnG4hXZ09ql/DSJyDGjepVsVQj7twQ1klhQKbiNBTrVV17G7PDahEwBFjXsoPwE4182Z7l3d7w== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l124-20020a632582000000b005d747d63541si10898689pgl.471.2024.01.31.19.32.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 19:32:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47578-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f2qnltL+; 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-47578-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47578-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3CF04290E19 for ; Thu, 1 Feb 2024 03:29:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 319343C6B3; Thu, 1 Feb 2024 03:28:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f2qnltL+" 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 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-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: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789665832341878052 X-GMAIL-MSGID: 1789665832341878052 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