From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 4C911A034F
	for <public@inbox.dpdk.org>; Wed, 10 Nov 2021 07:54:34 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 3856140142;
	Wed, 10 Nov 2021 07:54:34 +0100 (CET)
Received: from NAM10-BN7-obe.outbound.protection.outlook.com
 (mail-bn7nam10on2088.outbound.protection.outlook.com [40.107.92.88])
 by mails.dpdk.org (Postfix) with ESMTP id 1478D40142
 for <stable@dpdk.org>; Wed, 10 Nov 2021 07:54:33 +0100 (CET)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=kCe7kqb1idIBDQcaqAwjASXKIyuRKNdun8Y+303Cwg53krBXAmOVL5us2E7ikbFreRolh701pMtJfgR90Gj1ELW+akdEunom50ty3sIB2hzS2zMU0p6zowCYbO/ha7QNlHwP4LfMLwaUSyuIdlm4Svhagn3W/nTCHL/JP5GSvegFg3Wpvs7+leC3Yyu/6D2bIW9RHXezIxmnmgbERJ/VWLaVDFCbAA1zsBAFNWyHvLagYo+CicH096iV0lNqN7raWgLSczeldtk/WlmdF46/i5YZhqNNBGCrgSfgXXHi5ZVjzJNArtkKnxiqQQYs8WRZfmwuQSnQSe/4x6vH6DQalA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=uRbqWkWTMVmH9g7Up/qf8cxKk/RhA7fJa1u/Wbx8leU=;
 b=n7wZ/sBFJhA98JJ6C+LpPDSGfz0NAM8WSTx2cY4vTQ7kBm3/b9lugbGI8JLtvkCcX/O/nU+ZrWtYSDSgH/ffhWbYs1+vcOLy+tU+uYCIlJZ18KgdwdCe50v2sozCJuQZJ0zgviXyF/HcXYwgCZwxDuCpsh+2DfErmaEFfT6a0p7qU50m9wyZCBMF6blZxgI/V/mWfNM4B8YHGYqZ2VlvmE3qDH0jzxtvytmz0awbSqa3Ors/aoACjyqfRiOnaELW8xIjDyE8y3VsbsWLc7Fkx8c1K2VRLRmP/4zeIH4uC0q2Opjv7qUOY4PJEosEZTUCUS0PPmKpZJzBYJ8k9sBmYg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is
 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com;
 dmarc=pass (p=quarantine sp=quarantine pct=100) action=none
 header.from=nvidia.com; dkim=none (message not signed); arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=uRbqWkWTMVmH9g7Up/qf8cxKk/RhA7fJa1u/Wbx8leU=;
 b=FOepJ2UlNgpZihZoCs48uYWCyNnVvW+yqJZ6wmvV3pEScW4pzd6yg+sI31lHK7vxdb9WpBMbASyNpfu7Bb1B9z7W8uwFCiBCaQudbvtt7uTyWPrhHAu48TJ3Byl7LMU+FjK6t/DTYV/fckSPH3SGCJkpDJBL8J5hW9vXxxtgep5wzvD0m+ZHmc1OjBO242kS8gdb/KAmlsPvdLBJkBykFcjpKK1CBp8kJLp89buOn0eHXL8H1Y9nRfpQVAN52DDU96s2JrMKScOtRZsChnO5awXQNcM0iNtCxkKMum8xl8RBxFfC/hyfe3lRIk+p0xAIfvkSISG5on/89jBpAR/GSg==
Received: from BN9PR03CA0278.namprd03.prod.outlook.com (2603:10b6:408:f5::13)
 by BYAPR12MB3256.namprd12.prod.outlook.com (2603:10b6:a03:135::26)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.16; Wed, 10 Nov
 2021 06:54:31 +0000
Received: from BN8NAM11FT058.eop-nam11.prod.protection.outlook.com
 (2603:10b6:408:f5:cafe::bb) by BN9PR03CA0278.outlook.office365.com
 (2603:10b6:408:f5::13) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13 via Frontend
 Transport; Wed, 10 Nov 2021 06:54:28 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34)
 smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed)
 header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com;
Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates
 216.228.112.34 as permitted sender) receiver=protection.outlook.com;
 client-ip=216.228.112.34; helo=mail.nvidia.com;
