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)
Thu, Mar 26, 5:07 PM
Unknown Object (File)
Mon, Mar 23, 1:07 PM
Unknown Object (File)
Sun, Mar 22, 8:53 PM
Unknown Object (File)
Sat, Mar 21, 11:34 AM
Unknown Object (File)
Sat, Mar 21, 1:13 AM
Unknown Object (File)
Fri, Mar 20, 5:28 PM
Unknown Object (File)
Wed, Mar 11, 10:26 AM
Unknown Object (File)
Sun, Mar 8, 5:15 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable