Skip to content

Commit

Permalink
net/ena: skip timer if reset is triggered
Browse files Browse the repository at this point in the history
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: d9b8b10 ("net/ena: add watchdog and keep alive AENQ handler")
Cc: stable@dpdk.org

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
  • Loading branch information
Gerwand authored and Ferruh Yigit committed Feb 23, 2022
1 parent b9b05d6 commit e2174a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ena/ena_ethdev.c
Expand Up @@ -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);
Expand Down

0 comments on commit e2174a5

Please sign in to comment.