Received: from mail.nvidia.com (216.228.112.34) by
 BN8NAM11FT058.mail.protection.outlook.com (10.13.177.58) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id
 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:54:28 +0000
Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com
 (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov
 2021 06:54:23 +0000
From: Xueming Li <xuemingl@nvidia.com>
To: Qiming Chen <chenqiming_huawei@163.com>
CC: Luca Boccassi <bluca@debian.org>, dpdk stable <stable@dpdk.org>
Date: Wed, 10 Nov 2021 14:31:23 +0800
Message-ID: <20211110063216.2744012-200-xuemingl@nvidia.com>
X-Mailer: git-send-email 2.33.0
In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com>
References: <20211110063216.2744012-1-xuemingl@nvidia.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
X-Originating-IP: [172.20.187.5]
X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To
 HQMAIL107.nvidia.com (172.20.187.13)
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 1f19b650-cf03-462f-d429-08d9a416f0c1
X-MS-TrafficTypeDiagnostic: BYAPR12MB3256:
X-Microsoft-Antispam-PRVS: <BYAPR12MB3256A3D393304233F7C4FDF5A1939@BYAPR12MB3256.namprd12.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: /+s8RA8DSud8B4GHYJDSXvfpUCUWJphpYepc9NbF1R7GsKwVa2M7BrtQ291CQls9/aBWTrFtJSEzflbNQtd2eIW9lsB2TMF4ujy+I4i22p9nuC5OIPdIrYizGgrIWylmrv99yrsJpnoBHItwyRIqgTreafv8D2JlTLbWNBOd2qZMEBbcGkQPjjKkCgHrIup4V68rvDMKXkEmLgFNcnoC1BDHhOh6GkGQFixdFU3Uxw+xeExYL+ios1a7Mvr4BcLWpHnoIY9wZAZuHka+NLK6YoOqYYTlM3m7RdAJH0t0/2gGH85jMXTqkI64TW/coV+b34VwB0S3tRBugtPwOsk5E5wAlyIS30qPykfaYA36YUzFEgG6hRK2n5XavdH8UFcqfYOfWTb4ke7mcUPUQjjn+aP+B/2dmT/QGFxfajXBdjttrGIEdS/s1YwfEfH20HTz8eZaiqOUOD91t1992KJH3kk5XHXYYKUMykrLsP2NXcsDvclEl5f+RuWiLJNg1UHC8K4cP+4nMnsp5b+T9UDH6RHL5OJMPCPfJiwq606ZetqX7M7kQk0k8IRXE+mPrmvZ8zNHhezDRlXOKzdtx46yELSYoGliKPXHKooCvU0n+5twVtLEcVqhqlRXZTxRjlM5n7+hk5CVbdPdRN+3L+RhNsEtf1iNMRJUSoAcLWe16WXDAxkthiPge95IugqEAVETFH4cRuw75AnlIXuyjawIUBTv3pDaM6MP6I0PM4WSkzDqTXbDuum3XAdN8Tm/Avb0vQ/qlRtsA2+O+2Dc+15qeYBHQB02ISJfxtcr/FFiTz6EISalBd3O5asCF5Btz0+e0GcG0SUW1H09bPc/OZcnKw==
X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE;
 SFS:(4636009)(46966006)(36840700001)(53546011)(7636003)(7696005)(47076005)(356005)(36860700001)(70206006)(86362001)(508600001)(36756003)(5660300002)(426003)(54906003)(2616005)(2906002)(82310400003)(70586007)(1076003)(83380400001)(6916009)(8676002)(55016002)(316002)(336012)(4326008)(16526019)(6286002)(26005)(8936002)(966005)(186003);
 DIR:OUT; SFP:1101; 
X-OriginatorOrg: Nvidia.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:54:28.3427 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 1f19b650-cf03-462f-d429-08d9a416f0c1
X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34];
 Helo=[mail.nvidia.com]
X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT058.eop-nam11.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3256
Subject: [dpdk-stable] patch 'net/i40evf: extend the polling times of vf
 reset' has been queued to stable release 20.11.4
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org
Sender: "stable" <stable-bounces@dpdk.org>

Hi,

FYI, your patch has been queued to stable release 20.11.4

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/12/21. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/steevenlee/dpdk

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/e1d6c484817b651444011bda6b3881a6b60a9408

Thanks.

Xueming Li <xuemingl@nvidia.com>

---
>From e1d6c484817b651444011bda6b3881a6b60a9408 Mon Sep 17 00:00:00 2001
From: Qiming Chen <chenqiming_huawei@163.com>
Date: Thu, 9 Sep 2021 17:13:20 +0800
Subject: [PATCH] net/i40evf: extend the polling times of vf reset
Cc: Xueming Li <xuemingl@nvidia.com>

In the embedded RTOS environment, the x722 controller Ethernet card of
the d2146nt chip, the vfio user mode driver takes over 8 vf ports in
turn, but i40evf_check_vf_reset_done will probably fail.

The version matching is no problem, and there is no
substantial progress. Learning from the implementation
of the i40evf kernel driver locally, after modifying the polling time
from 1 second to 5s, the repeated restart process took over the start
port test, and it was found that this probability was reduced to an
order of magnitude acceptable to the user.

The patch cannot fundamentally solve the failure problem, but it greatly
slows down the probability of the problem. The modification is based on the
i40evf kernel driver.

Fixes: 4861cde46116 ("i40e: new poll mode driver")

Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
---
 drivers/net/i40e/i40e_ethdev_vf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
index a753a402c3..f55db699c1 100644
--- a/drivers/net/i40e/i40e_ethdev_vf.c
+++ b/drivers/net/i40e/i40e_ethdev_vf.c
@@ -42,7 +42,7 @@
 /* busy wait delay in msec */
 #define I40EVF_BUSY_WAIT_DELAY 10
 #define I40EVF_BUSY_WAIT_COUNT 50
-#define MAX_RESET_WAIT_CNT     20
+#define MAX_RESET_WAIT_CNT     100
 
 #define I40EVF_ALARM_INTERVAL 50000 /* us */
 
-- 
2.33.0