Page MenuHomeFreeBSD

ena: Swap cleanup order
ClosedPublic

Authored by akiyano_amazon.com on Jul 14 2026, 9:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 21, 5:29 PM
Unknown Object (File)
Fri, Aug 21, 2:48 PM
Unknown Object (File)
Fri, Aug 21, 1:33 AM
Unknown Object (File)
Tue, Aug 18, 2:24 PM
Unknown Object (File)
Fri, Aug 14, 6:51 AM
Unknown Object (File)
Fri, Aug 14, 3:39 AM
Unknown Object (File)
Tue, Aug 11, 11:29 PM
Unknown Object (File)
Tue, Aug 11, 11:03 PM
Subscribers

Details

Summary

As RX processing is heavier than TX completions processing, swap the
order and process TX completions first, in order to avoid starving the
completions and causing potential missing TX completions.

Submitted by: Ofir Tabachnik <ofirt@amazon.com>
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

Diff Detail

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

Event Timeline

akiyano_amazon.com planned changes to this revision.
akiyano_amazon.com created this revision.

I'm not convinced by the rationale here -- it seems to me that the stronger argument is "processing tx completions frees up space on the tx ring, which we might want when we respond to packets which we received". But the change itself seems reasonable.

This revision is now accepted and ready to land.Jul 15 2026, 2:57 AM
This revision was automatically updated to reflect the committed changes.