From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 ADC3414A4E6; Tue, 20 Feb 2024 21:30:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708464641; cv=none; b=RleGX1oERCLSF8dR58/zMPH8WvA3+K1GbuILqDLfqKL7JVFlFZDzzvF+WJrxNB8hBjFeTWc3RP4o391ghb2mx+ok+xJxFvEPP3eEeE/jgyX0d7d5h3gO01bWSPNq9QLpTxbtUBHqlYZuO4t2A8s0RmACaDZfHKuafDamo8UCzz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708464641; c=relaxed/simple; bh=kv9Dly8oaJMWeEapV3csJVrhHfznvYmLV1k9GvamQ4I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dxZnIZIVsWyE2EA4EQGal6CGEw87WoMPqWXAWpxoJW0JFtCWmMAHjhW2ynznEyUKFA+01t/Uf9/bu+i7bIzM7lrLXvGK5l8rB706j3WFMlkBR9JIrDjUdshtILEQZ6mBR2h0UlIvdChFt5Wdz+OdjOyUiBK74eopX5ye3VZVEfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OL4mKMlS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OL4mKMlS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23128C433C7; Tue, 20 Feb 2024 21:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708464641; bh=kv9Dly8oaJMWeEapV3csJVrhHfznvYmLV1k9GvamQ4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OL4mKMlSo14jiwFyuPqr4pynzjDeB6hUA6dkJ9n+dKgkgXKy3hG3kMRS6QPWeBljQ Qdc4OauzT1WJJw0G+FMYPBU5mU0ytS4Gk5lmXRcOs/QIFhqviQ+D76+gpp2rw1SGz5 SPWNANtrQgsbzgQ9v0I7I7EqlungA8+a+8XNpnrg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ivan Vecera , Jacob Keller , Wojciech Drewek , Tony Nguyen , Sasha Levin , Pucha Himasekhar Reddy Subject: [PATCH 6.7 062/309] i40e: Fix waiting for queues of all VSIs to be disabled Date: Tue, 20 Feb 2024 21:53:41 +0100 Message-ID: <20240220205635.161301960@linuxfoundation.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240220205633.096363225@linuxfoundation.org> References: <20240220205633.096363225@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ivan Vecera [ Upstream commit c73729b64bb692186da080602cd13612783f52ac ] The function i40e_pf_wait_queues_disabled() iterates all PF's VSIs up to 'pf->hw.func_caps.num_vsis' but this is incorrect because the real number of VSIs can be up to 'pf->num_alloc_vsi' that can be higher. Fix this loop. Fixes: 69129dc39fac ("i40e: Modify Tx disable wait flow in case of DCB reconfiguration") Signed-off-by: Ivan Vecera Reviewed-by: Jacob Keller Reviewed-by: Wojciech Drewek Tested-by: Pucha Himasekhar Reddy (A Contingent worker at Intel) Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 2bd7b29fb251..d9716bcec81b 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -5361,7 +5361,7 @@ static int i40e_pf_wait_queues_disabled(struct i40e_pf *pf) { int v, ret = 0; - for (v = 0; v < pf->hw.func_caps.num_vsis; v++) { + for (v = 0; v < pf->num_alloc_vsi; v++) { if (pf->vsi[v]) { ret = i40e_vsi_wait_queues_disabled(pf->vsi[v]); if (ret) -- 2.43.0