HomeFreeBSD

vmxnet3: skip zero-length descriptor in the middle of a packet

Description

vmxnet3: skip zero-length descriptor in the middle of a packet

Passing up such descriptors to iflib is obviously wasteful.
But the main conern is that we may overrun iri_frags array because of
them. That's been observed in practice.

Also, assert that the number of fragments / descriptors / segments is
less than IFLIB_MAX_RX_SEGS.

Sponsored by: Panzura LLC

(cherry picked from commit 9c612a5d0af17021abc6e1bb2a8baa5a4c97d05f)

Details

Provenance
avgAuthored on Dec 6 2021, 7:59 AM
Parents
rGe3fe4a9e6dea: Apply clang fix for crash or assertion failure compiling part of llvm
Branches
Unknown
Tags
Unknown