Page MenuHomeFreeBSD

mbufs: isolate max_linkhdr and max_protohdr handling in the mbuf code
ClosedPublic

Authored by glebius on Aug 27 2022, 3:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 19 2024, 8:14 PM
Unknown Object (File)
Sep 28 2024, 10:28 PM
Unknown Object (File)
Sep 9 2024, 12:26 AM
Unknown Object (File)
Sep 5 2024, 6:49 PM
Unknown Object (File)
Aug 6 2024, 5:24 AM
Unknown Object (File)
Aug 4 2024, 6:23 PM
Unknown Object (File)
Aug 3 2024, 10:44 PM
Unknown Object (File)
Jul 6 2024, 8:33 AM
Subscribers

Details

Summary

o Statically initialize max_linkhdr to default value without relying

on domain(9) code doing that.

o Statically initialize max_protohdr to a sane value, without relying

on TCP being always compiled in.

o Retire max_datalen. Set, but not used.
o Don't make the domain(9) system responsible in validating these

values and updating max_hdr.  Instead provide KPI max_linkhdr_grow()
and max_protohdr_grow().

o Call max_linkhdr_grow() from IEEE802.11 and max_protohdr_grow() from

TCP.  Those are the only protocols today that may want to grow.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 28 2022, 9:40 AM

I wish this would have had wireless at least on subscribers. Probably need to add a Phab rule...

So we can now grow up-to MHLEN? The reason I am asking is that there "we" had a discussion around this a while ago..
Hah, link was in the source code comment: https://lists.freebsd.org/archives/freebsd-transport/2022-February/000012.html
So in theory we can grow this now further. That would be really nice. I'll give it a try.

Assuming it'll work, thanks a lot for doing this!