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
F102783423: D29909.diff
Sun, Nov 17, 3:31 AM
Unknown Object (File)
Fri, Nov 15, 10:04 AM
Unknown Object (File)
Thu, Nov 14, 8:33 AM
Unknown Object (File)
Wed, Nov 13, 3:15 PM
Unknown Object (File)
Mon, Nov 11, 4:43 AM
Unknown Object (File)
Thu, Nov 7, 7:18 PM
Unknown Object (File)
Thu, Nov 7, 2:43 AM
Unknown Object (File)
Thu, Nov 7, 1:25 AM
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