HomeFreeBSD

TCP syncache: enhance KASSERT output

Description

TCP syncache: enhance KASSERT output

Improve the "syncache: mbuf too small" assertion message with various
variables (some not actually needed) but enough that it will be obvious
if (a) we use IPv4 or IPv6, (b) if UDP tunneling is on, (c) what
max_linkhdr is, and (d) what MHLEN is.

This should help diagnostics in the future.
The case was hit with wireless drivers setting a large ic_headroom
and using IPv6.

Reviewed by: gallatin, tuexen, rscheff
Differential Revision: https://reviews.freebsd.org/D34217

(cherry picked from commit 232d323ef227109acce37f5a0d62492673666ee2)

Details

Provenance
bzAuthored on Feb 8 2022, 11:47 PM
Reviewer
gallatin
Differential Revision
D34217: TCP syncache: enhance some KASSERT output
Parents
rGced43caa3550: LinuxKPI: add more errno
Branches
Unknown
Tags
Unknown