HomeFreeBSD

Allow the tcp_lro_flush_all() function to be called when the control

Description

Allow the tcp_lro_flush_all() function to be called when the control
structure is zeroed, by setting the VNET after checking the mbuf count
for zero. It appears there are some cases with early interrupts on some
network devices which still trigger page-faults on accessing a NULL "ifp"
pointer before the TCP LRO control structure has been initialized.
This basically preserves the old behaviour, prior to
9ca874cf740ee68c5742df8b5f9e20910085c011 .

No functional change.

Reported by: rscheff@
Differential Revision: https://reviews.freebsd.org/D29564
MFC after: 2 weeks
Sponsored by: Mellanox Technologies // NVIDIA Networking

Details

Provenance
hselaskyAuthored on Apr 24 2021, 10:20 AM
Differential Revision
D29564: TCP LRO support for VLAN and VXLAN
Parents
rGb99419aee49e: mpr/mps(4): Make device mapping some more robust.
Branches
Unknown
Tags
Unknown