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
Unknown Object (File)
Sat, Apr 26, 7:35 AM
Unknown Object (File)
Tue, Apr 15, 10:27 AM
Unknown Object (File)
Thu, Apr 10, 3:57 AM
Unknown Object (File)
Sat, Apr 5, 1:15 AM
Unknown Object (File)
Mar 21 2025, 7:32 AM
Unknown Object (File)
Feb 23 2025, 2:42 PM
Unknown Object (File)
Feb 1 2025, 3:55 PM
Unknown Object (File)
Jan 25 2025, 7:29 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