HomeFreeBSD

if_vtnet: Schedule Rx task if pending items when enabling interrupt

Description

if_vtnet: Schedule Rx task if pending items when enabling interrupt

Prior to V1, the driver would enable interrupts and then notify the
host that DRIVER_OK. Since for V1, DRIVER_OK needs to be set before
notifying the virtqueues, there may be items in the queues waiting
to be processed by the time interrupts are enabled.

This fixes a bug where the Rx queue would appear stuck, only being
usable after an interface down/up cycle.

Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27922

Details

Provenance
bryanvAuthored on Jan 19 2021, 4:55 AM
Reviewer
grehan
Differential Revision
D27922: if_vtnet: Schedule Rx task if pending items when enabling interrupt
Parents
rGc3187190c71f: if_vtnet: Disable F_MTU feature if MTU is invalid
Branches
Unknown
Tags
Unknown