Skip to content

Commit

Permalink
net/ena: skip timer if reset is triggered
Browse files Browse the repository at this point in the history
[ upstream commit e2174a54469febb2905f06d5c942ff76c492c2ff ]

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")

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
  • Loading branch information
Gerwand authored and cpaelzer committed Mar 9, 2022
1 parent 2ffbbf4 commit 41d1a8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ena/ena_ethdev.c
Expand Up @@ -1588,6 +1588,9 @@ static void ena_timer_wd_callback(__rte_unused struct rte_timer *timer,
struct ena_adapter *adapter = arg;
struct rte_eth_dev *dev = adapter->rte_dev;

if (unlikely(adapter->trigger_reset))
return;

check_for_missing_keep_alive(adapter);
check_for_admin_com_state(adapter);

Expand Down

0 comments on commit 41d1a8d

Please sign in to comment.