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
  • core
  • dev.c
Find file BlameHistoryPermalink
  • Yajun Deng's avatar
    net/core: Introduce netdev_core_stats_inc() · 5247dbf1
    Yajun Deng authored Oct 09, 2023
    
    
    Although there is a kfree_skb_reason() helper function that can be used to
    find the reason why this skb is dropped, but most callers didn't increase
    one of rx_dropped, tx_dropped, rx_nohandler and rx_otherhost_dropped.
    
    For the users, people are more concerned about why the dropped in ip
    is increasing.
    
    Introduce netdev_core_stats_inc() for trace the caller of
    dev_core_stats_*_inc().
    
    Also, add __code to netdev_core_stats_alloc(), as it's called with small
    probability. And add noinline make sure netdev_core_stats_inc was never
    inlined.
    
    Signed-off-by: default avatarYajun Deng <yajun.deng@linux.dev>
    Suggested-by: default avatarAlexander Lobakin <aleksander.lobakin@intel.com>
    Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5247dbf1
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7