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: fix BUG when port driver doesn't support set attr op · 57225e77
    Scott Feldman authored Jun 11, 2015
    
    
    Fix a BUG_ON() where CONFIG_NET_SWITCHDEV is set but the driver for a
    bridged port does not support switchdev_port_attr_set op.  Don't BUG_ON()
    if -EOPNOTSUPP is returned.
    
    Also change BUG_ON() to netdev_err since this is a normal error path and
    does not warrant the use of BUG_ON(), which is reserved for unrecoverable
    errs.
    
    Signed-off-by: default avatarScott Feldman <sfeldma@gmail.com>
    Reported-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    57225e77
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7