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
rG88268bb664a9: ipfilter userland: Revert the ipmon part of a6fb9bbea731
Branches
Unknown
Tags
Unknown