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
  • Jakub Kicinski's avatar
    netdevsim: drop code duplicated by a merge · bfcccfe7
    Jakub Kicinski authored Nov 05, 2019
    Looks like the port adding loop makes a re-appearance on net-next
    after net was merged back into it (even though it doesn't feature
    in the merge diff).
    
    The ports are already added in nsim_dev_create() so when we try
    to add them again get EEXIST, and see:
    
    netdevsim: probe of netdevsim0 failed with error -17
    
    in the logs. When we remove the loop again the nsim_dev_probe()
    and nsim_dev_remove() become a wrapper of nsim_dev_create() and
    nsim_dev_destroy(). Remove this layer of indirection.
    
    Fixes: d31e9558 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net"
    
    )
    Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
    Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    bfcccfe7
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7