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.

Reviewed by: gallatin, pkelsey
MFC after: 3 weeks
Sponsored by: Panzura LLC
Differential Revision: https://reviews.freebsd.org/D33189

Details

Provenance
avgAuthored on Dec 6 2021, 7:59 AM
Reviewer
gallatin
Differential Revision
D33189: vmxnet3: skip zero-length descriptor in the middle of a packet
Parents
rGcd6f0b47692c: rtwn/usb: add product ID for Asus USB N10 Nano Rev. B1
Branches
Unknown
Tags
Unknown