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 324F6A034C for ; Wed, 23 Feb 2022 13:20:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 71C24426FB; Wed, 23 Feb 2022 13:20:42 +0100 (CET) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by mails.dpdk.org (Postfix) with ESMTP id B3E7F426F0 for ; Wed, 23 Feb 2022 13:20:38 +0100 (CET) Received: by mail-ej1-f54.google.com with SMTP id bg10so52026404ejb.4 for ; Wed, 23 Feb 2022 04:20:38 -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=PDzJUaGzEyET9nF+Qdf0eNoXJOFdkr798o5yW1nOxCaEuqjF7nIc1JUc1JF67p+JwS hplXEPDU2L7cC/GRGdhYhTGmL1sJptJoT6CosVzL9BCpfsPkLcLgBS/sWormiYaovkXF habUEMtirb7e9f8UDR34WeOu3mFVG/dmiuzwFT2Euvq3yuBp8+vrWCNbQaPj45ow//ko Y1CmrJboIEklTJsBqsgGYLAfE6j8fuL2hDWFyTxCoETlV5iSGlcEtjdphv7uDTMCBUQS TavP0RacZyGslCpWLjxueOCbuWmit8cYzwweVQL6m+c7U6BXhMS3JzmgHq07ODBZ/Rzw W0eQ== 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=EgGwoXhsLZ+RIo3hQ7yUsh62ghW2IrWV9/hCVfP30F4TejZ4/r/4e1qPQKMdNWBP7B RVyQxpQCLjROQL5XT19+YZpm/uqKyP5ycWRWqTXMItOKF2TFezokLyIJdr9q4vlygxCn fgI/UmulbvNuCxgLFVQLzwV8GAqFtWxYDjTz+PWd6tKCPC56wKAXkiSr62cv/LL1s/73 Ut052Pzk3VP/VI+m45sGcWDhw51wN7ong47hSZ1+bXnJlN8zCZoDr520raJO9rlURV8n BXpyqgsWZDa3C3BhrAoM8UiYBqG6HKu7jkRzOkxYt6jjgRlphkXeNR0ho8BIbMVYMfkM +Obg== X-Gm-Message-State: AOAM530XWWboP3GnAZ2dclp0TDHz9qIoj2QeHjw/0tUewqSiPagB/dt4 zfG2mNi989nYP6TOdSTJEc0n41KI38sbUQ== X-Google-Smtp-Source: ABdhPJzOClNUx397NtNzhvHERWXyb5B6Kj8zmhPG0gqp57pV0kQml46IR5vBz+1aDvGoUgucJEZlVA== X-Received: by 2002:a17:906:6d0b:b0:6d1:d64e:3142 with SMTP id m11-20020a1709066d0b00b006d1d64e3142mr8299075ejr.631.1645618838503; Wed, 23 Feb 2022 04:20:38 -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 v12sm11629224edr.8.2022.02.23.04.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 04:20:37 -0800 (PST) From: Michal Krawczyk To: dev@dpdk.org Cc: ferruh.yigit@intel.com, shaibran@amazon.com, upstream@semihalf.com, Michal Krawczyk , stable@dpdk.org Subject: [PATCH v3 07/21] net/ena: skip timer if the reset is triggered Date: Wed, 23 Feb 2022 13:19:30 +0100 Message-Id: <20220223121944.24156-8-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220223121944.24156-1-mk@semihalf.com> References: <20220222181146.28882-1-mk@semihalf.com> <20220223121944.24156-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