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
  • net
  • switchdev
  • switchdev.c
Find file BlameHistoryPermalink
  • Scott Feldman's avatar
    switchdev: add offload_fwd_mark generator helper · 1a3b2ec9
    Scott Feldman authored Jul 18, 2015
    
    
    skb->offload_fwd_mark and dev->offload_fwd_mark are 32-bit and should be
    unique for device and may even be unique for a sub-set of ports within
    device, so add switchdev helper function to generate unique marks based on
    port's switch ID and group_ifindex.  group_ifindex would typically be the
    container dev's ifindex, such as the bridge's ifindex.
    
    The generator uses a global hash table to store offload_fwd_marks hashed by
    {switch ID, group_ifindex} key.
    
    Signed-off-by: default avatarScott Feldman <sfeldma@gmail.com>
    Acked-by: default avatarJiri Pirko <jiri@resnulli.us>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1a3b2ec9
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7