Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-dm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-dm
  • Repository
  • linux-dm
  • drivers
  • net
  • tun.c
Find file BlameHistoryPermalink
  • Li RongQing's avatar
    tun: align write-heavy flow entry members to a cache line · 83b1bc12
    Li RongQing authored Dec 06, 2018
    
    
    tun flow entry 'updated' fields are written when receive
    every packet. Thus if a flow is receiving packets from a
    particular flow entry, it'll cause false-sharing with
    all the other who has looked it up, so move it in its own
    cache line
    
    and update 'queue_index' and 'update' field only when
    they are changed to reduce the cache false-sharing.
    
    Signed-off-by: default avatarZhang Yu <zhangyu31@baidu.com>
    Signed-off-by: default avatarWang Li <wangli39@baidu.com>
    Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
    Acked-by: default avatarJason Wang <jasowang@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    83b1bc12