Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp915618pxb; Wed, 3 Mar 2021 20:55:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyn0wGYRQ5x/pOAq85Zi/i80gzYNsi+0JnVwYG/fK7x60KmyNJwsf/pBUpO16lFGBgie8xZ X-Received: by 2002:a05:6402:30b9:: with SMTP id df25mr2473350edb.136.1614833752185; Wed, 03 Mar 2021 20:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614833752; cv=none; d=google.com; s=arc-20160816; b=HUuRApxD/vPi4i9fHsE4I6uAhIzD21ci6RTcCglqRovRYG9k4IKuSyp+EnK9SV33rw WaTByeR+sQpCraubaiPUYOtvomQvd2WfJm5x8PjYhI4bv40tVY+v2mKHJ4MwEhGamchJ IQKw7U3iv9DLDrfCZVukZA2OAv8SpSARF/xGRfipf7uZhmp7ysBZPF112siUsbuCunZ+ Er4zwf62Bt0azv0GFxWYVbaO2ApyJRJQdQeD48WLWFUSzbB50/bKnHvWhY2KtY1yfsz5 Z0Teub+Mf97GY/Rk83Kj6WJ13kXY/QMqBIyjMyf8/2KayJKMO3o7H2ppGojGAyZHDW59 rnIw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Q/tch8U+cMZjwV8YQwk7yKQTwH2EJQxBf2O1qqWqw8s=; b=PX4Fskw8wRAcy4CcwrwVRt67Kw/QqyYqxoJXJwwCVrD03TbB4/ZLzav/idhBm0dnYz 56XcTpiydIIhuN6/kYOWmJckSDrRe7LQWAb0C3i9aTO+7rpKv4lg1ExCIkwo9nsXa7L7 BD3QHD6s0LO/Otkjlx8e1NIuCL4llY4/ZTcRRgoA1o+2nJujkEL2WPmkccvWXf+1uXFt 02mG+rjVk88UYkNyYOWr1yT8OpatK2xZ6BIm0S5zqljqlVqYqI7Dt5+PKHh0I+uj/YOU LerM60KdM7A1ZPAFj2xvLWStZ74EYXC0KX3m/69ZpEG3sA6ujQtbjZwE/Ze7Bf84uv7Y NqVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="he1o/ZHX"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si7361882edq.36.2021.03.03.20.55.30; Wed, 03 Mar 2021 20:55:52 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b="he1o/ZHX"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442639AbhCBCOz (ORCPT + 99 others); Mon, 1 Mar 2021 21:14:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:53016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241628AbhCATlV (ORCPT ); Mon, 1 Mar 2021 14:41:21 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 79B0565220; Mon, 1 Mar 2021 17:23:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619390; bh=5TRILHPSNQSwrpi3C8zRzh0O7vUD3+hc0Itf3G1ZPko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=he1o/ZHXh7wi9qASLfoG15UHHi/ybeISp2S6L1r5ORWTiwGDns7cnJSxASA0ZabhI lnzaiv9C9kndTFn8nv3Kc9CTgwTy+sleUSFTlOS8bPF4H8f6yWDZw4Y4b+mVL2NjR1 yeRd/fmtYkt5WtGQU7W5obSGre3uktZuBvoK+Lq4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sylwester Dziedziuch , Konrad Jankowski , Tony Nguyen , Sasha Levin Subject: [PATCH 5.10 438/663] i40e: Fix VFs not created Date: Mon, 1 Mar 2021 17:11:26 +0100 Message-Id: <20210301161203.564850032@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sylwester Dziedziuch [ Upstream commit dc8812626440fa6a27f1f3f654f6dc435e042e42 ] When creating VFs they were sometimes not getting resources. It was caused by not executing i40e_reset_all_vfs due to flag __I40E_VF_DISABLE being set on PF. Because of this IAVF was never able to finish setup sequence never getting reset indication from PF. Changed test_and_set_bit __I40E_VF_DISABLE in i40e_sync_filters_subtask to test_bit and removed clear_bit. This function should not set this bit it should only check if it hasn't been already set. Fixes: a7542b876075 ("i40e: check __I40E_VF_DISABLE bit in i40e_sync_filters_subtask") Signed-off-by: Sylwester Dziedziuch Tested-by: Konrad Jankowski Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index b268adb3e1d44..3ca5644785556 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -2616,7 +2616,7 @@ static void i40e_sync_filters_subtask(struct i40e_pf *pf) return; if (!test_and_clear_bit(__I40E_MACVLAN_SYNC_PENDING, pf->state)) return; - if (test_and_set_bit(__I40E_VF_DISABLE, pf->state)) { + if (test_bit(__I40E_VF_DISABLE, pf->state)) { set_bit(__I40E_MACVLAN_SYNC_PENDING, pf->state); return; } @@ -2634,7 +2634,6 @@ static void i40e_sync_filters_subtask(struct i40e_pf *pf) } } } - clear_bit(__I40E_VF_DISABLE, pf->state); } /** -- 2.27.0