Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • net
  • libeth
  • cache.h
Find file BlameHistoryPermalink
  • Alexander Lobakin's avatar
    libeth: add cacheline / struct layout assertion helpers · 62c88425
    Alexander Lobakin authored Jun 20, 2024
    
    
    Add helpers to assert struct field layout, a bit more crazy and
    networking-specific than in <linux/cache.h>. They assume you have
    3 CL-aligned groups (read-mostly, read-write, cold) in a struct
    you want to assert, and nothing besides them.
    For 64-bit with 64-byte cachelines, the assertions are as strict
    as possible, as the size can then be easily predicted.
    For the rest, make sure they don't cross the specified bound.
    
    Signed-off-by: default avatarAlexander Lobakin <aleksander.lobakin@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    62c88425
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7