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
  • Andrei Vagin's avatar
    net: Allow to specify ifindex when device is moved to another namespace · eeb85a14
    Andrei Vagin authored Apr 05, 2021
    
    
    Currently, we can specify ifindex on link creation. This change allows
    to specify ifindex when a device is moved to another network namespace.
    
    Even now, a device ifindex can be changed if there is another device
    with the same ifindex in the target namespace. So this change doesn't
    introduce completely new behavior, it adds more control to the process.
    
    CRIU users want to restore containers with pre-created network devices.
    A user will provide network devices and instructions where they have to
    be restored, then CRIU will restore network namespaces and move devices
    into them. The problem is that devices have to be restored with the same
    indexes that they have before C/R.
    
    Cc: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
    Suggested-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
    Signed-off-by: default avatarAndrei Vagin <avagin@gmail.com>
    Reviewed-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    eeb85a14
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7