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
  • include
  • uapi
  • linux
  • if_packet.h
Find file BlameHistoryPermalink
  • Tanner Love's avatar
    net/packet: make packet_fanout.arr size configurable up to 64K · 9c661b0b
    Tanner Love authored Nov 06, 2020
    
    
    One use case of PACKET_FANOUT is lockless reception with one socket
    per CPU. 256 is a practical limit on increasingly many machines.
    
    Increase PACKET_FANOUT_MAX to 64K. Expand setsockopt PACKET_FANOUT to
    take an extra argument max_num_members. Also explicitly define a
    fanout_args struct, instead of implicitly casting to an integer. This
    documents the API and simplifies the control flow.
    
    If max_num_members is not specified or is set to 0, then 256 is used,
    same as before.
    
    Signed-off-by: default avatarTanner Love <tannerlove@google.com>
    Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
    Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    9c661b0b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7