From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E6AEB4414A; Mon, 3 Jun 2024 19:09:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D3E3B42E5D; Mon, 3 Jun 2024 19:09:35 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 37B8242E4A for ; Mon, 3 Jun 2024 19:09:34 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-7025b84c0daso1507121b3a.2 for ; Mon, 03 Jun 2024 10:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1717434573; x=1718039373; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=d0fu6cdls7gx6ijqYe5CIoH6DejuydTJ1GE0j2M69pM=; b=r7bX/qDowD3F1e4/MyOg2afV91TdVqVGJCucQ9hEvq6PX9K6WXB8Hga3qbCnX+EBNU UT/A4reHWoZeUyaOGXhZOm6VtLpr3PoP0LXKaIvXPPFMNjc5IwcD0A9IfP1zL+SDeDjU Tq11rhNv15NlfQqohKj51y9KPEpGeOfrlpx1Px76sB6ahgk6vVa+2rrYvjThkRYj4W+5 O8Vx35GxSc3L6CR55wCHrtO22X3R07/gJJ1LiGxPY+HFhKlf3D+RqKY0OOXYaSanqn2V SO+HDa4AEyoOIlpEYFA8XXNgMWvmvmPwSduVb/UH+3ljKHx0dSExDx6eX2fPAiAbochj AHXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717434573; x=1718039373; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d0fu6cdls7gx6ijqYe5CIoH6DejuydTJ1GE0j2M69pM=; b=qUgGg0evVPTeOMKXbFkZuGcqFvx4tFEbUoieAdTYE+zZP7G5L6Bmh00MxP+Ha8TEmc ojBRqPJruDbQXeMm1WP8KAPMGOpAj4Iep9btRXFHEdiAEc7ud14gw/K9VUYelRQZmtmv YAgGT8sq2ODOWVeN+o40RCAbRVeTxV4vwYLgGyq16iIks/L4T0Zvf72Xs8mC2DRlvMs1 BR8/MkvQAN57Ef8w4UhCtsxVSoMdZY5sF48QhgDMufy/vMrpIEHOCerDjX6syCiI5kI2 OAfBpi9UVG5PLOhuyCBHl9RwwXaZN90mNvUeBoi84R68RZXz6VgowZ93hyw+QICHD5RZ AA9Q== X-Gm-Message-State: AOJu0Yzw04UWwZ9yBIYh4LBQ17MrD/3cEplW48BT2BsKE1xc4N7P1fNK 6XdfTzGFIEghwigDBa2hFz066HbdzhIrwczUFBe/MdPg8XgqJhramB6kROjfEd3BUShcRthaF+T N X-Google-Smtp-Source: AGHT+IG6bvxt6CJH2J8fVodtG/VI8iNrskqXaCf7cufjK5G3/DJh7xLfQtP+DV9huhXTWxsfmBaKkw== X-Received: by 2002:a05:6a20:9188:b0:1b0:14a0:c873 with SMTP id adf61e73a8af0-1b26f185930mr10678190637.35.1717434573361; Mon, 03 Jun 2024 10:09:33 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70242c26bbasm5707915b3a.217.2024.06.03.10.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 10:09:33 -0700 (PDT) Date: Mon, 3 Jun 2024 10:09:31 -0700 From: Stephen Hemminger To: Maayan Kashani Cc: , , , "Aman Singh" , Yuying Zhang Subject: Re: [PATCH] app/testpmd: support retrying device stop Message-ID: <20240603100931.5195595b@hermes.local> In-Reply-To: <20240602103035.197205-1-mkashani@nvidia.com> References: <20240602103035.197205-1-mkashani@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Sun, 2 Jun 2024 13:30:35 +0300 Maayan Kashani wrote: > From: Dariusz Sosnowski > > In some cases rte_eth_dev_stop() can fail with EBUSY error code meaning > that port cannot be stopped, because of other resources referencing this > port and port must be stopped again after these resources are freed. > > This patch adds handling of EBUSY error code on port stop to testpmd. > > Signed-off-by: Dariusz Sosnowski What causes EBUSY. Seems like a driver bug or a test scenario problem. You can't expect every DPDK application to retry.