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 31798CDB482 for ; Wed, 18 Oct 2023 17:06:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A7BFC4217A; Wed, 18 Oct 2023 17:06:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A7BFC4217A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1697648817; bh=48zfvdihG+xcBErHXLzkIsgbJPHyJ48LUuy+YSISeXo=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=Lw0idi+e9jAC0KNs4QuIHuSlnE+CkAJ7eD5cPwtr/5jI8fEJ/KzhyC14YvrJoLd/j vY+nRAe/6FmS++CfS0NTiSO3ngxkBiHPfP/3z2CUs0VJn4qHJP2LyseHPhRSOFiGZo U6Si7wR+My2G+jNPYhZ76FDOKgzeWhmsr9bngx5i/dbUiG6cAzcEIOX09lnl/D91uB 8NfAv37Ng+1pObZa/c0AofzBNnwv3GpUs9y0owgRT4qG98FK5/yoW62rHBxToRgu47 DVfaPk0PfGPvYY8dT8fWceiG70B8Mf3n6sFmuVorB/4gFqWMUi/H4zb/8EMTSUsBHW Fmkxqr0Ajmd1g== 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 lQFI0dCt0IN4; Wed, 18 Oct 2023 17:06:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 9E37A42184; Wed, 18 Oct 2023 17:06:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9E37A42184 Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 085881BF27A for ; Wed, 18 Oct 2023 17:06:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D2D794217A for ; Wed, 18 Oct 2023 17:06:54 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org D2D794217A 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 3U4tPYVvfeX5 for ; Wed, 18 Oct 2023 17:06:54 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by smtp4.osuosl.org (Postfix) with ESMTPS id DF42842184 for ; Wed, 18 Oct 2023 17:06:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org DF42842184 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="388924761" X-IronPort-AV: E=Sophos;i="6.03,235,1694761200"; d="scan'208";a="388924761" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 10:06:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="822494033" X-IronPort-AV: E=Sophos;i="6.03,235,1694761200"; d="scan'208";a="822494033" Received: from nirmoyda-mobl.ger.corp.intel.com (HELO azaki-desk1.intel.com) ([10.249.38.47]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 10:06:43 -0700 From: Ahmed Zaki To: netdev@vger.kernel.org Date: Wed, 18 Oct 2023 11:06:29 -0600 Message-Id: <20231018170635.65409-1-ahmed.zaki@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697648813; x=1729184813; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/AH7FG5H24zeN3zHGTfVvmBBV3l6sDBNWvaVvqh4yB8=; b=ajmx5XQ/PNv2IQ/VqqJcTyNLw2TGNDu0nlUKpNr/BIQKgLIl96W3QHVF OHV9Nq14dDOrgJMhv0ndLCUpDj5dyUJhOfvrVP1rbnYjA5PZU58FlmnjV HZeZjAPonkpd7U7GY0wuh0ujirFoUQLGpJITa0pWhs+eri1XfzgBFSagk qIMzDNQ2bED3Wp27W1mWA4gMglBtZqt43R/SPsbxFaPEi5WoL8tknCqb+ 8USzyROTh3+lBMkxIqvOMANOcjuE9hm2AsjaKyaychzC/Evj265rwRfkK 9TMUgksqaG7Hd3pGp3OL0urCw1ZZ+wjwWRSQ9AqdnXP+MjDYT1aMHWcTk w==; X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ajmx5XQ/ Subject: [Intel-wired-lan] [PATCH net-next v5 0/6] Support symmetric RSS (Toeplitz) hash 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: mkubecek@suse.cz, andrew@lunn.ch, willemdebruijn.kernel@gmail.com, corbet@lwn.net, vladimir.oltean@nxp.com, linux-doc@vger.kernel.org, jesse.brandeburg@intel.com, Ahmed Zaki , edumazet@google.com, anthony.l.nguyen@intel.com, horms@kernel.org, kuba@kernel.org, intel-wired-lan@lists.osuosl.org, pabeni@redhat.com, davem@davemloft.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" Patch 1 adds the support at the Kernel level, allowing the user to set a symmetric RSS hash for any flow type via: # ethtool -N|-U eth0 rx-flow-hash s|d|f|n symmetric-xor Support for the new "symmetric-xor" flag will be later sent to the "ethtool" user-space tool. Patch 2 fixes a long standing bug with the register values. The bug has been benign for now since only (asymmetric) Toeplitz hash (Zero) has been used. Patches 3 and 4 lay some groundwork refactoring. While the first is mainly cosmetic, the second is needed since there is no more room in the previous 64-bit RSS profile ID for the symmetric attribute introduced in the next patch. Finally, patches 5 and 6 add the symmetric Toeplitz support for the ice (E800 PFs) and the iAVF drivers. --- v5: move sanity checks from ethtool/ioctl.c to ice's and iavf's rxfnc drivers entries (patches 5 and 6). v4: add a comment to "#define RXH_SYMMETRIC_XOR" (in uapi/linux/ethtool.h) v3: rename "symmetric" to "symmetric-xor" and drop "Fixes" tag in patch 2. v2: fixed a "Reviewed by" to "Reviewed-by", also need to cc maintainers. Ahmed Zaki (4): net: ethtool: allow symmetric-xor RSS hash for any flow type ice: fix ICE_AQ_VSI_Q_OPT_RSS_* register values ice: refactor the FD and RSS flow ID generation iavf: enable symmetric RSS Toeplitz hash Jeff Guo (1): ice: enable symmetric RSS Toeplitz hash for any flow type Qi Zhang (1): ice: refactor RSS configuration Documentation/networking/scaling.rst | 6 + .../net/ethernet/intel/iavf/iavf_adv_rss.c | 8 +- .../net/ethernet/intel/iavf/iavf_adv_rss.h | 3 +- .../net/ethernet/intel/iavf/iavf_ethtool.c | 33 +- drivers/net/ethernet/intel/ice/ice.h | 2 + .../net/ethernet/intel/ice/ice_adminq_cmd.h | 8 +- drivers/net/ethernet/intel/ice/ice_common.h | 1 + drivers/net/ethernet/intel/ice/ice_ethtool.c | 25 +- .../net/ethernet/intel/ice/ice_ethtool_fdir.c | 35 +- .../net/ethernet/intel/ice/ice_flex_pipe.c | 43 +- .../net/ethernet/intel/ice/ice_flex_pipe.h | 4 +- .../net/ethernet/intel/ice/ice_flex_type.h | 7 + drivers/net/ethernet/intel/ice/ice_flow.c | 439 +++++++++++++----- drivers/net/ethernet/intel/ice/ice_flow.h | 46 +- .../net/ethernet/intel/ice/ice_hw_autogen.h | 4 + drivers/net/ethernet/intel/ice/ice_lib.c | 117 ++--- drivers/net/ethernet/intel/ice/ice_main.c | 49 +- drivers/net/ethernet/intel/ice/ice_type.h | 1 + drivers/net/ethernet/intel/ice/ice_virtchnl.c | 55 ++- .../ethernet/intel/ice/ice_virtchnl_fdir.c | 35 +- include/linux/avf/virtchnl.h | 16 +- include/uapi/linux/ethtool.h | 21 +- 22 files changed, 652 insertions(+), 306 deletions(-) -- 2.34.1 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan