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, Oct 1, 4:04 AM
Unknown Object (File)
Tue, Sep 29, 3:59 PM
Unknown Object (File)
Tue, Sep 29, 2:47 PM
Unknown Object (File)
Mon, Sep 28, 8:42 PM
Unknown Object (File)
Mon, Sep 14, 8:55 PM
Unknown Object (File)
Sun, Sep 13, 6:44 AM
Unknown Object (File)
Fri, Sep 11, 7:09 PM
Unknown Object (File)
Tue, Sep 8, 12:50 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