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
  • drivers
  • net
  • netdevsim
  • dev.c
Find file BlameHistoryPermalink
  • Ido Schimmel's avatar
    netdevsim: Ensure policer drop counter always increases · be43224f
    Ido Schimmel authored May 21, 2020
    In case the policer drop counter is retrieved when the jiffies value is
    a multiple of 64, the counter will not be incremented.
    
    This randomly breaks a selftest [1] the reads the counter twice and
    checks that it was incremented:
    
    ```
    TEST: Trap policer                                                  [FAIL]
    	Policer drop counter was not incremented
    ```
    
    Fix by always incrementing the counter by 1.
    
    [1] tools/testing/selftests/drivers/net/netdevsim/devlink_trap.sh
    
    Fixes: ad188458
    
     ("netdevsim: Add devlink-trap policer support")
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    be43224f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7