On Mon, Apr 05, 2021 at 12:12:23AM -0700, Andrei Vagin wrote: > 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.mikhalit...@virtuozzo.com> > Suggested-by: Christian Brauner <christian.brau...@ubuntu.com> > Signed-off-by: Andrei Vagin <ava...@gmail.com> > ---
LGTM. Thank for doing this! Reviewed-by: Christian Brauner <christian.brau...@ubuntu.com>