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 E5F55A034E for ; Tue, 22 Feb 2022 19:12:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD7B741168; Tue, 22 Feb 2022 19:12:20 +0100 (CET) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) by mails.dpdk.org (Postfix) with ESMTP id 3CBE241159 for ; Tue, 22 Feb 2022 19:12:18 +0100 (CET) Received: by mail-ed1-f52.google.com with SMTP id u18so38969599edt.6 for ; Tue, 22 Feb 2022 10:12:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=acXqad0cBO68hPVlAp7yRXivrVnQ/a65u/HLvvhrlMk=; b=RWkHHCjD+8z0SCXZPqa5bvDq2f10kESrNMyh1uw7vH+z7akLYCvahg8Ob5dvpo97S3 +auUA2NJL+4hC46F+At4bElA8l6YpoPg7l6L8hylG4ysScgpYezf4IbrTXB9qntx2jZ8 CTf6cMi7kf3R378DMgA8MVxjhghrhXlR+SoMZEyIbdAT74nVBh2S/r+Rc8ESakCpEA5S jYw3nOJOGheeMv5zMG6qkKY1rZ9QFZZXnZNte1nzcRpDdB02HwtQCuQO3YOLNNuN1Kn9 bJU6xhXaBpxNdeiJQZjGo1QRBXp3r0Y6UZ7yDfXltq/RfGxIug3pJ1a9uzPaHwPG6oxh aoVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=acXqad0cBO68hPVlAp7yRXivrVnQ/a65u/HLvvhrlMk=; b=gnq+PC0eC1r20O7Btd/5QdZKIuuyrnDn88XiR7is3uBx4sGJjNeHoN2Yxy3rIVoXqC x6hgp2eG9QQARjcMfleKzGztGkxO31M1fw/e80cV6+gsBh8rSuv5Oi6J/dA5VCw8UQqH AhsSWdLwus+ZH3I2HbuPpuxJB6+iKo42kemLBfUkAYOOg02Dy78L9NqB1+CUAQvKoSbK m4bzJm4oNa0mwu1cz6x2oK+BraxOejlxwCu/37KskXsQ987ADysi1YvjGUG/aNuSjzVB L4N8OlV5FkYjVvNZAQtIUTEvgQZJNLxCsLUwMFc4yPg5xWjUZYqfrzvTsEyZNC4tqQbw 5fcQ== X-Gm-Message-State: AOAM533tk4YytnuaArdwa70UIcJEwXNrPTzkc9pDiKlq4w+hzwxKIRZ6 8nD1nOVukCB1ioDjZNgukWdd/g== X-Google-Smtp-Source: ABdhPJwB9SmZhfcJvwE/VzfovgWj0J8+5fgPFvU03lguihmZt5mQiSwtdiWhXnfsD/mU+vULpGHO8g== X-Received: by 2002:a05:6402:375:b0:404:c2be:3b8c with SMTP id s21-20020a056402037500b00404c2be3b8cmr27063493edw.247.1645553537991; Tue, 22 Feb 2022 10:12:17 -0800 (PST) Received: from DESKTOP-U5LNN3J.localdomain (89-79-181-52.dynamic.chello.pl. [89.79.181.52]) by smtp.gmail.com with ESMTPSA id y21sm10610153eda.38.2022.02.22.10.12.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 10:12:17 -0800 (PST) From: Michal Krawczyk To: dev@dpdk.org Cc: shaibran@amazon.com, upstream@semihalf.com, Michal Krawczyk , stable@dpdk.org Subject: [PATCH v2 07/21] net/ena: skip timer if the reset is triggered Date: Tue, 22 Feb 2022 19:11:32 +0100 Message-Id: <20220222181146.28882-8-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220222181146.28882-1-mk@semihalf.com> References: <20220222160634.24489-1-mk@semihalf.com> <20220222181146.28882-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Some user applications may not support PMD reset handling. If they will support timer service it could cause a situation, when information about the reset trigger is being showed every time the timer service is being called. Timer service is now being skipped if the reset was already triggered. Fixes: d9b8b106bf9d ("net/ena: add watchdog and keep alive AENQ handler") Cc: stable@dpdk.org Signed-off-by: Michal Krawczyk Reviewed-by: Shai Brandes --- drivers/net/ena/ena_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index a2793f13cd..4b82372155 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1624,6 +1624,9 @@ static void ena_timer_wd_callback(__rte_unused struct rte_timer *timer, struct rte_eth_dev *dev = arg; struct ena_adapter *adapter = dev->data->dev_private; + if (unlikely(adapter->trigger_reset)) + return; + check_for_missing_keep_alive(adapter); check_for_admin_com_state(adapter); check_for_tx_completions(adapter); -- 2.25.1