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
  • drivers
  • net
  • netdevsim
  • dev.c
Find file BlameHistoryPermalink
  • Ido Schimmel's avatar
    netdevsim: Add devlink-trap policer support · ad188458
    Ido Schimmel authored Mar 30, 2020
    
    
    Register three dummy packet trap policers with devlink and implement
    callbacks to change their parameters and read their counters.
    
    This will be used later on in the series to test the devlink-trap
    policer infrastructure.
    
    v2:
    * Remove check about burst size being a power of 2 and instead add a
      debugfs knob to fail the operation
    * Provide max/min rate/burst size when registering policers and remove
      the validity checks from nsim_dev_devlink_trap_policer_set()
    
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
    Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ad188458
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7