LWN.net Logo

Checkpoint and Restart of INET routing information

From:  Dan Smith <danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To:  containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject:  Checkpoint and Restart of INET routing information
Date:  Fri, 23 Apr 2010 07:55:35 -0700
Cc:  netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Archive-link:  Article, Thread

This set extends the existing network socket, device, and namespace support
in the checkpoint tree to cover routing information.  It does so by making
heavy use of RTNETLINK to dump and insert routes much like userspace would.
Because the task doing the checkpointing or restarting needs to examine
or setup resources for tasks in network namespaces other than its own, an
additional kernel socket setup call is added.  It provides us the ability
to talk to RTNETLINK in a foreign netns.

The support added in this set allows me to configure various inet4 and inet6
routes in a container and have them saved and restored successfully during
a checkpoint/restart process.

Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds