From patchwork Tue Jan 30 10:00:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Traynor X-Patchwork-Id: 136218 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 83E8643A0A; Tue, 30 Jan 2024 11:00:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E991402CE; Tue, 30 Jan 2024 11:00:58 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 432AE402AC for ; Tue, 30 Jan 2024 11:00:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706608855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hfcZgMal2U3bDGVLSBd0/KOdFwFEPyMrpWistyO2oE8=; b=hM7lcZeb/gsSDLss210Og+x0gijdGl18V6T3Sh948fA6ZprSRAPMOfSEQs9MZ35qKqioIJ iaQJdG1Y88C8M5hf06KimZ3SQVEqGDcG8DB3gLQyDk6BzOfvMjZIK3gq3b/oZwcD8UZH89 JPSPofbcTv7iF2RSILclk6c4rMGGJHk= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-z022-hNNNIO6ZaKn1-1GRA-1; Tue, 30 Jan 2024 05:00:52 -0500 X-MC-Unique: z022-hNNNIO6ZaKn1-1GRA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A137B1C0432A; Tue, 30 Jan 2024 10:00:51 +0000 (UTC) Received: from rh.Home (unknown [10.39.192.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 288E3A2E; Tue, 30 Jan 2024 10:00:50 +0000 (UTC) From: Kevin Traynor To: dev@dpdk.org, Qiming Yang , Wenjun Wu Cc: Kevin Traynor Subject: [PATCH] net/ixgbe: increase vf reset timeout Date: Tue, 30 Jan 2024 10:00:27 +0000 Message-ID: <20240130100027.39466-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org When vf issues a reset to pf there is a 50 msec wait plus an additional max of 1 msec for the pf to indicate the reset is complete before timeout. In some cases, it is seen that the reset is timing out, in which case the reset does not complete and an error is returned. In order to account for this, continue to wait an initial 50 msecs, but then allow a max of an additional 50 msecs for the command to complete. Fixes: af75078fece3 ("first public release") Signed-off-by: Kevin Traynor Acked-by: Vladimir Medvedkin --- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index 1094df5891..35212a561b 100644 --- a/drivers/net/ixgbe/base/ixgbe_type.h +++ b/drivers/net/ixgbe/base/ixgbe_type.h @@ -1801,5 +1801,5 @@ enum { #define IXGBE_VFRE_ENABLE_ALL 0xFFFFFFFF -#define IXGBE_VF_INIT_TIMEOUT 200 /* Number of retries to clear RSTI */ +#define IXGBE_VF_INIT_TIMEOUT 10000 /* Number of retries to clear RSTI */ /* RDHMPN and TDHMPN bitmasks */