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
F161410627: D29909.id.diff
Fri, Jul 3, 12:49 PM
F161333227: D29909.id87914.diff
Thu, Jul 2, 10:03 PM
Unknown Object (File)
Wed, Jul 1, 10:43 PM
Unknown Object (File)
Mon, Jun 29, 12:33 AM
Unknown Object (File)
Wed, Jun 24, 1:02 AM
Unknown Object (File)
May 15 2026, 6:55 PM
Unknown Object (File)
May 15 2026, 6:55 PM
Unknown Object (File)
May 15 2026, 6:42 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38777
Build 35666: arc lint + arc unit