Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F4401A29A for ; Wed, 6 Mar 2024 21:19:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709759948; cv=none; b=hnttXZxG/9ctHWT/Z6Ij1Geq+IQfirnvctgLHaa+hkjPeQPsrKo1HGMwHmo6EyJ/nx87wWUGVjzQffaMWJ83xoEGC/WJa28f/swPGgtKpqJRQI4iOjvUKmOH9+aChvP0c6jJ6YToa17P7FgL/N79GUg6xiR1LIKTsdD4f4xpblg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709759948; c=relaxed/simple; bh=0BcaJ4ggv7ghmcgvIJpz+R4nAm5EC37u7LDH4055dWI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SqIWO/5Iho3oGdsa69MsxRfL0LpIX3CyhTlgb65CarkP3rVy/+ljAm6H9CzfYYFlIBDyW4379TEbd5PvbcljER9i1Y9BgdfuW7Qgv+pm+E7QOGi6SJh6pAPHyB4Zcw9wsurS+C5udb9t28edcbyMp7/1pXKnByYUzb+kF+avitE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NSZVetFF; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NSZVetFF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709759947; x=1741295947; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0BcaJ4ggv7ghmcgvIJpz+R4nAm5EC37u7LDH4055dWI=; b=NSZVetFFLUCeimnUYWeS8j84qtw34h4VQUxBDIAng0vfXiarMegXfmwi lkot5qS9jCRADHcUZF7YHFf+x90uME6jjJaLkr+ow/HQWzBsaZ3oRPpiw CndV1qYx/oilqTC2C7S6W7K5ih1OSuFdGJ4BDanSjR9XP8FszEOdKusX5 Kxesa8HWHCMcwz1hh4y+hQYOPr4eU4dx10/n+JADV90PRvtEIIGCylgR5 6KCJbfkeJpA0GlaTlBZt6eBbEm7+jcSxvim5tZD9/N3eoDb4NjY/qtmx3 KlNE8srKf6XNEOnLNWHiGaxbAIooDyT/l/9IWLEwkWBBnB7JA8HObXhMI A==; X-IronPort-AV: E=McAfee;i="6600,9927,11005"; a="15539754" X-IronPort-AV: E=Sophos;i="6.06,209,1705392000"; d="scan'208";a="15539754" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2024 13:19:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,209,1705392000"; d="scan'208";a="10039725" Received: from anguy11-upstream.jf.intel.com ([10.166.9.133]) by fmviesa006.fm.intel.com with ESMTP; 06 Mar 2024 13:19:04 -0800 From: Tony Nguyen To: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, netdev@vger.kernel.org Cc: Takeru Hayasaka , anthony.l.nguyen@intel.com, mkubecek@suse.cz, vladimir.oltean@nxp.com, laforge@gnumonks.org, mailhol.vincent@wanadoo.fr, Marcin Szycik , Pucha Himasekhar Reddy Subject: [PATCH net-next 2/2] ice: Implement RSS settings for GTP using ethtool Date: Wed, 6 Mar 2024 13:18:53 -0800 Message-ID: <20240306211855.970052-3-anthony.l.nguyen@intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240306211855.970052-1-anthony.l.nguyen@intel.com> References: <20240306211855.970052-1-anthony.l.nguyen@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Takeru Hayasaka 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 Tested-by: Pucha Himasekhar Reddy (A Contingent worker at Intel) Signed-off-by: Tony Nguyen --- .../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