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 smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (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 BB717C4829A for ; Mon, 12 Feb 2024 02:05:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 79EFC41451; Mon, 12 Feb 2024 02:05:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JhvWfQobOZpJ; Mon, 12 Feb 2024 02:05:03 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C5BEF408E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1707703503; bh=HWGN4oCsEiEGwruB1PokEjKJ6NRiHp24aKJ8G4QKuGc=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=qgnlS/vzC+4k1Qbn/H1kwr9AdhcJiQe83MXHnA7iRPTinc0R2nzD/gWHCLq+poUgZ H80uxwXfdhlvcgrqE5hZb36+E7COOP6NzVtYO+VMEmT9Gb+iYaYptZa2Baa2S7fpH9 XLdtyxK7E8TqJmyvWbQUFRILVrbyk+iTzStRDU8B9XW/ki29HktmoBv51eZEx62aCl rmCFZ2LwT9PM3tqCFKEa9HlfKFyi+euDvEYCQ0UngVkstEtoYRtBUfraXu+iODO5Aq /UtVDbkcM5qRtFrltbUKBzOjY5Dr89o7mFlnmANfdHigp3F863n9IhYwUXuxeZiVxn 55gSITI9npGSQ== Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id C5BEF408E2; Mon, 12 Feb 2024 02:05:03 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A1B401BF420 for ; Mon, 12 Feb 2024 02:05:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8DA6480DAA for ; Mon, 12 Feb 2024 02:05:01 +0000 (UTC) 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 u31IenXlD6Wd for ; Mon, 12 Feb 2024 02:05:00 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::431; helo=mail-pf1-x431.google.com; envelope-from=hayatake396@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 7C3EF81349 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 7C3EF81349 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by smtp1.osuosl.org (Postfix) with ESMTPS id 7C3EF81349 for ; Mon, 12 Feb 2024 02:05:00 +0000 (UTC) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6e09aada5fdso656913b3a.2 for ; Sun, 11 Feb 2024 18:05:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707703500; x=1708308300; 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=HWGN4oCsEiEGwruB1PokEjKJ6NRiHp24aKJ8G4QKuGc=; b=CiJuhaMIXMDKsz43H3G7NLWIMUM1jJNpJ8jOSvArsWz8E1Z9l9jLu+X387ngr4PsLo mHlm7OaiLpeCg/lYUL7sVZ7VXZ1NiEYF5o9N3GOIF3997UJ8oOswbpycaCILemF9l9dF O772hPPN+P1Dm+Y1EBKDgu8uXg+4r8QlbDO8uD2tuwnsEKzWyziz3M3POH1JhKtbmcy1 VOoOPyZqOyUHQFKHmwhKIRFh5NR8DGWoC0Gir9Ek0QznSPjA3Vsukz058RKqiPgZosyo xXoMTJPlVhNK40tqLdQ/nyxLMzwWxdcRuln/LWQtzKbpXT8YKRy54DTJQ/pITKFOugq2 Hw6Q== X-Gm-Message-State: AOJu0YyCxdCJayFBiyDIg1Ld6oC0nK9Kt0fgxIeJUwLRI6RvBwjn8n4I ZH3hdkXsGkED+KvHuIZj4Ju5qbxmp0b1SnCdf3eb4AfLkOgSj9Nb X-Google-Smtp-Source: AGHT+IG5aGyymoD7kxgUCk0G1zufO+GYgmCAP1IkCl9IsiWvkjHAvecsem6Lmp/8yH/Rl5y0dlDIBA== X-Received: by 2002:a17:902:e847:b0:1d8:fae3:2216 with SMTP id t7-20020a170902e84700b001d8fae32216mr5273989plg.35.1707703499713; Sun, 11 Feb 2024 18:04:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXYIj58maB9MbZ2dpMGsClqWQOQkSIZ3rNWAmWLQD5GM9zPAxfR31HHMZ2+oap7VeUod5RsmXk+jFduRqcZ+iFtwwQdr7BV0DVEC0wvFb7S+at9+6GvxpAvffqzpF4eP/whZdoY1XXCUWihChb8W8CfkuolDwMVbBgBsslRO7d5s4XaObeXYIfgfVtL/nQTnInlg2jUavhnVAn7xqoYkesdHSeug8k8+GxhqTPl24+6AGljyiVDjFNfuQaYWuGXyXUWUITXluIGlZlpygtvow+EUFh2sQxd3/yK0ym3V0deXkGfBCUyUTzaNbAg23KEDscRZlq0X8o24yOf926zPLX7YKa1hbZKBNr1gQroybt1pED9tNa6PvWXaXrSceL9+8o/LvG2G5NdKuZstVZS2yLq1cuTRBvr1cEgsE78/akmdpaCnhSs0Ogp4p9pVy9L05P9WWHvZf1cqxt0URiuOZCWKYMf5+ZcU8SlmvB+TQaJXVo4N+u0GcDZml4= Received: from ocxma-dut.. ([153.126.233.61]) by smtp.gmail.com with ESMTPSA id kc8-20020a17090333c800b001d5b93560c3sm4913556plb.167.2024.02.11.18.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 18:04:59 -0800 (PST) From: Takeru Hayasaka To: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet Date: Mon, 12 Feb 2024 02:04:05 +0000 Message-Id: <20240212020403.1639030-2-hayatake396@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240212020403.1639030-1-hayatake396@gmail.com> References: <20240212020403.1639030-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=1707703500; x=1708308300; 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=HWGN4oCsEiEGwruB1PokEjKJ6NRiHp24aKJ8G4QKuGc=; b=IimneTY+be555MJe9JB6Tru6jXt4rFIBBYozehqNJJ6UWel2/ncq7AcvKsSucOLY9z pvc1kKWUG4lPYB1AkYeTJxDJwfcdvRu1cVEYIzSKzp2No9v0Y/O1HeaCWfUIvrg0LCih 4rTySORaZBXSqC4jpbyLGomY6BJTWUpEddO/clTZb5kalOLkMhZ60cQ5cTf+BiHOW808 yj18zXnkRRkWjrdfvv+wQk4uycN1JAA60SbfKYiH83hYKzPTVK0DHVcEbrZOsPDYG0xF QpeMKKZsoJtjY5EBVK/cS5bEC7djuVyCgcCE/aEUFN/hlDmfDCVQVqldJHdZc2XbNqza Foig== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=IimneTY+ Subject: [Intel-wired-lan] [PATCH net-next v8 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, Marcin Szycik , 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 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