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)
Mon, Jan 27, 4:26 PM
Unknown Object (File)
Nov 24 2024, 2:56 PM
Unknown Object (File)
Nov 24 2024, 4:21 AM
Unknown Object (File)
Nov 22 2024, 11:48 AM
Unknown Object (File)
Oct 30 2024, 9:16 AM
Unknown Object (File)
Oct 2 2024, 8:30 PM
Unknown Object (File)
Oct 1 2024, 10:36 PM
Unknown Object (File)
Sep 26 2024, 12:46 AM
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