HomeFreeBSD

dummynet: use m_rcvif_serialize/restore when queueing packets

Description

dummynet: use m_rcvif_serialize/restore when queueing packets

This fixed panic with interface being removed while packet
was sitting on a queue. This allows to pass all dummynet
tests including forthcoming dummynet:ipfw_interface_removal
and dummynet:pf_interface_removal and demonstrates use of
m_rcvif_serialize() and m_rcvif_restore().

Reviewed by: kp
Differential revision: https://reviews.freebsd.org/D33267

(cherry picked from commit 165746f4e4bf54c5902a103c2d4a3455e651c58f)

Details

Provenance
glebiusAuthored on Jan 27 2022, 5:58 AM
emasteCommitted on May 5 2022, 6:38 PM
Reviewer
kp
Differential Revision
D33267: dummynet: use m_rcvif_serialize/restore when queueing packets
Parents
rG4d7a1361ef32: ifnet/mbuf: provide KPI to serialize/restore m->m_pkthdr.rcvif
Branches
Unknown
Tags
Unknown