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 901F6A0352 for ; Tue, 22 Feb 2022 17:07:03 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4550B41170; Tue, 22 Feb 2022 17:07:02 +0100 (CET) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by mails.dpdk.org (Postfix) with ESMTP id 94DCD41169 for ; Tue, 22 Feb 2022 17:07:00 +0100 (CET) Received: by mail-ed1-f51.google.com with SMTP id w3so38110097edu.8 for ; Tue, 22 Feb 2022 08:07:00 -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=eGA6zgP/Jq1+ORcLu8RFRdQEGnVqYf+L0fAK4ABYHmgey6rb+X15dOILXpGXUbePNq Kx7McmGpgmqNv6Ub5KZt6ioCyvq5gznBYOJeib1grVV8Vr8WNYVDZ9mTOYRihzGvqzjt EmPMl2O3RcgrXXpNFmFS3QYRwGyctpNnx+EGcOWIfgJkRBQhM/7kaLyFUOKMHXcE5ZrR DTkhpNQ1cnu14e7+VzSqUflb5EbLbYbhOezK6gU8MMHLVO/IRBFl8NPYLM0aDbEE2qhK lsAV+agi0S9Kg0SSq9cv7yz1QHaOzgSqNe8OkdpO8PfncKLcNAgGmCzxORot8yCsinTY br8Q== 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=iT1zC+JsHflkSRvPKWuKwfqzaTPn/MfAmgyRY6jrKANtoFy/APChNcRREzCgKq0jZo MpiziSLC2eon1SskddO2e8KvFQWRZaUon1BQg6VJuvqS8S46tILKz+hmvwhY8i6rDzAX CG65iGXzFPKHVeM/2HS30We+K2DnkPpPpVpSahYO/whItsX+6Bev7SL09CpdJAdYXK4E teBi4QFgcWU9UsbTZYDSxEfbRGmwftarr+cCHuTUd8OWsqfW8mxvQyAJUvi2c+ExZNTD MihO/ZsUxMhNHDzl5NxWIpW93w9Zu05Vf1X2MPTBKMwzwgQ/hReSUjrZ4PFsHqLB5OPe p8ew== X-Gm-Message-State: AOAM530N0QzeRZyhWb15iG/gO+wH6UdvrU6QqXY62aXU5FoMH2lcw6R1 U6bCuuVGVTWswzskIKtPUkzq5g== X-Google-Smtp-Source: ABdhPJwl0/9Tbf9J9lmUfS3roJfUD91Y69bsRQwqiBQs3QPes2OsYn3/w+BVwR1casN+aNJrHlJACw== X-Received: by 2002:a05:6402:3583:b0:410:a99b:59ee with SMTP id y3-20020a056402358300b00410a99b59eemr27430560edc.454.1645546019969; Tue, 22 Feb 2022 08:06:59 -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 x6sm10013477edv.109.2022.02.22.08.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 08:06:59 -0800 (PST) From: Michal Krawczyk To: dev@dpdk.org Cc: shaibran@amazon.com, upstream@semihalf.com, Michal Krawczyk , stable@dpdk.org Subject: [PATCH 07/21] net/ena: skip timer if the reset is triggered Date: Tue, 22 Feb 2022 17:06:20 +0100 Message-Id: <20220222160634.24489-8-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220222160634.24489-1-mk@semihalf.com> References: <20220222160634.24489-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