HomeFreeBSD

netmap: Handle packet batches in generic mode

Description

netmap: Handle packet batches in generic mode

ifnets are allowed to pass batches of multiple packets to if_input,
linked by the m_nextpkt pointer. iflib_rxeof() sometimes does this, for
example. Netmap's generic mode did not handle this and would only
deliver the first packet in the batch, leaking the rest.

PR: 270636
Reviewed by: vmaffione
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39426

(cherry picked from commit 5f6d37787f1e6aaf9b18392e8cff65ed4e094f2c)

Details

Provenance
markjAuthored on Apr 5 2023, 8:52 PM
Reviewer
vmaffione
Differential Revision
D39426: netmap: Handle packet batches in generic mode
Parents
rG18eb15bd8a11: makefs(8): do not print comma after the last super-block
Branches
Unknown
Tags
Unknown