Page MenuHomeFreeBSD

rtsock: do not allocate mbufs_tags(9) just to store a 8-bit value
ClosedPublic

Authored by glebius on Aug 10 2022, 7:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 12:15 AM
Unknown Object (File)
Sun, Oct 12, 12:43 PM
Unknown Object (File)
Sun, Oct 12, 12:43 PM
Unknown Object (File)
Sun, Oct 12, 12:43 PM
Unknown Object (File)
Sun, Oct 12, 1:47 AM
Unknown Object (File)
Sep 5 2025, 1:37 PM
Unknown Object (File)
Aug 14 2025, 10:41 PM
Unknown Object (File)
Jul 27 2025, 12:32 PM
Subscribers

Details

Summary

Use local storage of the mbuf packet header instead.

Diff Detail

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

Event Timeline

melifaro added inline comments.
sys/net/rtsock.c
160

Nit: I'd rather name it something like m_rtsock_family to indicate that this is a local field.

This revision is now accepted and ready to land.Aug 11 2022, 7:57 AM