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
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • bpf
  • devmap.c
Find file BlameHistoryPermalink
  • Sebastian Andrzej Siewior's avatar
    net: Move flush list retrieval to where it is used. · e3d69f58
    Sebastian Andrzej Siewior authored Jun 28, 2024
    
    
    The bpf_net_ctx_get_.*_flush_list() are used at the top of the function.
    This means the variable is always assigned even if unused. By moving the
    function to where it is used, it is possible to delay the initialisation
    until it is unavoidable.
    Not sure how much this gains in reality but by looking at bq_enqueue()
    (in devmap.c) gcc pushes one register less to the stack. \o/.
    
     Move flush list retrieval to where it is used.
    
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Acked-by: default avatarJesper Dangaard Brouer <hawk@kernel.org>
    Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    e3d69f58
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7