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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2064C3A59D for ; Sun, 23 Oct 2022 16:38:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbiJWQim (ORCPT ); Sun, 23 Oct 2022 12:38:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbiJWQij (ORCPT ); Sun, 23 Oct 2022 12:38:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 070A21D646 for ; Sun, 23 Oct 2022 09:38:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8EF9B60C05 for ; Sun, 23 Oct 2022 16:38:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27242C433D6; Sun, 23 Oct 2022 16:38:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666543118; bh=FSRDRfFlGGlPIzaQwJERVcJaJvHEUxttTLK/bXfvGzw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TrOUOd9cW0YfCyZJsn/DimqRo4mdE4yhp+WHomBhcDEJe+s8cXw0e4rd8N+3UPJrW jtqFNSh6q9rwV7cW53+DZ7CCU6wJJIjky8nwuXD7FVzgOWlB/t/6Hk4o1kVKxxrmcu 7UAIoHaIDvMT8F+pKUlM1xuAu4xzOhATHYye9PwmkAdFllTDGXHEe3GQtplQsxm753 A2/w4gffsGsSv+CLdv3NOJWAMhNQXYuuAgGoKv8ThyRg/yCt9eSeEWQiDBA2pBJ+zt 6lsH2PX0LEIHgsg/k6T/si1uDjkTxRFgaG5PRb6K8qDd9evyBzpaT+bky40uMrSQVH 9x87brIAGRZ+w== Date: Sun, 23 Oct 2022 19:38:33 +0300 From: Leon Romanovsky To: Jacob Keller Cc: Jakub Kicinski , David Miller , netdev@vger.kernel.org, Slawomir Laba , Michal Jaron , Mateusz Palczewski , Gurucharan Subject: Re: [PATCH net] i40e: Fix ethtool rx-flow-hash setting for X722 Message-ID: References: <20221021213819.3958289-1-jacob.e.keller@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021213819.3958289-1-jacob.e.keller@intel.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Oct 21, 2022 at 02:38:19PM -0700, Jacob Keller wrote: > From: Slawomir Laba > > When enabling flow type for RSS hash via ethtool: > > ethtool -N $pf rx-flow-hash tcp4|tcp6|udp4|udp6 s|d > > the driver would fail to setup this setting on X722 > device since it was using the mask on the register > dedicated for X710 devices. > > Apply a different mask on the register when setting the > RSS hash for the X722 device. > > When displaying the flow types enabled via ethtool: > > ethtool -n $pf rx-flow-hash tcp4|tcp6|udp4|udp6 > > the driver would print wrong values for X722 device. > > Fix this issue by testing masks for X722 device in > i40e_get_rss_hash_opts function. > > Fixes: eb0dd6e4a3b3 ("i40e: Allow RSS Hash set with less than four parameters") > Signed-off-by: Slawomir Laba > Signed-off-by: Michal Jaron > Signed-off-by: Mateusz Palczewski > Tested-by: Gurucharan (A Contingent worker at Intel) > --- Jacob, I don't see your SOB here. Thanks