mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
ionic: check for linkup in watchdog
Add a link_status_check to the heartbeat watchdog. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
aa47b540b7
commit
987c0871e8
@@ -14,11 +14,15 @@
|
||||
static void ionic_watchdog_cb(struct timer_list *t)
|
||||
{
|
||||
struct ionic *ionic = from_timer(ionic, t, watchdog_timer);
|
||||
int hb;
|
||||
|
||||
mod_timer(&ionic->watchdog_timer,
|
||||
round_jiffies(jiffies + ionic->watchdog_period));
|
||||
|
||||
ionic_heartbeat_check(ionic);
|
||||
hb = ionic_heartbeat_check(ionic);
|
||||
|
||||
if (hb >= 0 && ionic->master_lif)
|
||||
ionic_link_status_check_request(ionic->master_lif);
|
||||
}
|
||||
|
||||
void ionic_init_devinfo(struct ionic *ionic)
|
||||
|
||||
Reference in New Issue
Block a user