From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 117BFC47DDB for ; Thu, 1 Feb 2024 03:33:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id BA22A4020C; Thu, 1 Feb 2024 03:33:54 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org BA22A4020C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1706758434; bh=HUVdlwWAjj8cbBkvTW+76Z/trcG39A3eTZ0exUJTSf4=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=OnAoJj79bLq1agY8CSPDJbeI0Ynu3+LPcfi3vAcpACM2oqKejpC3gS8AU67C2Bg82 Z3AOa8E4N+PJtTaSX/3qCFMzUJReolYw846f6Mp13avqR7MpgmfdGbLhmK9NquoiTd qGdrUQytk6AI3bnvEZSbaKypMVMOnX4DeaD82ZM53Sf4VFhaMg6fWDogs75Zq87uy9 9Vh9hHxe1+LXezlaHGT6d9xcPj9hfEhvWMzjNqxRl/ey0JIwF1rCvWGGVD3tLyb6Id 0/Xy9BKrlAu/pVi4QiWwquYkTeNyoBh2SeLJ3Rqm5jBgILdaLPYTddsynHFl2xLKbp y4U7va9yNAP0Q== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0F0YhQ1-KXKf; Thu, 1 Feb 2024 03:33:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 7DA51417FB; Thu, 1 Feb 2024 03:33:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7DA51417FB Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7C8021BF951 for ; Thu, 1 Feb 2024 03:33:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 55BC781C6E for ; Thu, 1 Feb 2024 03:33:52 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 55BC781C6E X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D_kbu3ISyDkV for ; Thu, 1 Feb 2024 03:33:51 +0000 (UTC) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by smtp1.osuosl.org (Postfix) with ESMTPS id 508EE81BCF for ; Thu, 1 Feb 2024 03:33:51 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 508EE81BCF Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3be78c26850so326820b6e.0 for ; Wed, 31 Jan 2024 19:33:51 -0800 (PST) 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=U+PFkfMH/Dx0/dFDIh1mS15KeyT3RD88lMlIvwCVS/CTLcOFJfcXpXRffHgRQdx0jw 9UAnbPzRcJw2EWv04CrinsRp0CnsBBc47QnLPbYroIgrC5P4p0skBsTNQ0n6CUbYJ1Hg 5CBUVqOG+gyOq/X6V344cZ3zl1g1Y2dMInP9rblBm3SPGAIP0gfEkif+XAeoJX/NhxNP CE03WUeymApMD/FNVG47m/C0k+UbwqQhNVanMOwnK/d8WooWgAhkMevf/xOsjJswOx2N aNpGCkkgVtTOkcvsdmIFv74OaNdlVbSy6SXbeinUC/wwPKJkpP8zHIwbnRO6UyBOeOuR jNiw== X-Gm-Message-State: AOJu0YwtNxHC1oMHa4/IYEycFLldAK8tONyzyDnFdDCw2o0Rwrl+HzVE O2xZ5kOA1Q9aq+L1QqdtkzDqecDyg2sAJe/3bzrU+SvbAe6K2ukH 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 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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706758430; x=1707363230; darn=lists.osuosl.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=XuLGQeX+PMhYr1V0tDu22QYTPObrkE9NqWSRCyjLml/WGMXHXAXg9G7H+2rQW1d/HY qa8D8OHDFtisyvRp7xSwMGn06ip7XmXmifLimXSuDH5aeQO89l8czOLCgW/KLWu2Oa2f ouMh9xU3OrlmFCb6/7DF9nW/rruJEysORuq0s9Xpzphr+NE4r09kbHMFPviXxVrvSFY1 tS/3YeEXMYAmhvLb3RYttPga+mIMH6BfCXA2xYJA8wWmhGETWJdBkzM653pKmp2SR4V7 RGvPspO5hEVU/hUTqDMV9LrIyLQkgaG2SJ08viailNXJqztTr/5LQcULrtuNQKspXfYS Wovg== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=XuLGQeX+ Subject: [Intel-wired-lan] [PATCH net-next v7 2/2] ice: Implement RSS settings for GTP using ethtool X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-doc@vger.kernel.org, vladimir.oltean@nxp.com, linux-kernel@vger.kernel.org, laforge@gnumonks.org, intel-wired-lan@lists.osuosl.org, Takeru Hayasaka , netdev@vger.kernel.org, mailhol.vincent@wanadoo.fr Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" 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