Page MenuHomeFreeBSD

ena: Handle wrap around for prefetch in netmap
Needs ReviewPublic

Authored by osamaabb_amazon.com on Aug 20 2024, 8:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 8, 6:34 PM
Unknown Object (File)
Thu, Jan 8, 6:34 PM
Unknown Object (File)
Nov 19 2025, 1:07 PM
Unknown Object (File)
Nov 17 2025, 12:24 PM
Unknown Object (File)
Oct 20 2025, 4:39 PM
Unknown Object (File)
Oct 20 2025, 2:49 AM
Unknown Object (File)
Oct 19 2025, 6:14 PM
Unknown Object (File)
Oct 19 2025, 12:24 PM
Subscribers

Details

Reviewers
cperciva
Summary

Netmap index wraps around based on the number of netmap kernel ring
slots.
Currently the driver prefetches the next slot using nm_i + 1 which may
be wrong since it does not handle wrap around.
This patch fixes that by using the kernel API for fetching the next
netmap index.

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 59095
Build 55982: arc lint + arc unit