HomeFreeBSD

netmap: Tell the compiler to avoid reloading ring indices

Description

netmap: Tell the compiler to avoid reloading ring indices

Per the removed comments these fields should be loaded only once, since
they can in principle be modified concurrently, though this would be a
violation of the userspace contract with netmap.

No functional change intended.

Reviewed by: vmaffione
MFC after: 1 week
Sponsored by: Zenarmor
Sponsored by: OPNsense
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D38061

(cherry picked from commit 56c438fcd4a755f0abe8254779c39a0c4b530c75)

Details

Provenance
markjAuthored on Jan 23 2023, 7:41 PM
Reviewer
vmaffione
Differential Revision
D38061: netmap: Tell the compiler to avoid reloading ring indices
Parents
rG57fa543941b8: netmap: Correct a comment
Branches
Unknown
Tags
Unknown