Page MenuHomeFreeBSD

ena: Clear NS_MOREFRAG flag for last netmap slot
Needs ReviewPublic

Authored by osamaabb_amazon.com on Aug 20 2024, 8:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 4 2025, 10:36 AM
Unknown Object (File)
Sep 2 2025, 4:01 PM
Unknown Object (File)
Aug 27 2025, 11:23 PM
Unknown Object (File)
Aug 26 2025, 10:08 AM
Unknown Object (File)
Aug 25 2025, 8:35 PM
Unknown Object (File)
Jul 14 2025, 1:25 AM
Unknown Object (File)
Jul 10 2025, 1:50 AM
Unknown Object (File)
Jun 28 2025, 4:21 PM
Subscribers

Details

Reviewers
cperciva
Summary

When processing packets within the rx-flow
ena_netmap_rx_load_desc doesn't know the number of descriptors, so it
sets NS_MOREFRAG to all the slots to indicate that there are more
fragments for this packet.
The code calls ena_netmap_rx_load_desc() for every descriptor in
this packet to map the relevant buffer into the netmap shared memory.
After ena_netmap_rx_load_desc() calls, we need to unset the NS_MOREFRAG
for the last fragment to indicate that this is the last fragment,
so we explicitly turn off NS_MOREFRAG flag.
Current code overrides all other flags and sets NS_BUF_CHANGED.
This patch unsets the relevant flag only.

Approved by: cperciva
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 59096
Build 55983: arc lint + arc unit