HomeFreeBSD

iflib: Add null check to iflib_stop()

Description

iflib: Add null check to iflib_stop()

Ever since gtaskqueue_drain() was added to iflib_stop(), a kernel panic
occurs when the ice(4) driver is in recovery mode. Queues are not
initialized in this mode, so gt_taskqueue is not initialized, and
gtaskqueue_drain() will panic.

Fix this by only doing a drain if an RX queue's gt_taskqueue is
initialized.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>

Reviewed by: erj@
MFC after: 1 week
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D37892

Details

Provenance
przemyslawx.lewandowski_intel.comAuthored on Jan 24 2023, 11:41 PM
erjCommitted on Jan 24 2023, 11:45 PM
Differential Revision
D37892: Add null check to iflib_stop()
Parents
rG2508da22cd6f: ice_ddp: Update package to 1.3.30.0
Branches
Unknown
Tags
Unknown