HomeFreeBSD

Fix an off-by-one error when deciding to request a tx interrupt

Description

Fix an off-by-one error when deciding to request a tx interrupt

The canonical check for whether or not a ring is drainable is
TXQ_AVAIL() > MAX_TX_DESC() + 2. Use this same construct here,
in order to avoid a potential off-by-one error where we might otherwise
fail to request an interrupt.

Reviewed by: mmacy
Sponsored by: Netflix

Details

Provenance
gallatinAuthored on
Reviewer
mmacy
Parents
rS333328: amd64: tweak the memmove comment regarding authorship
Branches
Unknown
Tags
Unknown