HomeFreeBSD

iflib: add assert to prevent out-of-bounds array access

Description

iflib: add assert to prevent out-of-bounds array access

The iflib_queues_alloc() allocates isc_nrxqs iflib_dma_info structs
for each rxqset, and links each struct to a different free list.
As a result, it must be isc_nrxqs >= isc_nfl (plus the completion
queue, if present).
Add an assertion to make this constraint explicit.

MFC after: 2 weeks

Details

Provenance
vmaffioneAuthored on Jan 10 2021, 1:49 PM
Parents
rG4f2cbaf3cd59: Track pipe(2) reads and writes as rusage message receives and sends, a
Branches
Unknown
Tags
Unknown