Message ID | 20230301115908.47995-2-aleksander.lobakin@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3594676wrd; Wed, 1 Mar 2023 04:14:24 -0800 (PST) X-Google-Smtp-Source: AK7set8xRqZa7nnPl+/AwlhUh2MQu+HTJheGEyMl4OC2ILIrZ+EfN/Mb0QCByTharR9ivhHVhd/c X-Received: by 2002:a05:6402:43c9:b0:4af:740d:fde with SMTP id p9-20020a05640243c900b004af740d0fdemr14019992edc.20.1677672864192; Wed, 01 Mar 2023 04:14:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677672864; cv=none; d=google.com; s=arc-20160816; b=0zcnwzGZPkLoLY8hAvUybPYPehc0sTh4/IDd7j1MfUBFW6zfcVt+1zyf9U2o1CfiXK /N77id6ptDb+6Gu/6c7AnAlAavG+vTnNRMd47IfcFOWJQf/WHhbfDnNcZFP+2hDt3CZy grHlCY42s1F2et/1ehav4T17OaJfOn1DxMfw6oyg4pxN3caPpmpNLMc4guh+twXfrySh IXEqpcU7yXm6VeZR9IYAffiZs6xdVgIIyHA0REiO6eVEXPF5pnfW9nJ9htCpQ0/FizKM VlEZ3NA5w553DdcR30AF/Z+7IcBzZBmjD/H8fpjMTz1YbxiCPr5YnpDQaoIACS7H2x8u d8Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YrxDC/6dT1rc/Y2IwBqwiXkpFskUydPSc/2vojN9XtM=; b=osQzgNeA77ol3Xx9MrZ5Y9kNgyZcMdfn/AQnIonvNWx10sWDiKDBYlkRAAVkTaLq3Y 7yDiPWlQpniUcj1IsoHe8BIfFBGuhVbYf+fbVIR1s5JHYS6Q1TpDHIXpS0EFhNGfPLbT mtRx25fwsOZt3evdKw9n1buPBY516QFwk3bLkGLWM4ZL+gWZXjCO14WAMykhi6u/pKgI R2ADx8xMPVATNFXYHBCYY4POmkt9Wi6zSGBqNBk6UdeT/HbhUhWf76DNEbKz8BsYzuj6 FcBxqqTLGuk6S5CZdlhreipJ9BjhbGhPVTn1LhJbfGyP/jg4tOeusuvhtNQI2HaohKR+ +4fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TzLDd7hv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a1709066a8d00b008dcebb5a118si13225167ejr.88.2023.03.01.04.13.59; Wed, 01 Mar 2023 04:14:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TzLDd7hv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbjCAMAU (ORCPT <rfc822;david.simonyants@gmail.com> + 99 others); Wed, 1 Mar 2023 07:00:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjCAMAP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Mar 2023 07:00:15 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7F9303FD; Wed, 1 Mar 2023 04:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677672014; x=1709208014; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=exlFMpVF5vBUX97QGUIEERFQuxyaIwqV/MHoSJIWeoc=; b=TzLDd7hvMsjoyjvNSC/zngxparJWq9BPrgrP+S/CRL2t3zDYQ13YC1WR iKMJaPf6ApWCy8BcuCyRIqqfTRoB5yCNhqSFPJQlehKFkQCIjkX2nJpid ZrPS32HR0bbuvcAGaOA6DIAsegzS1oQtqWBE2EjrthJQI/22nj7PbhZDa wox/l9W09gjdXfFZid5vEJx+uQN4sx3JA2Z0RYfdGC+o3FVREeiTpq6A/ 29NZpFPt7si1Bm15GQA4Owq01+wyt0n3ZFX+TIKTQP8ZxWETZPCV2jJZk MWHSAu1v/W68wCIk4QJAdX0LQSknSSaKcLlqBuTKJn1j9GdJ+cnJKwSVy g==; X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="331870258" X-IronPort-AV: E=Sophos;i="5.98,224,1673942400"; d="scan'208";a="331870258" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2023 04:00:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="743405103" X-IronPort-AV: E=Sophos;i="5.98,224,1673942400"; d="scan'208";a="743405103" Received: from irvmail002.ir.intel.com ([10.43.11.120]) by fmsmga004.fm.intel.com with ESMTP; 01 Mar 2023 04:00:10 -0800 Received: from newjersey.igk.intel.com (newjersey.igk.intel.com [10.102.20.203]) by irvmail002.ir.intel.com (Postfix) with ESMTP id B296236A0D; Wed, 1 Mar 2023 12:00:09 +0000 (GMT) From: Alexander Lobakin <aleksander.lobakin@intel.com> To: Tony Nguyen <anthony.l.nguyen@intel.com> Cc: Alexander Lobakin <aleksander.lobakin@intel.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Michal Kubiak <michal.kubiak@intel.com>, Larysa Zaremba <larysa.zaremba@intel.com>, Maciej Fijalkowski <maciej.fijalkowski@intel.com>, Jesse Brandeburg <jesse.brandeburg@intel.com>, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND net v1 1/2] iavf: fix inverted Rx hash condition leading to disabled hash Date: Wed, 1 Mar 2023 12:59:07 +0100 Message-Id: <20230301115908.47995-2-aleksander.lobakin@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301115908.47995-1-aleksander.lobakin@intel.com> References: <20230301115908.47995-1-aleksander.lobakin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759167501063859717?= X-GMAIL-MSGID: =?utf-8?q?1759167501063859717?= |
Series |
iavf: fix double-broken HW hash report
|
|
Commit Message
Alexander Lobakin
March 1, 2023, 11:59 a.m. UTC
Condition, which checks whether the netdev has hashing enabled is inverted. Basically, the tagged commit effectively disabled passing flow hash from descriptor to skb, unless user *disables* it via Ethtool. Commit a876c3ba59a6 ("i40e/i40evf: properly report Rx packet hash") fixed this problem, but only for i40e. Invert the condition now in iavf and unblock passing hash to skbs again. Fixes: 857942fd1aa1 ("i40e: Fix Rx hash reported to the stack by our driver") Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com> Reviewed-by: Michal Kubiak <michal.kubiak@intel.com> Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/iavf/iavf_txrx.c b/drivers/net/ethernet/intel/iavf/iavf_txrx.c index 18b6a702a1d6..e989feda133c 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_txrx.c +++ b/drivers/net/ethernet/intel/iavf/iavf_txrx.c @@ -1096,7 +1096,7 @@ static inline void iavf_rx_hash(struct iavf_ring *ring, cpu_to_le64((u64)IAVF_RX_DESC_FLTSTAT_RSS_HASH << IAVF_RX_DESC_STATUS_FLTSTAT_SHIFT); - if (ring->netdev->features & NETIF_F_RXHASH) + if (!(ring->netdev->features & NETIF_F_RXHASH)) return; if ((rx_desc->wb.qword1.status_error_len & rss_mask) == rss_mask) {