Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2893853pxb; Tue, 24 Aug 2021 10:02:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYiITsvtbAEAhPaLg1QFXI4ZMa1oUyGenE7nU5HqoaLSLa6HkzVLvRVDpBbXXp+TDBpmUf X-Received: by 2002:a5d:9c53:: with SMTP id 19mr32996583iof.192.1629824554116; Tue, 24 Aug 2021 10:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824554; cv=none; d=google.com; s=arc-20160816; b=r3JsHBkvb0x6g5MeuISvuuhpyQ1TnP7sZI7+//PBf+3O6rZunUcu35fUCkjb80+QDB gglj6gYcsmLeVFfUTz1Lu5PNxLy2i3MLxRT5nWxLsWm2PlLEKjHAtj8cxfb9IQ8fwwAh lRDLHufwGRK5R9Ff2yJlmoiEZWCMZDV0ZNamzX3GIVMJzShnv/08/0Np3B+6DCZjDYj5 U3MnL/tCjbTCHOx62WGlPw72wR6gRJwQ8+nEozIxeZRQRUCx0tBYLHbmddeKoxdsiiLd hPrbGn5zJV9wnSJdP48rfiQq0oFjg8PQh+6H2ARPMMcfZw8mHfZXdseMpmMCX5AAuduF Nz1Q== 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=8lP8mgFDWs9U0TAG9TvoDyGC8zzfB1LFzZyQPidJFDQ=; b=XDEbi71UuoB2QJqvIzZweLW3tlyRG32peQuXJPH0llNxSKWCUsREhW0ti8WC6x5UCu L8myLXYYyG7hj9jdKKjfcA1vmcqxny71DJ+1CZjpErCOCe49MK1h8TGNa+olYOXZdK/i LldYN2+14+bKVVo3q6O3sKxvpexVnDsAcp9kjRWiSEL5tieOoJGt/QXUYpAZuv1/Kf2W 8OaHNfR4yJdJRgaq3g0rWGJokZuvm5i2TVbWyHHRlxlOCaS+SIK6m6rTAoi6pnPtSXVM Xlutv7+G445at+Ov8eZiXzJP70HCVX46zpn4KCu+LoJHxe1XnTFFHIyhhy9KNwiSCWps wHfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ITCBG9xp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si198463jao.34.2021.08.24.10.02.04; Tue, 24 Aug 2021 10:02:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ITCBG9xp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238664AbhHXRAl (ORCPT + 99 others); Tue, 24 Aug 2021 13:00:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:39664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232261AbhHXQ6E (ORCPT ); Tue, 24 Aug 2021 12:58:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B2CCA613E6; Tue, 24 Aug 2021 16:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824225; bh=WtjFDEqLjqXvHkGAANdcG08wEZicgqCna4p0UVLW2oU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ITCBG9xpO2VbLxEbxmPUf6vvCksPeX9/2CE8rlm4/1vl/8W4OOF4LGJOimSqySEsu xV/YxGisChJhezqNg9jiCl0zzFEE3WQUn38VVsX2RYPt83QvBnfEL23HHA7Tvjv01v hT2fIT/QGuQNQmASsBPNkpOre/8GzKZKkPl9KOAX2r5bql0LOw1LQwgvyH+rKbmecW k/0JKtj77MuTpk1zC1LycoCoiBYYbR4rQpP+glxsEKhLO0g16QiZL4q9a2d3/Hj93i rUI/mN2eDC7o2tVPcurHrK5UwfOLoJwecECoEFEhULXh7Iv+o3a/86jKYw8PvnMr78 vb4REpGMPeLVQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Michael Chan , Pavan Chebbi , "David S . Miller" , Sasha Levin Subject: [PATCH 5.13 058/127] bnxt_en: Disable aRFS if running on 212 firmware Date: Tue, 24 Aug 2021 12:54:58 -0400 Message-Id: <20210824165607.709387-59-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165607.709387-1-sashal@kernel.org> References: <20210824165607.709387-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.13.13-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.13.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.13.13-rc1 X-KernelTest-Deadline: 2021-08-26T16:55+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Chan [ Upstream commit 976e52b718c3de9077fff8f3f674afb159c57fb1 ] 212 firmware broke aRFS, so disable it. Traffic may stop after ntuple filters are inserted and deleted by the 212 firmware. Fixes: ae10ae740ad2 ("bnxt_en: Add new hardware RFS mode.") Reviewed-by: Pavan Chebbi Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index a30ded73bba1..e4c8c681a3af 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -10668,6 +10668,9 @@ static bool bnxt_rfs_supported(struct bnxt *bp) return true; return false; } + /* 212 firmware is broken for aRFS */ + if (BNXT_FW_MAJ(bp) == 212) + return false; if (BNXT_PF(bp) && !BNXT_CHIP_TYPE_NITRO_A0(bp)) return true; if (bp->flags & BNXT_FLAG_NEW_RSS_CAP) -- 2.30.2