Page MenuHomeFreeBSD

cxgbei: Rework the pdu_append_data hook to support M_WAITOK.
ClosedPublic

Authored by jhb on Apr 21 2021, 11:59 PM.
Tags
None
Referenced Files
F146299051: D29909.id.diff
Sun, Mar 1, 1:03 PM
Unknown Object (File)
Sat, Feb 28, 10:07 AM
Unknown Object (File)
Sat, Feb 28, 9:53 AM
Unknown Object (File)
Tue, Feb 24, 11:11 AM
Unknown Object (File)
Mon, Feb 16, 12:26 AM
Unknown Object (File)
Jan 23 2026, 6:45 PM
Unknown Object (File)
Jan 22 2026, 8:02 PM
Unknown Object (File)
Jan 22 2026, 6:04 PM
Subscribers

Details

Summary
  • Only allocate 16K jumbo mbufs if the region of data to be appended is sufficiently large, and use a loop.
  • Use m_getm2() to allocate a chain for data less than 16K, or if m_getjcl() fails.
  • Use ENOMEM as the return value instead of '1' if the hook fails due to a memory allocation error.

Diff Detail

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